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

Last change on this file since 529 was 484, checked in by raasch, 15 years ago

typo in file headers removed

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