source: palm/trunk/SOURCE/user_data_output_dvrp.f90 @ 1378

Last change on this file since 1378 was 1321, checked in by raasch, 11 years ago

last commit documented

  • Property svn:keywords set to Id
File size: 3.0 KB
RevLine 
[211]1 SUBROUTINE user_data_output_dvrp( output_variable, local_pf )
2
[1036]3!--------------------------------------------------------------------------------!
4! This file is part of PALM.
5!
6! PALM is free software: you can redistribute it and/or modify it under the terms
7! of the GNU General Public License as published by the Free Software Foundation,
8! either version 3 of the License, or (at your option) any later version.
9!
10! PALM is distributed in the hope that it will be useful, but WITHOUT ANY
11! WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR
12! A PARTICULAR PURPOSE.  See the GNU General Public License for more details.
13!
14! You should have received a copy of the GNU General Public License along with
15! PALM. If not, see <http://www.gnu.org/licenses/>.
16!
[1310]17! Copyright 1997-2014 Leibniz Universitaet Hannover
[1036]18!--------------------------------------------------------------------------------!
19!
[258]20! Current revisions:
[211]21! -----------------
[1321]22!
23!
24! Former revisions:
25! -----------------
26! $Id: user_data_output_dvrp.f90 1321 2014-03-20 09:40:40Z raasch $
27!
28! 1320 2014-03-20 08:40:49Z raasch
[1320]29! kind-parameters added to all INTEGER and REAL declaration statements,
30! kinds are defined in new module kinds,
31! old module precision_kind is removed,
32! revision history before 2012 removed,
33! comment fields (!:) to be used for variable explanations added to
34! all variable declaration statements
[1037]35! 1036 2012-10-22 13:43:42Z raasch
36! code put under GPL (PALM 3.9)
37!
[226]38! 211 2008-11-11 04:46:24Z raasch
39! Former file user_interface.f90 split into one file per subroutine
40!
[211]41! Description:
42! ------------
43! Execution of user-defined dvrp output
44!------------------------------------------------------------------------------!
45
46    USE control_parameters
[1320]47
[246]48    USE dvrp_variables
[1320]49
[211]50    USE indices
[1320]51
52    USE kinds
53
[211]54    USE pegrid
[1320]55
[211]56    USE user
57
58    IMPLICIT NONE
59
[1320]60    CHARACTER (LEN=*) ::  output_variable !:
[211]61
[1320]62    INTEGER(iwp) ::  i !:
63    INTEGER(iwp) ::  j !:
64    INTEGER(iwp) ::  k !:
[211]65
[1320]66    REAL(wp), DIMENSION(nxl_dvrp:nxr_dvrp+1,nys_dvrp:nyn_dvrp+1,nzb:nz_do3d) :: &
67              local_pf !:
[211]68
69!
70!-- Here the user-defined DVRP output follows:
71
72!
73!-- Move original array to intermediate array
74    SELECT CASE ( output_variable )
75
76!       CASE ( 'u2', 'u2_xy', 'u2_xz', 'u2_yz'  )
77!!
78!!--       Here the user can add user_defined output quantities.
79!!--       Uncomment and extend the following lines, if necessary.
[246]80!          DO  i = nxl_dvrp, nxr_dvrp+1
81!             DO  j = nys_dvrp, nyn_dvrp+1
[211]82!                DO  k = nzb, nz_do3d
83!                   local_pf(i,j,k) = u2(k,j,i)
84!                ENDDO
85!             ENDDO
86!          ENDDO
87
88
89       CASE DEFAULT
90!
91!--       The DEFAULT case is reached if output_variable contains a
92!--       wrong character string that is neither recognized in data_output_dvrp
93!--       nor here in user_data_output_dvrp.
[258]94          WRITE( message_string, * ) 'no output possible for: ', &
95                                     output_variable
96          CALL message( 'user_data_output_dvrp', 'UI0003', 0, 0, 0, 6, 0 )
97         
[211]98
99    END SELECT
100
101
102 END SUBROUTINE user_data_output_dvrp
103
Note: See TracBrowser for help on using the repository browser.