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