[11637] | 1 | MODULE usrdef_nam |
---|
| 2 | !!====================================================================== |
---|
| 3 | !! *** MODULE usrdef_nam *** |
---|
| 4 | !! |
---|
| 5 | !! === STATION_ASF configuration === |
---|
| 6 | !! |
---|
| 7 | !! User defined : set the domain characteristics of a user configuration |
---|
| 8 | !!====================================================================== |
---|
| 9 | !! History : 4.0 ! 2016-03 (S. Flavoni, G. Madec) Original code |
---|
[12629] | 10 | !! 4.x ! 2019-10 (L. Brodeau) for STATION_ASF (C1D meets SAS) |
---|
[11637] | 11 | !!---------------------------------------------------------------------- |
---|
| 12 | |
---|
| 13 | !!---------------------------------------------------------------------- |
---|
| 14 | !! usr_def_nam : read user defined namelist and set global domain size |
---|
| 15 | !! usr_def_hgr : initialize the horizontal mesh |
---|
| 16 | !!---------------------------------------------------------------------- |
---|
| 17 | USE par_oce ! ocean space and time domain |
---|
| 18 | USE phycst ! physical constants |
---|
| 19 | ! |
---|
| 20 | USE in_out_manager ! I/O manager |
---|
| 21 | USE lib_mpp ! MPP library |
---|
| 22 | |
---|
| 23 | IMPLICIT NONE |
---|
| 24 | PRIVATE |
---|
| 25 | |
---|
| 26 | PUBLIC usr_def_nam ! called in nemogcm.F90 module |
---|
| 27 | |
---|
| 28 | ! !!* namusr_def namelist *!! |
---|
| 29 | REAL(wp), PUBLIC:: rn_dept1 ! Depth (m) at which the SST is taken/measured == depth of first T point! |
---|
| 30 | |
---|
| 31 | !!---------------------------------------------------------------------- |
---|
| 32 | !! NEMO/OCE 4.0 , NEMO Consortium (2018) |
---|
[12629] | 33 | !! $Id: usrdef_nam.F90 12377 2020-02-12 14:39:06Z acc $ |
---|
[11637] | 34 | !! Software governed by the CeCILL license (see ./LICENSE) |
---|
| 35 | !!---------------------------------------------------------------------- |
---|
| 36 | CONTAINS |
---|
| 37 | |
---|
[11831] | 38 | SUBROUTINE usr_def_nam( cd_cfg, kk_cfg, kpi, kpj, kpk, kperio ) |
---|
[11637] | 39 | !!---------------------------------------------------------------------- |
---|
| 40 | !! *** ROUTINE dom_nam *** |
---|
| 41 | !! |
---|
| 42 | !! ** Purpose : read user defined namelist and define the domain size |
---|
| 43 | !! |
---|
| 44 | !! ** Method : read in namusr_def containing all the user specific namelist parameter |
---|
| 45 | !! |
---|
[11831] | 46 | !! Here STATION_ASF configuration |
---|
[11637] | 47 | !! |
---|
| 48 | !! ** input : - namusr_def namelist found in namelist_cfg |
---|
| 49 | !!---------------------------------------------------------------------- |
---|
[11831] | 50 | CHARACTER(len=*), INTENT(out) :: cd_cfg ! configuration name |
---|
| 51 | INTEGER , INTENT(out) :: kk_cfg ! configuration resolution |
---|
| 52 | INTEGER , INTENT(out) :: kpi, kpj, kpk ! global domain sizes |
---|
| 53 | INTEGER , INTENT(out) :: kperio ! lateral global domain b.c. |
---|
[11637] | 54 | ! |
---|
[11831] | 55 | INTEGER :: ios ! Local integer |
---|
[11637] | 56 | !! |
---|
| 57 | NAMELIST/namusr_def/ rn_dept1 |
---|
| 58 | !!---------------------------------------------------------------------- |
---|
| 59 | ! |
---|
| 60 | READ ( numnam_cfg, namusr_def, IOSTAT = ios, ERR = 902 ) |
---|
[11831] | 61 | 902 IF( ios /= 0 ) CALL ctl_nam ( ios , 'namusr_def in configuration namelist' ) |
---|
[11637] | 62 | ! |
---|
[11831] | 63 | IF(lwm) WRITE( numond, namusr_def ) |
---|
[11637] | 64 | ! |
---|
| 65 | cd_cfg = 'STATION_ASF' ! name & resolution (not used) |
---|
| 66 | kk_cfg = 0 |
---|
| 67 | |
---|
[12629] | 68 | ! Global Domain size: STATION_ASF domain is 3 x 3 grid-points x 2 or vertical levels |
---|
[11637] | 69 | kpi = 3 |
---|
| 70 | kpj = 3 |
---|
[12629] | 71 | kpk = 2 ! 2, rather than 1, because 1 would cause some issues... like overflow in array boundary indexes, etc... |
---|
[11637] | 72 | ! |
---|
| 73 | ! ! Set the lateral boundary condition of the global domain |
---|
| 74 | kperio = 7 ! C1D configuration : 3x3 basin with cyclic Est-West and Norht-South condition |
---|
| 75 | ! |
---|
[11831] | 76 | ! ! control print |
---|
| 77 | IF(lwp) THEN |
---|
| 78 | WRITE(numout,*) ' ' |
---|
| 79 | WRITE(numout,*) 'usr_def_nam : read the user defined namelist (namusr_def) in namelist_cfg' |
---|
| 80 | WRITE(numout,*) '~~~~~~~~~~~ ' |
---|
| 81 | WRITE(numout,*) ' Namelist namusr_def : STATION_ASF case' |
---|
| 82 | WRITE(numout,*) ' Detpth of first T-point (bulk SST): rn_dept1 = ', rn_dept1 |
---|
| 83 | WRITE(numout,*) ' jpiglo, jpjglo = ', kpi, kpj |
---|
| 84 | WRITE(numout,*) ' number of model levels kpk = ', kpk |
---|
| 85 | WRITE(numout,*) ' ' |
---|
| 86 | WRITE(numout,*) ' Lateral b.c. of the domain set to jperio = ', kperio |
---|
| 87 | ENDIF |
---|
[11637] | 88 | ! |
---|
| 89 | END SUBROUTINE usr_def_nam |
---|
| 90 | |
---|
| 91 | !!====================================================================== |
---|
| 92 | END MODULE usrdef_nam |
---|