source: dynamico_lmdz/simple_physics/phyparam/dynphy_lonlat/phyparam_plugins_lmdz.F90 @ 4228

Last change on this file since 4228 was 4221, checked in by dubos, 5 years ago

simple_physics : introduced plugins for reading parameters

File size: 1.0 KB
Line 
1MODULE phyparam_plugins_lmdz
2  USE getparam
3  IMPLICIT NONE
4  PRIVATE
5  SAVE
6
7  PUBLIC :: read_paramr, read_parami, read_paramb
8
9#include "iniprint.h"
10
11CONTAINS
12 
13  SUBROUTINE read_paramr(name, defval, val, comment)
14    CHARACTER(*), INTENT(IN) :: name, comment
15    REAL, INTENT(IN)         :: defval
16    REAL, INTENT(OUT)        :: val
17    CALL getpar(name, defval, val, comment)
18    WRITE(lunout, *) TRIM(name),'=',val
19  END SUBROUTINE read_paramr
20 
21  SUBROUTINE read_parami(name, defval, val, comment)
22    CHARACTER(*), INTENT(IN) :: name, comment
23    INTEGER, INTENT(IN)      :: defval
24    INTEGER, INTENT(OUT)     :: val
25    CALL getpar(name, defval, val, comment)
26    WRITE(lunout, *) TRIM(name),'=',val
27  END SUBROUTINE read_parami
28
29  SUBROUTINE read_paramb(name, defval, val, comment)
30    CHARACTER(*), INTENT(IN) :: name, comment
31    LOGICAL, INTENT(IN)      :: defval
32    LOGICAL, INTENT(OUT)     :: val
33    CALL getpar(name, defval, val, comment)
34    WRITE(lunout, *) TRIM(name),'=',val
35  END SUBROUTINE read_paramb 
36 
37END MODULE phyparam_plugins_lmdz
Note: See TracBrowser for help on using the repository browser.