Changeset 13463 for NEMO/branches/2019/dev_r11351_fldread_with_XIOS/tests/ISOMIP/MY_SRC/usrdef_nam.F90
- Timestamp:
- 2020-09-14T17:40:34+02:00 (4 years ago)
- Location:
- NEMO/branches/2019/dev_r11351_fldread_with_XIOS
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
NEMO/branches/2019/dev_r11351_fldread_with_XIOS
- Property svn:externals
-
old new 3 3 ^/utils/build/mk@HEAD mk 4 4 ^/utils/tools@HEAD tools 5 ^/vendors/AGRIF/dev @HEADext/AGRIF5 ^/vendors/AGRIF/dev_r12970_AGRIF_CMEMS ext/AGRIF 6 6 ^/vendors/FCM@HEAD ext/FCM 7 7 ^/vendors/IOIPSL@HEAD ext/IOIPSL 8 9 # SETTE 10 ^/utils/CI/sette@13382 sette
-
- Property svn:externals
-
NEMO/branches/2019/dev_r11351_fldread_with_XIOS/tests/ISOMIP/MY_SRC/usrdef_nam.F90
r10074 r13463 15 15 !! usr_def_hgr : initialize the horizontal mesh 16 16 !!---------------------------------------------------------------------- 17 USE dom_oce , ONLY: nimpp , njmpp ! i- & j-indices of the local domain18 17 USE dom_oce , ONLY: ln_zco, ln_zps, ln_sco ! flag of type of coordinate 19 18 USE par_oce ! ocean space and time domain … … 42 41 CONTAINS 43 42 44 SUBROUTINE usr_def_nam( ldtxt, ldnam,cd_cfg, kk_cfg, kpi, kpj, kpk, kperio )43 SUBROUTINE usr_def_nam( cd_cfg, kk_cfg, kpi, kpj, kpk, kperio ) 45 44 !!---------------------------------------------------------------------- 46 45 !! *** ROUTINE dom_nam *** … … 54 53 !! ** input : - namusr_def namelist found in namelist_cfg 55 54 !!---------------------------------------------------------------------- 56 CHARACTER(len=*), DIMENSION(:), INTENT(out) :: ldtxt, ldnam ! stored print information57 55 CHARACTER(len=*) , INTENT(out) :: cd_cfg ! configuration name 58 56 INTEGER , INTENT(out) :: kk_cfg ! configuration resolution … … 60 58 INTEGER , INTENT(out) :: kperio ! lateral global domain b.c. 61 59 ! 62 INTEGER :: ios , ii! Local integer60 INTEGER :: ios ! Local integer 63 61 !! 64 62 NAMELIST/namusr_def/ ln_zco, ln_zps, ln_sco, rn_e1deg, rn_e2deg, rn_e3 65 63 !!---------------------------------------------------------------------- 66 64 ! 67 ii = 1 65 READ ( numnam_cfg, namusr_def, IOSTAT = ios, ERR = 902 ) 66 902 IF( ios /= 0 ) CALL ctl_nam ( ios , 'namusr_def in configuration namelist' ) 68 67 ! 69 REWIND( numnam_cfg ) ! Namelist namusr_def (exist in namelist_cfg only) 70 READ ( numnam_cfg, namusr_def, IOSTAT = ios, ERR = 902 ) 71 902 IF( ios /= 0 ) CALL ctl_nam ( ios , 'namusr_def in configuration namelist', .TRUE. ) 72 ! 73 WRITE( ldnam(:), namusr_def ) 68 IF(lwm) WRITE( numond, namusr_def ) 74 69 ! 75 70 cd_cfg = 'ISOMIP' ! name & resolution (not used) … … 81 76 kpk = INT( rbathy / rn_e3 ) + 1 ! add 1 for t-point in the seafloor 82 77 ! 83 ! ! control print84 WRITE(ldtxt(ii),*) ' ' ; ii = ii + 185 WRITE(ldtxt(ii),*) 'usr_def_nam : read the user defined namelist (namusr_def) in namelist_cfg' ; ii = ii + 186 WRITE(ldtxt(ii),*) '~~~~~~~~~~~ ' ; ii = ii + 187 WRITE(ldtxt(ii),*) ' Namelist namusr_def : ISOMIP test case' ; ii = ii + 188 WRITE(ldtxt(ii),*) ' type of vertical coordinate : ' ; ii = ii + 189 WRITE(ldtxt(ii),*) ' z-coordinate flag ln_zco = ', ln_zco ; ii = ii + 190 WRITE(ldtxt(ii),*) ' z-partial-step coordinate flag ln_zps = ', ln_zps ; ii = ii + 191 WRITE(ldtxt(ii),*) ' s-coordinate flag ln_sco = ', ln_sco ; ii = ii + 192 WRITE(ldtxt(ii),*) ' resolution' ; ii = ii + 193 WRITE(ldtxt(ii),*) ' zonal resolution rn_e1deg = ', rn_e1deg, ' degrees' ; ii = ii + 194 WRITE(ldtxt(ii),*) ' meridional resolution rn_e1deg = ', rn_e1deg, ' degrees' ; ii = ii + 195 WRITE(ldtxt(ii),*) ' vertical resolution rn_e3 = ', rn_e3 , ' meters' ; ii = ii + 196 WRITE(ldtxt(ii),*) ' ISOMIP domain = 15° x 10° x 900 m' ; ii = ii + 197 WRITE(ldtxt(ii),*) ' resulting global domain size : jpiglo = ', kpi ; ii = ii + 198 WRITE(ldtxt(ii),*) ' jpjglo = ', kpj ; ii = ii + 199 WRITE(ldtxt(ii),*) ' jpkglo = ', kpk ; ii = ii + 1100 !101 !102 78 ! ! Set the lateral boundary condition of the global domain 103 79 kperio = 0 ! ISOMIP configuration : close basin 104 80 ! 105 WRITE(ldtxt(ii),*) ' ' ; ii = ii + 1 106 WRITE(ldtxt(ii),*) ' Lateral boundary condition of the global domain' ; ii = ii + 1 107 WRITE(ldtxt(ii),*) ' ISOMIP : closed basin jperio = ', kperio ; ii = ii + 1 81 ! ! control print 82 IF(lwp) THEN 83 WRITE(numout,*) ' ' 84 WRITE(numout,*) 'usr_def_nam : read the user defined namelist (namusr_def) in namelist_cfg' 85 WRITE(numout,*) '~~~~~~~~~~~ ' 86 WRITE(numout,*) ' Namelist namusr_def : ISOMIP test case' 87 WRITE(numout,*) ' type of vertical coordinate : ' 88 WRITE(numout,*) ' z-coordinate flag ln_zco = ', ln_zco 89 WRITE(numout,*) ' z-partial-step coordinate flag ln_zps = ', ln_zps 90 WRITE(numout,*) ' s-coordinate flag ln_sco = ', ln_sco 91 WRITE(numout,*) ' resolution' 92 WRITE(numout,*) ' zonal resolution rn_e1deg = ', rn_e1deg, ' degrees' 93 WRITE(numout,*) ' meridional resolution rn_e1deg = ', rn_e1deg, ' degrees' 94 WRITE(numout,*) ' vertical resolution rn_e3 = ', rn_e3 , ' meters' 95 WRITE(numout,*) ' ISOMIP domain = 15° x 10° x 900 m' 96 WRITE(numout,*) ' resulting global domain size : Ni0glo = ', kpi 97 WRITE(numout,*) ' Nj0glo = ', kpj 98 WRITE(numout,*) ' jpkglo = ', kpk 99 WRITE(numout,*) ' ' 100 WRITE(numout,*) ' Lateral boundary condition of the global domain' 101 WRITE(numout,*) ' ISOMIP : closed basin jperio = ', kperio 102 ENDIF 108 103 ! 109 104 END SUBROUTINE usr_def_nam
Note: See TracChangeset
for help on using the changeset viewer.