1 | PROGRAM check_namelist_files |
---|
2 | |
---|
3 | !------------------------------------------------------------------------------! |
---|
4 | ! Current revisions: |
---|
5 | ! ----------------- |
---|
6 | ! |
---|
7 | ! |
---|
8 | ! Former revisions: |
---|
9 | ! ----------------- |
---|
10 | ! $Id: check_namelist_files.f90 932 2012-06-08 15:12:42Z raasch $ |
---|
11 | ! |
---|
12 | ! 931 2012-06-08 15:09:28Z maronga |
---|
13 | ! Check of max_pr_user implemented |
---|
14 | ! |
---|
15 | ! 845 2012-03-07 10:23:05Z maronga |
---|
16 | ! Added call to init_cloud_physics |
---|
17 | ! |
---|
18 | ! 807 2012-01-25 11:53:51Z maronga |
---|
19 | ! Initial revision |
---|
20 | ! |
---|
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 | ! |
---|
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 |
---|
43 | 10 CONTINUE |
---|
44 | |
---|
45 | |
---|
46 | ! |
---|
47 | !-- Read control parameters from NAMELIST files and read environment-variables1 |
---|
48 | CALL parin |
---|
49 | |
---|
50 | OPEN( 11, FILE='parin_for_check', FORM='FORMATTED' ) |
---|
51 | WRITE(11, FMT='(I)'), max_pr_user |
---|
52 | CLOSE(11) |
---|
53 | ! |
---|
54 | !-- Determine processor topology and local array indicesy |
---|
55 | |
---|
56 | CALL init_pegrid |
---|
57 | |
---|
58 | ! |
---|
59 | !-- Generate grid parameters |
---|
60 | CALL init_grid |
---|
61 | |
---|
62 | ! |
---|
63 | !-- Check control parameters and deduce further quantities |
---|
64 | CALL check_parameters |
---|
65 | |
---|
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 |
---|
70 | |
---|
71 | END PROGRAM check_namelist_files |
---|