source: palm/trunk/SOURCE/user_data_output_3d.f90 @ 217

Last change on this file since 217 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.7 KB
Line 
1 SUBROUTINE user_data_output_3d( av, variable, found, local_pf, nz_do )
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_3d.f90 211 2008-11-11 04:46:24Z letzel $
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).
16!------------------------------------------------------------------------------!
17
18    USE array_kind
19    USE indices
20    USE user
21
22    IMPLICIT NONE
23
24    CHARACTER (LEN=*) ::  variable
25
26    INTEGER ::  av, i, j, k, nz_do
27
28    LOGICAL ::  found
29
30    REAL(spk), DIMENSION(nxl-1:nxr+1,nys-1:nyn+1,nzb:nz_do) ::  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' )
43!          IF ( av == 0 )  THEN
44!             DO  i = nxl-1, nxr+1
45!                DO  j = nys-1, nyn+1
46!                   DO  k = nzb, nz_do
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, nz_do
55!                      local_pf(i,j,k) = u2_av(k,j,i)
56!                   ENDDO
57!                ENDDO
58!             ENDDO
59!          ENDIF
60!
61
62       CASE DEFAULT
63          found = .FALSE.
64
65    END SELECT
66
67
68 END SUBROUTINE user_data_output_3d
69
Note: See TracBrowser for help on using the repository browser.