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

Last change on this file since 974 was 932, checked in by maronga, 12 years ago

last commit documented

  • Property svn:keywords set to Id
File size: 1.9 KB
RevLine 
[808]1PROGRAM check_namelist_files
2
[807]3!------------------------------------------------------------------------------!
4! Current revisions:
5! -----------------
6!
[932]7!
[807]8! Former revisions:
9! -----------------
10! $Id: check_namelist_files.f90 932 2012-06-08 15:12:42Z maronga $
11!
[932]12! 931 2012-06-08 15:09:28Z maronga
13! Check of max_pr_user implemented
14!
[846]15! 845 2012-03-07 10:23:05Z maronga
16! Added call to init_cloud_physics
17!
[808]18! 807 2012-01-25 11:53:51Z maronga
19! Initial revision
20!
[807]21! Description:
22! ------------
23! Perform namelist file check. The program is independent from PALM and used by
24! the shell script "mrun" to check the parameter files (e.g. p3d, p3df...) b
25! efore the job is submitted/started. Source code from the PALM model in used in
26! check_namelist_files by means of the cpp directive "__check". The compiled
27! program resides in the SCRIPTS folder as check_namelist_files.x.
28!------------------------------------------------------------------------------!
29
30
31    USE pegrid
32    USE control_parameters
33
34    IMPLICIT NONE
35
36
37!
[931]38!-- Read number of processors, the variable check_restart and max_user_pr.
39!-- check_restart gives information whether the initalor the restart parameter
40!-- file must be checked. max_user_pr is usually set by read_var_list
41!-- (excluded in the namelist file check).
42    READ (*,*,ERR=10,END=10)  numprocs, check_restart, max_pr_user
[807]4310  CONTINUE
44
[818]45
[807]46!
47!-- Read control parameters from NAMELIST files and read environment-variables1
48    CALL parin
49
[931]50    OPEN( 11, FILE='parin_for_check', FORM='FORMATTED' )
51    WRITE(11, FMT='(I)'), max_pr_user
52    CLOSE(11)
[807]53!
[931]54!-- Determine processor topology and local array indicesy
55
[807]56    CALL init_pegrid
57
58!
59!-- Generate grid parameters
60    CALL init_grid
61
[845]62!
[807]63!-- Check control parameters and deduce further quantities   
64    CALL check_parameters
65
[845]66!
67!-- Check absolute temperature and pressure. Delete this call in case that
68!-- init_3d_model is compiled for the parameter file check
69    CALL init_cloud_physics
[807]70
71 END PROGRAM check_namelist_files
Note: See TracBrowser for help on using the repository browser.