source: palm/trunk/SOURCE/user_data_output_2d.f90 @ 216

Last change on this file since 216 was 211, checked in by raasch, 15 years ago

user interface was split into one single file per subroutine

  • Property svn:keywords set to Id
File size: 1.8 KB
Line 
1 SUBROUTINE user_data_output_2d( av, variable, found, grid, local_pf )
2
3!------------------------------------------------------------------------------!
4! Actual revisions:
5! -----------------
6! Former file user_interface.f90 split into one file per subroutine
7!
8! Former revisions:
9! -----------------
10! $Id: user_data_output_2d.f90 211 2008-11-11 04:46:24Z raasch $
11!
12! Description:
13! ------------
14! Resorts the user-defined output quantity with indices (k,j,i) to a
15! temporary array with indices (i,j,k) and sets the grid on which it is defined.
16! Allowed values for grid are "zu" and "zw".
17!------------------------------------------------------------------------------!
18
19    USE indices
20    USE user
21
22    IMPLICIT NONE
23
24    CHARACTER (LEN=*) ::  grid, variable
25
26    INTEGER ::  av, i, j, k
27
28    LOGICAL ::  found
29
30    REAL, DIMENSION(nxl-1:nxr+1,nys-1:nyn+1,nzb:nzt+1) ::  local_pf
31
32
33    found = .TRUE.
34
35    SELECT CASE ( TRIM( variable ) )
36
37!
38!--    Uncomment and extend the following lines, if necessary.
39!--    The arrays for storing the user defined quantities (here u2 and u2_av)
40!--    have to be declared and defined by the user!
41!--    Sample for user-defined output:
42!       CASE ( 'u2_xy', 'u2_xz', 'u2_yz' )
43!          IF ( av == 0 )  THEN
44!             DO  i = nxl-1, nxr+1
45!                DO  j = nys-1, nyn+1
46!                   DO  k = nzb, nzt+1
47!                      local_pf(i,j,k) = u2(k,j,i)
48!                   ENDDO
49!                ENDDO
50!             ENDDO
51!          ELSE
52!             DO  i = nxl-1, nxr+1
53!                DO  j = nys-1, nyn+1
54!                   DO  k = nzb, nzt+1
55!                      local_pf(i,j,k) = u2_av(k,j,i)
56!                   ENDDO
57!                ENDDO
58!             ENDDO
59!          ENDIF
60!
61!          grid = 'zu'
62
63       CASE DEFAULT
64          found = .FALSE.
65          grid  = 'none'
66
67    END SELECT
68
69
70 END SUBROUTINE user_data_output_2d
71
Note: See TracBrowser for help on using the repository browser.