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

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

last commit documented

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