[211] | 1 | SUBROUTINE user_data_output_dvrp( output_variable, local_pf ) |
---|
| 2 | |
---|
| 3 | !------------------------------------------------------------------------------! |
---|
[258] | 4 | ! Current revisions: |
---|
[211] | 5 | ! ----------------- |
---|
[258] | 6 | ! Output of messages replaced by message handling routine. |
---|
[246] | 7 | ! Clipping implemented |
---|
[211] | 8 | ! |
---|
| 9 | ! Former revisions: |
---|
| 10 | ! ----------------- |
---|
| 11 | ! $Id: user_data_output_dvrp.f90 258 2009-03-13 12:36:03Z raasch $ |
---|
| 12 | ! |
---|
[226] | 13 | ! 211 2008-11-11 04:46:24Z raasch |
---|
| 14 | ! Former file user_interface.f90 split into one file per subroutine |
---|
| 15 | ! |
---|
[211] | 16 | ! Description: |
---|
| 17 | ! ------------ |
---|
| 18 | ! Execution of user-defined dvrp output |
---|
| 19 | !------------------------------------------------------------------------------! |
---|
| 20 | |
---|
| 21 | USE control_parameters |
---|
[246] | 22 | USE dvrp_variables |
---|
[211] | 23 | USE indices |
---|
| 24 | USE pegrid |
---|
| 25 | USE user |
---|
| 26 | |
---|
| 27 | IMPLICIT NONE |
---|
| 28 | |
---|
| 29 | CHARACTER (LEN=*) :: output_variable |
---|
| 30 | |
---|
| 31 | INTEGER :: i, j, k |
---|
| 32 | |
---|
[246] | 33 | REAL, DIMENSION(nxl_dvrp:nxr_dvrp+1,nys_dvrp:nyn_dvrp+1,nzb:nz_do3d) :: & |
---|
| 34 | local_pf |
---|
[211] | 35 | |
---|
| 36 | ! |
---|
| 37 | !-- Here the user-defined DVRP output follows: |
---|
| 38 | |
---|
| 39 | ! |
---|
| 40 | !-- Move original array to intermediate array |
---|
| 41 | SELECT CASE ( output_variable ) |
---|
| 42 | |
---|
| 43 | ! CASE ( 'u2', 'u2_xy', 'u2_xz', 'u2_yz' ) |
---|
| 44 | !! |
---|
| 45 | !!-- Here the user can add user_defined output quantities. |
---|
| 46 | !!-- Uncomment and extend the following lines, if necessary. |
---|
[246] | 47 | ! DO i = nxl_dvrp, nxr_dvrp+1 |
---|
| 48 | ! DO j = nys_dvrp, nyn_dvrp+1 |
---|
[211] | 49 | ! DO k = nzb, nz_do3d |
---|
| 50 | ! local_pf(i,j,k) = u2(k,j,i) |
---|
| 51 | ! ENDDO |
---|
| 52 | ! ENDDO |
---|
| 53 | ! ENDDO |
---|
| 54 | |
---|
| 55 | |
---|
| 56 | CASE DEFAULT |
---|
| 57 | ! |
---|
| 58 | !-- The DEFAULT case is reached if output_variable contains a |
---|
| 59 | !-- wrong character string that is neither recognized in data_output_dvrp |
---|
| 60 | !-- nor here in user_data_output_dvrp. |
---|
[258] | 61 | WRITE( message_string, * ) 'no output possible for: ', & |
---|
| 62 | output_variable |
---|
| 63 | CALL message( 'user_data_output_dvrp', 'UI0003', 0, 0, 0, 6, 0 ) |
---|
| 64 | |
---|
[211] | 65 | |
---|
| 66 | END SELECT |
---|
| 67 | |
---|
| 68 | |
---|
| 69 | END SUBROUTINE user_data_output_dvrp |
---|
| 70 | |
---|