[1682] | 1 | !> @file check_namelist_files.f90 |
---|
[1036] | 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 | ! |
---|
[1310] | 16 | ! Copyright 1997-2014 Leibniz Universitaet Hannover |
---|
[1036] | 17 | !--------------------------------------------------------------------------------! |
---|
| 18 | ! |
---|
[807] | 19 | ! Current revisions: |
---|
| 20 | ! ----------------- |
---|
[1683] | 21 | ! |
---|
| 22 | ! |
---|
[807] | 23 | ! Former revisions: |
---|
| 24 | ! ----------------- |
---|
| 25 | ! $Id: check_namelist_files.f90 1683 2015-10-07 23:57:51Z maronga $ |
---|
| 26 | ! |
---|
[1683] | 27 | ! 1682 2015-10-07 23:56:08Z knoop |
---|
| 28 | ! Code annotations made doxygen readable |
---|
| 29 | ! |
---|
[1321] | 30 | ! 1320 2014-03-20 08:40:49Z raasch |
---|
| 31 | ! ONLY-attribute added to USE-statements |
---|
| 32 | ! |
---|
[1089] | 33 | ! 1088 2013-01-21 09:26:07Z raasch |
---|
| 34 | ! Bugfix: output format changed |
---|
| 35 | ! |
---|
[1037] | 36 | ! 1036 2012-10-22 13:43:42Z raasch |
---|
| 37 | ! code put under GPL (PALM 3.9) |
---|
| 38 | ! |
---|
[932] | 39 | ! 931 2012-06-08 15:09:28Z maronga |
---|
| 40 | ! Check of max_pr_user implemented |
---|
| 41 | ! |
---|
[846] | 42 | ! 845 2012-03-07 10:23:05Z maronga |
---|
| 43 | ! Added call to init_cloud_physics |
---|
| 44 | ! |
---|
[808] | 45 | ! 807 2012-01-25 11:53:51Z maronga |
---|
| 46 | ! Initial revision |
---|
| 47 | ! |
---|
[807] | 48 | ! Description: |
---|
| 49 | ! ------------ |
---|
[1682] | 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. |
---|
[807] | 55 | !------------------------------------------------------------------------------! |
---|
[1682] | 56 | PROGRAM check_namelist_files |
---|
| 57 | |
---|
[807] | 58 | |
---|
| 59 | |
---|
[1320] | 60 | USE control_parameters, & |
---|
| 61 | ONLY: check_restart, max_pr_user |
---|
| 62 | |
---|
[807] | 63 | USE pegrid |
---|
| 64 | |
---|
[1320] | 65 | |
---|
[807] | 66 | IMPLICIT NONE |
---|
| 67 | |
---|
| 68 | |
---|
| 69 | ! |
---|
[931] | 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 |
---|
[807] | 75 | 10 CONTINUE |
---|
| 76 | |
---|
[818] | 77 | |
---|
[807] | 78 | ! |
---|
| 79 | !-- Read control parameters from NAMELIST files and read environment-variables1 |
---|
| 80 | CALL parin |
---|
| 81 | |
---|
[931] | 82 | OPEN( 11, FILE='parin_for_check', FORM='FORMATTED' ) |
---|
[1088] | 83 | WRITE( 11, FMT='(I4)' ) max_pr_user |
---|
| 84 | CLOSE( 11 ) |
---|
[807] | 85 | ! |
---|
[931] | 86 | !-- Determine processor topology and local array indicesy |
---|
| 87 | |
---|
[807] | 88 | CALL init_pegrid |
---|
| 89 | |
---|
| 90 | ! |
---|
| 91 | !-- Generate grid parameters |
---|
| 92 | CALL init_grid |
---|
| 93 | |
---|
[845] | 94 | ! |
---|
[807] | 95 | !-- Check control parameters and deduce further quantities |
---|
| 96 | CALL check_parameters |
---|
| 97 | |
---|
[845] | 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 |
---|
[807] | 102 | |
---|
| 103 | END PROGRAM check_namelist_files |
---|