[284] | 1 | SUBROUTINE set_slicer_attributes_dvrp( n_slicer ) |
---|
[278] | 2 | |
---|
| 3 | !------------------------------------------------------------------------------! |
---|
[484] | 4 | ! Current revisions: |
---|
[278] | 5 | ! ----------------- |
---|
| 6 | ! |
---|
| 7 | ! |
---|
| 8 | ! Former revisions: |
---|
| 9 | ! ----------------- |
---|
| 10 | ! $Id: set_slicer_attributes_dvrp.f90 484 2010-02-05 07:36:54Z suehring $ |
---|
| 11 | ! |
---|
[392] | 12 | ! 305 2009-04-27 11:58:42Z raasch |
---|
| 13 | ! Initial version |
---|
[278] | 14 | ! |
---|
| 15 | ! Description: |
---|
| 16 | ! ------------ |
---|
| 17 | ! This routine sets the dvrp-slicer attributes |
---|
| 18 | !------------------------------------------------------------------------------! |
---|
[305] | 19 | |
---|
[278] | 20 | #if defined( __dvrp_graphics ) |
---|
| 21 | |
---|
| 22 | USE control_parameters |
---|
| 23 | USE dvrp_variables |
---|
| 24 | |
---|
| 25 | IMPLICIT NONE |
---|
| 26 | |
---|
[284] | 27 | INTEGER :: j, n_slicer |
---|
| 28 | REAL :: maxv, meav, minv |
---|
[278] | 29 | |
---|
[284] | 30 | |
---|
[278] | 31 | ! |
---|
[284] | 32 | !-- Set interval values to user settings. |
---|
| 33 | !-- The middle of this interval defines the change from blue to yellow |
---|
| 34 | minv = slicer_range_limits_dvrp(1,n_slicer) |
---|
| 35 | maxv = slicer_range_limits_dvrp(2,n_slicer) |
---|
| 36 | meav = ( minv + maxv ) * 0.5 |
---|
[278] | 37 | |
---|
[284] | 38 | ! |
---|
| 39 | !-- Create appropriate colortable with 100 entries. |
---|
| 40 | !-- This table ranges from deep blue (min) to deep red (max) |
---|
| 41 | DO j = 1, 50 |
---|
| 42 | interval_values_dvrp(1,j) = minv + (meav-minv) * (j-1.0) / 50.0 |
---|
| 43 | interval_values_dvrp(2,j) = minv + (meav-minv) * ( j ) / 50.0 |
---|
| 44 | interval_h_dvrp(:,j) = 270.0 - ( j - 1.0 ) * 90.0 / 49.0 |
---|
| 45 | ENDDO |
---|
| 46 | |
---|
| 47 | DO j = 51, 100 |
---|
| 48 | interval_values_dvrp(1,j) = meav + (maxv-meav) * (j-51.0) / 50.0 |
---|
| 49 | interval_values_dvrp(2,j) = meav + (maxv-meav) * (j-50.0) / 50.0 |
---|
| 50 | interval_h_dvrp(:,j) = 70.0 - ( j - 51.0 ) * 90.0 / 49.0 |
---|
| 51 | ENDDO |
---|
| 52 | |
---|
[285] | 53 | dvrp_colortable_entries = 100 |
---|
[284] | 54 | |
---|
[278] | 55 | #endif |
---|
[305] | 56 | |
---|
[278] | 57 | END SUBROUTINE set_slicer_attributes_dvrp |
---|