source: palm/trunk/SOURCE/check_namelist_files.f90 @ 1682

Last change on this file since 1682 was 1682, checked in by knoop, 9 years ago

Code annotations made doxygen readable

  • Property svn:keywords set to Id
File size: 3.1 KB
Line 
1!> @file check_namelist_files.f90
2!--------------------------------------------------------------------------------!
3! This file is part of PALM.
4!
5! PALM is free software: you can redistribute it and/or modify it under the terms
6! of the GNU General Public License as published by the Free Software Foundation,
7! either version 3 of the License, or (at your option) any later version.
8!
9! PALM is distributed in the hope that it will be useful, but WITHOUT ANY
10! WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR
11! A PARTICULAR PURPOSE.  See the GNU General Public License for more details.
12!
13! You should have received a copy of the GNU General Public License along with
14! PALM. If not, see <http://www.gnu.org/licenses/>.
15!
16! Copyright 1997-2014 Leibniz Universitaet Hannover
17!--------------------------------------------------------------------------------!
18!
19! Current revisions:
20! -----------------
21! Code annotations made doxygen readable
22!
23! Former revisions:
24! -----------------
25! $Id: check_namelist_files.f90 1682 2015-10-07 23:56:08Z knoop $
26!
27! 1320 2014-03-20 08:40:49Z raasch
28! ONLY-attribute added to USE-statements
29!
30! 1088 2013-01-21 09:26:07Z raasch
31! Bugfix: output format changed
32!
33! 1036 2012-10-22 13:43:42Z raasch
34! code put under GPL (PALM 3.9)
35!
36! 931 2012-06-08 15:09:28Z maronga
37! Check of max_pr_user implemented
38!
39! 845 2012-03-07 10:23:05Z maronga
40! Added call to init_cloud_physics
41!
42! 807 2012-01-25 11:53:51Z maronga
43! Initial revision
44!
45! Description:
46! ------------
47!> Perform namelist file check. The program is independent from PALM and used by
48!> the shell script "mrun" to check the parameter files (e.g. p3d, p3df...) b
49!> efore the job is submitted/started. Source code from the PALM model in used in
50!> check_namelist_files by means of the cpp directive "__check". The compiled
51!> program resides in the SCRIPTS folder as check_namelist_files.x.
52!------------------------------------------------------------------------------!
53PROGRAM check_namelist_files
54 
55
56
57    USE control_parameters,                                                    &
58        ONLY:  check_restart, max_pr_user
59
60    USE pegrid
61
62
63    IMPLICIT NONE
64
65
66!
67!-- Read number of processors, the variable check_restart and max_user_pr.
68!-- check_restart gives information whether the initalor the restart parameter
69!-- file must be checked. max_user_pr is usually set by read_var_list
70!-- (excluded in the namelist file check).
71    READ (*,*,ERR=10,END=10)  numprocs, check_restart, max_pr_user
7210  CONTINUE
73
74
75!
76!-- Read control parameters from NAMELIST files and read environment-variables1
77    CALL parin
78
79    OPEN( 11, FILE='parin_for_check', FORM='FORMATTED' )
80    WRITE( 11, FMT='(I4)' )  max_pr_user
81    CLOSE( 11 )
82!
83!-- Determine processor topology and local array indicesy
84
85    CALL init_pegrid
86
87!
88!-- Generate grid parameters
89    CALL init_grid
90
91!
92!-- Check control parameters and deduce further quantities   
93    CALL check_parameters
94
95!
96!-- Check absolute temperature and pressure. Delete this call in case that
97!-- init_3d_model is compiled for the parameter file check
98    CALL init_cloud_physics
99
100 END PROGRAM check_namelist_files
Note: See TracBrowser for help on using the repository browser.