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

Last change on this file since 492 was 484, checked in by raasch, 14 years ago

typo in file headers removed

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