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

Last change on this file since 1320 was 1320, checked in by raasch, 7 years ago

ONLY-attribute added to USE-statements,
kind-parameters added to all INTEGER and REAL declaration statements,
kinds are defined in new module kinds,
old module precision_kind is removed,
revision history before 2012 removed,
comment fields (!:) to be used for variable explanations added to all variable declaration statements

  • Property svn:keywords set to Id
File size: 2.9 KB
Line 
1PROGRAM check_namelist_files
2
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!
17! Copyright 1997-2014 Leibniz Universitaet Hannover
18!--------------------------------------------------------------------------------!
19!
20! Current revisions:
21! -----------------
22! ONLY-attribute added to USE-statements
23!
24! Former revisions:
25! -----------------
26! $Id: check_namelist_files.f90 1320 2014-03-20 08:40:49Z raasch $
27!
28! 1088 2013-01-21 09:26:07Z raasch
29! Bugfix: output format changed
30!
31! 1036 2012-10-22 13:43:42Z raasch
32! code put under GPL (PALM 3.9)
33!
34! 931 2012-06-08 15:09:28Z maronga
35! Check of max_pr_user implemented
36!
37! 845 2012-03-07 10:23:05Z maronga
38! Added call to init_cloud_physics
39!
40! 807 2012-01-25 11:53:51Z maronga
41! Initial revision
42!
43! Description:
44! ------------
45! Perform namelist file check. The program is independent from PALM and used by
46! the shell script "mrun" to check the parameter files (e.g. p3d, p3df...) b
47! efore the job is submitted/started. Source code from the PALM model in used in
48! check_namelist_files by means of the cpp directive "__check". The compiled
49! program resides in the SCRIPTS folder as check_namelist_files.x.
50!------------------------------------------------------------------------------!
51
52
53    USE control_parameters,                                                    &
54        ONLY:  check_restart, max_pr_user
55
56    USE pegrid
57
58
59    IMPLICIT NONE
60
61
62!
63!-- Read number of processors, the variable check_restart and max_user_pr.
64!-- check_restart gives information whether the initalor the restart parameter
65!-- file must be checked. max_user_pr is usually set by read_var_list
66!-- (excluded in the namelist file check).
67    READ (*,*,ERR=10,END=10)  numprocs, check_restart, max_pr_user
6810  CONTINUE
69
70
71!
72!-- Read control parameters from NAMELIST files and read environment-variables1
73    CALL parin
74
75    OPEN( 11, FILE='parin_for_check', FORM='FORMATTED' )
76    WRITE( 11, FMT='(I4)' )  max_pr_user
77    CLOSE( 11 )
78!
79!-- Determine processor topology and local array indicesy
80
81    CALL init_pegrid
82
83!
84!-- Generate grid parameters
85    CALL init_grid
86
87!
88!-- Check control parameters and deduce further quantities   
89    CALL check_parameters
90
91!
92!-- Check absolute temperature and pressure. Delete this call in case that
93!-- init_3d_model is compiled for the parameter file check
94    CALL init_cloud_physics
95
96 END PROGRAM check_namelist_files
Note: See TracBrowser for help on using the repository browser.