- Timestamp:
- 2013-04-18T16:38:06+02:00 (11 years ago)
- Location:
- branches/2013/dev_r3853_CNRS9_ConfSetting/NEMOGCM/NEMO/OPA_SRC
- Files:
-
- 60 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/2013/dev_r3853_CNRS9_ConfSetting/NEMOGCM/NEMO/OPA_SRC/ASM/asminc.F90
r3785 r3875 120 120 INTEGER :: iitiaustr_date ! Date YYYYMMDD of IAU interval start time step 121 121 INTEGER :: iitiaufin_date ! Date YYYYMMDD of IAU interval final time step 122 INTEGER :: ios ! Local integer output status for namelist read 122 123 123 124 REAL(wp) :: znorm ! Normalization factor for IAU weights … … 160 161 niaufn = 0 161 162 162 REWIND ( numnam ) 163 READ ( numnam, nam_asminc ) 163 REWIND( numnam_ref ) ! Namelist nam_asminc in reference namelist : Assimilation increment 164 READ ( numnam_ref, nam_asminc, IOSTAT = ios, ERR = 901) 165 901 IF( ios /= 0 ) CALL ctl_nam ( ios , 'nam_asminc in reference namelist', lwp ) 166 167 REWIND( numnam_cfg ) ! Namelist nam_asminc in configuration namelist : Assimilation increment 168 READ ( numnam_cfg, nam_asminc, IOSTAT = ios, ERR = 902 ) 169 902 IF( ios /= 0 ) CALL ctl_nam ( ios , 'nam_asminc in configuration namelist', lwp ) 170 WRITE ( numond, nam_asminc ) 164 171 165 172 ! Control print -
branches/2013/dev_r3853_CNRS9_ConfSetting/NEMOGCM/NEMO/OPA_SRC/BDY/bdydta.F90
r3851 r3875 355 355 !! 356 356 INTEGER :: ib_bdy, jfld, jstart, jend, ierror ! local indices 357 INTEGER :: ios ! Local integer output status for namelist read 357 358 !! 358 359 CHARACTER(len=100) :: cn_dir ! Root directory for location of data files … … 440 441 ! Read namelists 441 442 ! -------------- 442 REWIND(numnam )443 REWIND(numnam_cfg) 443 444 jfld = 0 444 445 DO ib_bdy = 1, nb_bdy … … 463 464 #endif 464 465 466 ! Read configuration namelist only to avoid unsuccessful overwrite 465 467 ! Important NOT to rewind here. 466 READ( numnam, nambdy_dta ) 468 !! REWIND( numnam_ref ) ! Namelist nambdy_dta in reference namelist : 469 !! READ ( numnam_ref, nambdy_dta, IOSTAT = ios, ERR = 901) 470 !!901 IF( ios /= 0 ) CALL ctl_nam ( ios , 'nambdy_dta in reference namelist', lwp ) 471 472 !! REWIND( numnam_cfg ) ! Namelist nambdy_dta in configuration namelist : 473 READ ( numnam_cfg, nambdy_dta, IOSTAT = ios, ERR = 902 ) 474 902 IF( ios /= 0 ) CALL ctl_nam ( ios , 'nambdy_dta in configuration namelist', lwp ) 475 WRITE ( numond, nambdy_dta ) 467 476 468 477 cn_dir_array(ib_bdy) = cn_dir -
branches/2013/dev_r3853_CNRS9_ConfSetting/NEMOGCM/NEMO/OPA_SRC/BDY/bdyini.F90
r3703 r3875 102 102 !! 103 103 NAMELIST/nambdy_index/ ctypebdy, nbdyind, nbdybeg, nbdyend 104 104 INTEGER :: ios ! Local integer output status for namelist read 105 105 !!---------------------------------------------------------------------- 106 106 … … 145 145 nn_rimwidth(:) = -1 ! uninitialised flag 146 146 147 REWIND( numnam ) 148 READ ( numnam, nambdy ) 147 REWIND( numnam_ref ) ! Namelist nambdy in reference namelist :Unstructured open boundaries 148 READ ( numnam_ref, nambdy, IOSTAT = ios, ERR = 901) 149 901 IF( ios /= 0 ) CALL ctl_nam ( ios , 'nambdy in reference namelist', lwp ) 150 151 REWIND( numnam_cfg ) ! Namelist nambdy in configuration namelist :Unstructured open boundaries 152 READ ( numnam_cfg, nambdy, IOSTAT = ios, ERR = 902 ) 153 902 IF( ios /= 0 ) CALL ctl_nam ( ios , 'nambdy in configuration namelist', lwp ) 154 WRITE ( numond, nambdy ) 149 155 150 156 ! ----------------------------------------- … … 301 307 ! Work out global dimensions of boundary data 302 308 ! --------------------------------------------- 303 REWIND( numnam ) 309 REWIND( numnam_cfg ) 310 311 !!---------------------------------------------------------------------- 312 313 304 314 305 315 nblendta(:,:) = 0 … … 319 329 icount = icount + 1 320 330 ! No REWIND here because may need to read more than one nambdy_index namelist. 321 READ ( numnam, nambdy_index ) 331 ! Read only namelist_cfg to avoid unseccessfull overwrite 332 !! REWIND( numnam_ref ) ! Namelist nambdy_index in reference namelist : Open boundaries indexes 333 !! READ ( numnam_ref, namrun, IOSTAT = ios, ERR = 903) 334 !!903 IF( ios /= 0 ) CALL ctl_nam ( ios , 'nambdy_index in reference namelist', lwp ) 335 336 !! REWIND( numnam_cfg ) ! Namelist nambdy_index in configuration namelist : Open boundaries indexes 337 READ ( numnam_cfg, nambdy_index, IOSTAT = ios, ERR = 904 ) 338 904 IF( ios /= 0 ) CALL ctl_nam ( ios , 'nambdy_index in configuration namelist', lwp ) 339 WRITE ( numond, nambdy_index ) 322 340 323 341 SELECT CASE ( TRIM(ctypebdy) ) -
branches/2013/dev_r3853_CNRS9_ConfSetting/NEMOGCM/NEMO/OPA_SRC/BDY/bdytides.F90
r3651 r3875 76 76 INTEGER, DIMENSION(3) :: ilen0 !: length of boundary data (from OBC arrays) 77 77 INTEGER, POINTER, DIMENSION(:) :: nblen, nblenrim ! short cuts 78 INTEGER :: ios ! Local integer output status for namelist read 78 79 CHARACTER(len=80) :: clfile !: full file name for tidal input file 79 80 REAL(wp),ALLOCATABLE, DIMENSION(:,:,:) :: dta_read !: work space to read in tidal harmonics data … … 96 97 ln_bdytide_conj = .FALSE. 97 98 98 REWIND(numnam) 99 REWIND(numnam_cfg) 100 99 101 DO ib_bdy = 1, nb_bdy 100 102 IF( nn_dyn2d_dta(ib_bdy) .ge. 2 ) THEN … … 108 110 109 111 ! Don't REWIND here - may need to read more than one of these namelists. 110 READ ( numnam, nambdy_tide ) 112 ! Read only configuration namelist to avoid unsecessful overwrite 113 !! REWIND( numnam_ref ) ! Namelist nambdy_tide in reference namelist : 114 !! READ ( numnam_ref, nambdy_tide, IOSTAT = ios, ERR = 901) 115 !! 901 IF( ios /= 0 ) CALL ctl_nam ( ios , 'nambdy_tide in reference namelist', lwp ) 116 117 !! REWIND( numnam_cfg ) ! Namelist nambdy_tide in configuration namelist : 118 READ ( numnam_cfg, nambdy_tide, IOSTAT = ios, ERR = 902 ) 119 902 IF( ios /= 0 ) CALL ctl_nam ( ios , 'nambdy_tide in configuration namelist', lwp ) 120 WRITE ( numond, nambdy_tide ) 111 121 ! ! Parameter control and print 112 122 IF(lwp) WRITE(numout,*) ' ' -
branches/2013/dev_r3853_CNRS9_ConfSetting/NEMOGCM/NEMO/OPA_SRC/DIA/diadct.F90
r3680 r3875 139 139 !!--------------------------------------------------------------------- 140 140 NAMELIST/namdct/nn_dct,nn_dctwri,nn_secdebug 141 INTEGER :: ios ! Local integer output status for namelist read 141 142 142 143 IF( nn_timing == 1 ) CALL timing_start('dia_dct_init') 143 144 144 !read namelist 145 REWIND( numnam ) 146 READ ( numnam, namdct ) 145 REWIND( numnam_ref ) ! Namelist namdct in reference namelist : Diagnostic: transport through sections 146 READ ( numnam_ref, namdct, IOSTAT = ios, ERR = 901) 147 901 IF( ios /= 0 ) CALL ctl_nam ( ios , 'namdct in reference namelist', lwp ) 148 149 REWIND( numnam_cfg ) ! Namelist namdct in configuration namelist : Diagnostic: transport through sections 150 READ ( numnam_cfg, namdct, IOSTAT = ios, ERR = 902 ) 151 902 IF( ios /= 0 ) CALL ctl_nam ( ios , 'namdct in configuration namelist', lwp ) 152 WRITE ( numond, namdct ) 147 153 148 154 IF( lwp ) THEN -
branches/2013/dev_r3853_CNRS9_ConfSetting/NEMOGCM/NEMO/OPA_SRC/DIA/diaharm.F90
r3294 r3875 78 78 !! * Local declarations 79 79 INTEGER :: jh, nhan, jk, ji 80 INTEGER :: ios ! Local integer output status for namelist read 80 81 81 82 NAMELIST/nam_diaharm/ nit000_han, nitend_han, nstep_han, tname … … 92 93 tname(:)='' 93 94 ! 94 ! Read Namelist nam_diaharm 95 REWIND ( numnam ) 96 READ ( numnam, nam_diaharm ) 95 REWIND( numnam_ref ) ! Namelist nam_diaharm in reference namelist : Tidal harmonic analysis 96 READ ( numnam_ref, nam_diaharm, IOSTAT = ios, ERR = 901) 97 901 IF( ios /= 0 ) CALL ctl_nam ( ios , 'nam_diaharm in reference namelist', lwp ) 98 99 REWIND( numnam_cfg ) ! Namelist nam_diaharm in configuration namelist : Tidal harmonic analysis 100 READ ( numnam_cfg, nam_diaharm, IOSTAT = ios, ERR = 902 ) 101 902 IF( ios /= 0 ) CALL ctl_nam ( ios , 'nam_diaharm in configuration namelist', lwp ) 102 WRITE ( numond, nam_diaharm ) 97 103 ! 98 104 IF(lwp) THEN -
branches/2013/dev_r3853_CNRS9_ConfSetting/NEMOGCM/NEMO/OPA_SRC/DIA/diahsb.F90
r3625 r3875 163 163 INTEGER :: jk ! dummy loop indice 164 164 INTEGER :: ierror ! local integer 165 INTEGER :: ios ! Local integer output status for namelist read 165 166 !! 166 167 NAMELIST/namhsb/ ln_diahsb 167 168 !!---------------------------------------------------------------------- 168 169 ! 169 REWIND ( numnam ) ! Read Namelist namhsb 170 READ ( numnam, namhsb ) 170 REWIND( numnam_ref ) ! Namelist namhsb in reference namelist : Heat & salt budget 171 READ ( numnam_ref, namhsb, IOSTAT = ios, ERR = 901) 172 901 IF( ios /= 0 ) CALL ctl_nam ( ios , 'namhsb in reference namelist', lwp ) 173 174 REWIND( numnam_cfg ) ! Namelist namhsb in configuration namelist : Heat & salt budget 175 READ ( numnam_cfg, namhsb, IOSTAT = ios, ERR = 902 ) 176 902 IF( ios /= 0 ) CALL ctl_nam ( ios , 'namhsb in configuration namelist', lwp ) 177 WRITE ( numond, namhsb ) 171 178 ! 172 179 IF(lwp) THEN ! Control print -
branches/2013/dev_r3853_CNRS9_ConfSetting/NEMOGCM/NEMO/OPA_SRC/DIA/diaptr.F90
r3764 r3875 449 449 INTEGER :: jn ! dummy loop indices 450 450 INTEGER :: inum, ierr ! local integers 451 INTEGER :: ios ! Local integer output status for namelist read 451 452 #if defined key_mpp_mpi 452 453 INTEGER, DIMENSION(1) :: iglo, iloc, iabsf, iabsl, ihals, ihale, idid … … 456 457 !!---------------------------------------------------------------------- 457 458 458 REWIND( numnam ) ! Read Namelist namptr : poleward transport parameters 459 READ ( numnam, namptr ) 459 REWIND( numnam_ref ) ! Namelist namptr in reference namelist : Poleward transport 460 READ ( numnam_ref, namptr, IOSTAT = ios, ERR = 901) 461 901 IF( ios /= 0 ) CALL ctl_nam ( ios , 'namptr in reference namelist', lwp ) 462 463 REWIND( numnam_cfg ) ! Namelist namptr in configuration namelist : Poleward transport 464 READ ( numnam_cfg, namptr, IOSTAT = ios, ERR = 902 ) 465 902 IF( ios /= 0 ) CALL ctl_nam ( ios , 'namptr in configuration namelist', lwp ) 466 WRITE ( numond, namptr ) 460 467 461 468 IF(lwp) THEN ! Control print -
branches/2013/dev_r3853_CNRS9_ConfSetting/NEMOGCM/NEMO/OPA_SRC/DOM/domain.F90
r3764 r3875 131 131 NAMELIST/namnc4/ nn_nchunks_i, nn_nchunks_j, nn_nchunks_k, ln_nc4zip 132 132 #endif 133 !!---------------------------------------------------------------------- 134 135 REWIND( numnam ) ! Namelist namrun : parameters of the run 136 READ ( numnam, namrun ) 133 INTEGER :: ios ! Local integer output status for namelist read 134 !!---------------------------------------------------------------------- 135 136 REWIND( numnam_ref ) ! Namelist namrun in reference namelist : Parameters of the run 137 READ ( numnam_ref, namrun, IOSTAT = ios, ERR = 901) 138 901 IF( ios /= 0 ) CALL ctl_nam ( ios , 'namrun in reference namelist', lwp ) 139 140 REWIND( numnam_cfg ) ! Namelist namrun in configuration namelist : Parameters of the run 141 READ ( numnam_cfg, namrun, IOSTAT = ios, ERR = 902 ) 142 902 IF( ios /= 0 ) CALL ctl_nam ( ios , 'namrun in configuration namelist', lwp ) 143 WRITE ( numond, namrun ) 137 144 ! 138 145 IF(lwp) THEN ! control print … … 200 207 #endif 201 208 202 REWIND( numnam ) ! Namelist namdom : space & time domain (bathymetry, mesh, timestep) 203 READ ( numnam, namdom ) 209 REWIND( numnam_ref ) ! Namelist namdom in reference namelist : space & time domain (bathymetry, mesh, timestep) 210 READ ( numnam_ref, namdom, IOSTAT = ios, ERR = 903) 211 903 IF( ios /= 0 ) CALL ctl_nam ( ios , 'namdom in reference namelist', lwp ) 212 213 REWIND( numnam_cfg ) ! Namelist namdom in configuration namelist : space & time domain (bathymetry, mesh, timestep) 214 READ ( numnam_cfg, namdom, IOSTAT = ios, ERR = 904 ) 215 904 IF( ios /= 0 ) CALL ctl_nam ( ios , 'namdom in configuration namelist', lwp ) 216 WRITE ( numond, namdom ) 204 217 205 218 IF(lwp) THEN … … 237 250 rdth = rn_rdth 238 251 239 REWIND( numnam ) ! Namelist cross land advection 240 READ ( numnam, namcla ) 252 REWIND( numnam_ref ) ! Namelist namcla in reference namelist : Cross land advection 253 READ ( numnam_ref, namcla, IOSTAT = ios, ERR = 905) 254 905 IF( ios /= 0 ) CALL ctl_nam ( ios , 'namcla in reference namelist', lwp ) 255 256 REWIND( numnam_cfg ) ! Namelist namcla in configuration namelist : Cross land advection 257 READ ( numnam_cfg, namcla, IOSTAT = ios, ERR = 906 ) 258 906 IF( ios /= 0 ) CALL ctl_nam ( ios , 'namcla in configuration namelist', lwp ) 259 WRITE( numond, namcla ) 260 241 261 IF(lwp) THEN 242 262 WRITE(numout,*) … … 247 267 #if defined key_netcdf4 248 268 ! ! NetCDF 4 case ("key_netcdf4" defined) 249 REWIND( numnam ) ! Namelist namnc4 : netcdf4 chunking parameters 250 READ ( numnam, namnc4 ) 269 REWIND( numnam_ref ) ! Namelist namnc4 in reference namelist : NETCDF 270 READ ( numnam_ref, namnc4, IOSTAT = ios, ERR = 907) 271 907 IF( ios /= 0 ) CALL ctl_nam ( ios , 'namnc4 in reference namelist', lwp ) 272 273 REWIND( numnam_cfg ) ! Namelist namnc4 in configuration namelist : NETCDF 274 READ ( numnam_cfg, namnc4, IOSTAT = ios, ERR = 908 ) 275 908 IF( ios /= 0 ) CALL ctl_nam ( ios , 'namnc4 in configuration namelist', lwp ) 276 WRITE( numond, namnc4 ) 277 251 278 IF(lwp) THEN ! control print 252 279 WRITE(numout,*) -
branches/2013/dev_r3853_CNRS9_ConfSetting/NEMOGCM/NEMO/OPA_SRC/DOM/dommsk.F90
r3294 r3875 133 133 INTEGER :: iif, iil, ii0, ii1, ii ! local integers 134 134 INTEGER :: ijf, ijl, ij0, ij1 ! - - 135 INTEGER :: ios 135 136 INTEGER , POINTER, DIMENSION(:,:) :: imsk 136 137 REAL(wp), POINTER, DIMENSION(:,:) :: zwf … … 144 145 CALL wrk_alloc( jpi, jpj, zwf ) 145 146 ! 146 REWIND( numnam ) ! Namelist namlbc : lateral momentum boundary condition 147 READ ( numnam, namlbc ) 147 REWIND( numnam_ref ) ! Namelist namlbc in reference namelist : Lateral momentum boundary condition 148 READ ( numnam_ref, namlbc, IOSTAT = ios, ERR = 901 ) 149 901 IF( ios /= 0 ) CALL ctl_nam ( ios , 'namlbc in reference namelist', lwp ) 150 151 REWIND( numnam_cfg ) ! Namelist namlbc in configuration namelist : Lateral momentum boundary condition 152 READ ( numnam_cfg, namlbc, IOSTAT = ios, ERR = 902 ) 153 902 IF( ios /= 0 ) CALL ctl_nam ( ios , 'namlbc in configuration namelist', lwp ) 154 WRITE ( numond, namlbc ) 148 155 149 156 IF(lwp) THEN ! control print -
branches/2013/dev_r3853_CNRS9_ConfSetting/NEMOGCM/NEMO/OPA_SRC/DOM/domzgr.F90
r3764 r3875 99 99 !!---------------------------------------------------------------------- 100 100 INTEGER :: ioptio, ibat ! local integer 101 INTEGER :: ios 101 102 ! 102 103 NAMELIST/namzgr/ ln_zco, ln_zps, ln_sco … … 105 106 IF( nn_timing == 1 ) CALL timing_start('dom_zgr') 106 107 ! 107 REWIND( numnam ) ! Read Namelist namzgr : vertical coordinate' 108 READ ( numnam, namzgr ) 108 REWIND( numnam_ref ) ! Namelist namzgr in reference namelist : Vertical coordinate 109 READ ( numnam_ref, namzgr, IOSTAT = ios, ERR = 901 ) 110 901 IF( ios /= 0 ) CALL ctl_nam ( ios , 'namzgr in reference namelist', lwp ) 111 112 REWIND( numnam_cfg ) ! Namelist namzgr in configuration namelist : Vertical coordinate 113 READ ( numnam_cfg, namzgr, IOSTAT = ios, ERR = 902 ) 114 902 IF( ios /= 0 ) CALL ctl_nam ( ios , 'namzgr in configuration namelist', lwp ) 115 WRITE ( numond, namzgr ) 109 116 110 117 IF(lwp) THEN ! Control print … … 1100 1107 INTEGER :: ji, jj, jk, jl ! dummy loop argument 1101 1108 INTEGER :: iip1, ijp1, iim1, ijm1 ! temporary integers 1109 INTEGER :: ios ! Local integer output status for namelist read 1102 1110 REAL(wp) :: zrmax, ztaper ! temporary scalars 1103 1111 ! … … 1112 1120 CALL wrk_alloc( jpi, jpj, zenv, ztmp, zmsk, zri, zrj, zhbat ) 1113 1121 ! 1114 REWIND( numnam ) ! Read Namelist namzgr_sco : sigma-stretching parameters 1115 READ ( numnam, namzgr_sco ) 1122 REWIND( numnam_ref ) ! Namelist namzgr_sco in reference namelist : Sigma-stretching parameters 1123 READ ( numnam_ref, namzgr_sco, IOSTAT = ios, ERR = 901) 1124 901 IF( ios /= 0 ) CALL ctl_nam ( ios , 'namzgr_sco in reference namelist', lwp ) 1125 1126 REWIND( numnam_cfg ) ! Namelist namzgr_sco in configuration namelist : Sigma-stretching parameters 1127 READ ( numnam_cfg, namzgr_sco, IOSTAT = ios, ERR = 902 ) 1128 902 IF( ios /= 0 ) CALL ctl_nam ( ios , 'namzgr_sco in configuration namelist', lwp ) 1129 WRITE ( numond, namzgr_sco ) 1116 1130 1117 1131 IF(lwp) THEN ! control print 1118 1132 WRITE(numout,*) 1119 WRITE(numout,*) 'dom :zgr_sco : s-coordinate or hybrid z-s-coordinate'1133 WRITE(numout,*) 'domzgr_sco : s-coordinate or hybrid z-s-coordinate' 1120 1134 WRITE(numout,*) '~~~~~~~~~~~' 1121 1135 WRITE(numout,*) ' Namelist namzgr_sco' -
branches/2013/dev_r3853_CNRS9_ConfSetting/NEMOGCM/NEMO/OPA_SRC/DOM/dtatsd.F90
r3294 r3875 62 62 !! 63 63 NAMELIST/namtsd/ ln_tsd_init, ln_tsd_tradmp, cn_dir, sn_tem, sn_sal 64 INTEGER :: ios 64 65 !!---------------------------------------------------------------------- 65 66 ! … … 76 77 sn_tem = FLD_N( 'temperature', -1. , 'votemper', .false. , .true. , 'monthly' , '' , '' ) 77 78 sn_sal = FLD_N( 'salinity' , -1. , 'vosaline', .false. , .true. , 'monthly' , '' , '' ) 78 79 REWIND( numnam ) ! read in namlist namdta_tsd 80 READ ( numnam, namtsd ) 79 80 REWIND( numnam_ref ) ! Namelist namtsd in reference namelist : 81 READ ( numnam_ref, namtsd, IOSTAT = ios, ERR = 901) 82 901 IF( ios /= 0 ) CALL ctl_nam ( ios , 'namtsd in reference namelist', lwp ) 83 84 REWIND( numnam_cfg ) ! Namelist namtsd in configuration namelist : Parameters of the run 85 READ ( numnam_cfg, namtsd, IOSTAT = ios, ERR = 902 ) 86 902 IF( ios /= 0 ) CALL ctl_nam ( ios , 'namtsd in configuration namelist', lwp ) 87 WRITE ( numond, namtsd ) 81 88 82 89 IF( PRESENT( ld_tradmp ) ) ln_tsd_tradmp = .TRUE. ! forces the initialization when tradmp is used -
branches/2013/dev_r3853_CNRS9_ConfSetting/NEMOGCM/NEMO/OPA_SRC/DYN/dynadv.F90
r3294 r3875 89 89 !!---------------------------------------------------------------------- 90 90 INTEGER :: ioptio 91 INTEGER :: ios ! Local integer output status for namelist read 91 92 !! 92 93 NAMELIST/namdyn_adv/ ln_dynadv_vec, ln_dynadv_cen2 , ln_dynadv_ubs 93 94 !!---------------------------------------------------------------------- 94 95 95 REWIND ( numnam ) ! Read Namelist namdyn_adv : momentum advection scheme 96 READ ( numnam, namdyn_adv ) 96 REWIND( numnam_ref ) ! Namelist namdyn_adv in reference namelist : Momentum advection scheme 97 READ ( numnam_ref, namdyn_adv, IOSTAT = ios, ERR = 901) 98 901 IF( ios /= 0 ) CALL ctl_nam ( ios , 'namdyn_adv in reference namelist', lwp ) 99 100 REWIND( numnam_cfg ) ! Namelist namdyn_adv in configuration namelist : Momentum advection scheme 101 READ ( numnam_cfg, namdyn_adv, IOSTAT = ios, ERR = 902 ) 102 902 IF( ios /= 0 ) CALL ctl_nam ( ios , 'namdyn_adv in configuration namelist', lwp ) 103 WRITE ( numond, namdyn_adv ) 97 104 98 105 IF(lwp) THEN ! Namelist print -
branches/2013/dev_r3853_CNRS9_ConfSetting/NEMOGCM/NEMO/OPA_SRC/DYN/dynhpg.F90
r3764 r3875 122 122 !!---------------------------------------------------------------------- 123 123 INTEGER :: ioptio = 0 ! temporary integer 124 INTEGER :: ios ! Local integer output status for namelist read 124 125 !! 125 126 NAMELIST/namdyn_hpg/ ln_hpg_zco, ln_hpg_zps, ln_hpg_sco, & … … 127 128 !!---------------------------------------------------------------------- 128 129 ! 129 REWIND( numnam ) ! Read Namelist namdyn_hpg 130 READ ( numnam, namdyn_hpg ) 130 REWIND( numnam_ref ) ! Namelist namdyn_hpg in reference namelist : Hydrostatic pressure gradient 131 READ ( numnam_ref, namdyn_hpg, IOSTAT = ios, ERR = 901) 132 901 IF( ios /= 0 ) CALL ctl_nam ( ios , 'namdyn_hpg in reference namelist', lwp ) 133 134 REWIND( numnam_cfg ) ! Namelist namdyn_hpg in configuration namelist : Hydrostatic pressure gradient 135 READ ( numnam_cfg, namdyn_hpg, IOSTAT = ios, ERR = 902 ) 136 902 IF( ios /= 0 ) CALL ctl_nam ( ios , 'namdyn_hpg in configuration namelist', lwp ) 137 WRITE ( numond, namdyn_hpg ) 131 138 ! 132 139 IF(lwp) THEN ! Control print -
branches/2013/dev_r3853_CNRS9_ConfSetting/NEMOGCM/NEMO/OPA_SRC/DYN/dynnept.F90
r3723 r3875 114 114 NAMELIST/namdyn_nept/ ln_neptsimp, ln_smooth_neptvel, rn_tslse, rn_tslsp, & 115 115 ln_neptramp, rn_htrmin, rn_htrmax 116 INTEGER :: ios 116 117 !!---------------------------------------------------------------------- 117 118 ! Define the (simplified) Neptune parameters 118 119 ! ========================================== 119 120 120 REWIND( numnam ) ! Read Namelist namdyn_nept: Simplified Neptune 121 READ ( numnam, namdyn_nept ) 121 REWIND( numnam_ref ) ! Namelist namdyn_nept in reference namelist : Simplified Neptune 122 READ ( numnam_ref, namdyn_nept, IOSTAT = ios, ERR = 901) 123 901 IF( ios /= 0 ) CALL ctl_nam ( ios , 'namdyn_nept in reference namelist', lwp ) 124 125 REWIND( numnam_cfg ) ! Namelist namdyn_nept in reference namelist : Simplified Neptune 126 READ ( numnam_cfg, namdyn_nept, IOSTAT = ios, ERR = 902 ) 127 902 IF( ios /= 0 ) CALL ctl_nam ( ios , 'namdyn_nept in configuration namelist', lwp ) 128 WRITE ( numond, namdyn_nept ) 122 129 123 130 IF(lwp) THEN ! Control print -
branches/2013/dev_r3853_CNRS9_ConfSetting/NEMOGCM/NEMO/OPA_SRC/DYN/dynvor.F90
r3802 r3875 710 710 INTEGER :: ioptio ! local integer 711 711 INTEGER :: ji, jj, jk ! dummy loop indices 712 INTEGER :: ios ! Local integer output status for namelist read 712 713 !! 713 714 NAMELIST/namdyn_vor/ ln_dynvor_ens, ln_dynvor_ene, ln_dynvor_mix, ln_dynvor_een 714 715 !!---------------------------------------------------------------------- 715 716 716 REWIND ( numnam ) ! Read Namelist namdyn_vor : Vorticity scheme options 717 READ ( numnam, namdyn_vor ) 717 REWIND( numnam_ref ) ! Namelist namdyn_vor in reference namelist : Vorticity scheme options 718 READ ( numnam_ref, namdyn_vor, IOSTAT = ios, ERR = 901) 719 901 IF( ios /= 0 ) CALL ctl_nam ( ios , 'namdyn_vor in reference namelist', lwp ) 720 721 REWIND( numnam_cfg ) ! Namelist namdyn_vor in configuration namelist : Vorticity scheme options 722 READ ( numnam_cfg, namdyn_vor, IOSTAT = ios, ERR = 902 ) 723 902 IF( ios /= 0 ) CALL ctl_nam ( ios , 'namdyn_vor in configuration namelist', lwp ) 724 WRITE ( numond, namdyn_vor ) 718 725 719 726 IF(lwp) THEN ! Namelist print … … 721 728 WRITE(numout,*) 'dyn_vor_init : vorticity term : read namelist and control the consistency' 722 729 WRITE(numout,*) '~~~~~~~~~~~~' 723 WRITE(numout,*) ' Namelist namdyn_vor : oice of the vorticity term scheme'730 WRITE(numout,*) ' Namelist namdyn_vor : choice of the vorticity term scheme' 724 731 WRITE(numout,*) ' energy conserving scheme ln_dynvor_ene = ', ln_dynvor_ene 725 732 WRITE(numout,*) ' enstrophy conserving scheme ln_dynvor_ens = ', ln_dynvor_ens -
branches/2013/dev_r3853_CNRS9_ConfSetting/NEMOGCM/NEMO/OPA_SRC/FLO/floats.F90
r3294 r3875 78 78 !!---------------------------------------------------------------------- 79 79 INTEGER :: jfl 80 INTEGER :: ios ! Local integer output status for namelist read 80 81 ! 81 82 NAMELIST/namflo/ jpnfl, jpnnewflo, ln_rstflo, nn_writefl, nn_stockfl, ln_argo, ln_flork4, ln_ariane, ln_flo_ascii … … 88 89 IF(lwp) WRITE(numout,*) '~~~~~~~' 89 90 90 REWIND( numnam ) ! Namelist namflo : floats 91 READ ( numnam, namflo ) 91 REWIND( numnam_ref ) ! Namelist namflo in reference namelist : Floats 92 READ ( numnam_ref, namflo, IOSTAT = ios, ERR = 901) 93 901 IF( ios /= 0 ) CALL ctl_nam ( ios , 'namflo in reference namelist', lwp ) 94 95 REWIND( numnam_cfg ) ! Namelist namflo in configuration namelist : Floats 96 READ ( numnam_cfg, namflo, IOSTAT = ios, ERR = 902 ) 97 902 IF( ios /= 0 ) CALL ctl_nam ( ios , 'namflo in configuration namelist', lwp ) 98 WRITE ( numond, namflo ) 92 99 ! 93 100 IF(lwp) THEN ! control print -
branches/2013/dev_r3853_CNRS9_ConfSetting/NEMOGCM/NEMO/OPA_SRC/ICB/icbini.F90
r3785 r3875 344 344 !!---------------------------------------------------------------------- 345 345 INTEGER :: jn ! dummy loop indices 346 INTEGER :: ios ! Local integer output status for namelist read 346 347 REAL(wp) :: zfact ! local scalar 347 348 ! … … 359 360 sn_icb = FLD_N( 'calving' , -1 , 'calving' , .TRUE. , .TRUE. , 'yearly' , '' , '' ) 360 361 361 REWIND( numnam ) ! Namelist namrun : iceberg parameters 362 READ ( numnam, namberg ) 362 REWIND( numnam_ref ) ! Namelist namberg in reference namelist : Iceberg parameters 363 READ ( numnam_ref, namberg, IOSTAT = ios, ERR = 901) 364 901 IF( ios /= 0 ) CALL ctl_nam ( ios , 'namberg in reference namelist', lwp ) 365 366 REWIND( numnam_cfg ) ! Namelist namberg in configuration namelist : Iceberg parameters 367 READ ( numnam_cfg, namberg, IOSTAT = ios, ERR = 902 ) 368 902 IF( ios /= 0 ) CALL ctl_nam ( ios , 'namberg in configuration namelist', lwp ) 369 WRITE ( numond, namberg ) 363 370 364 371 IF( .NOT. ln_icebergs ) THEN ! no icebergs 365 372 IF(lwp) THEN 366 373 WRITE(numout,*) 367 WRITE(numout,*) 'icb _nam :ln_icebergs = F , NO icebergs used'374 WRITE(numout,*) 'icbini : Namelist namberg ln_icebergs = F , NO icebergs used' 368 375 WRITE(numout,*) '~~~~~~~~ ' 369 376 ENDIF -
branches/2013/dev_r3853_CNRS9_ConfSetting/NEMOGCM/NEMO/OPA_SRC/IOM/in_out_manager.F90
r3680 r3875 107 107 !! logical units 108 108 !!---------------------------------------------------------------------- 109 INTEGER :: numstp = -1 !: logical unit for time step 110 INTEGER :: numtime = -1 !: logical unit for timing 111 INTEGER :: numout = 6 !: logical unit for output print 112 INTEGER :: numnam = -1 !: logical unit for namelist 113 INTEGER :: numnam_ice = -1 !: logical unit for ice namelist 114 INTEGER :: numevo_ice = -1 !: logical unit for ice variables (temp. evolution) 115 INTEGER :: numsol = -1 !: logical unit for solver statistics 116 INTEGER :: numdct_in = -1 !: logical unit for transports computing 117 INTEGER :: numdct_vol = -1 !: logical unit for voulume transports output 118 INTEGER :: numdct_heat = -1 !: logical unit for heat transports output 119 INTEGER :: numdct_salt = -1 !: logical unit for salt transports output 120 INTEGER :: numfl = -1 !: logical unit for floats ascii output 121 INTEGER :: numflo = -1 !: logical unit for floats ascii output 109 INTEGER :: numstp = -1 !: logical unit for time step 110 INTEGER :: numtime = -1 !: logical unit for timing 111 INTEGER :: numout = 6 !: logical unit for output print 112 INTEGER :: numnam_ref = -1 !: logical unit for reference namelist 113 INTEGER :: numnam_cfg = -1 !: logical unit for configuration specific namelist 114 INTEGER :: numond = 7 !: logical unit for Output Namelist Dynamics 115 INTEGER :: numnam_ice_ref = -1 !: logical unit for ice reference namelist 116 INTEGER :: numnam_ice_cfg = -1 !: logical unit for ice reference namelist 117 INTEGER :: numoni = 8 !: logical unit for Output Namelist Ice 118 INTEGER :: numevo_ice = -1 !: logical unit for ice variables (temp. evolution) 119 INTEGER :: numsol = -1 !: logical unit for solver statistics 120 INTEGER :: numdct_in = -1 !: logical unit for transports computing 121 INTEGER :: numdct_vol = -1 !: logical unit for voulume transports output 122 INTEGER :: numdct_heat = -1 !: logical unit for heat transports output 123 INTEGER :: numdct_salt = -1 !: logical unit for salt transports output 124 INTEGER :: numfl = -1 !: logical unit for floats ascii output 125 INTEGER :: numflo = -1 !: logical unit for floats ascii output 122 126 123 127 !!---------------------------------------------------------------------- -
branches/2013/dev_r3853_CNRS9_ConfSetting/NEMOGCM/NEMO/OPA_SRC/IOM/restart.F90
r3680 r3875 156 156 WRITE(numout,*) 157 157 SELECT CASE ( jprstlib ) 158 CASE ( jpnf90 ) ; WRITE(numout,*) 'rst_read : read oce NetCDF restart file '158 CASE ( jpnf90 ) ; WRITE(numout,*) 'rst_read : read oce NetCDF restart file ',TRIM(cn_ocerst_in)//'.nc' 159 159 CASE ( jprstdimg ) ; WRITE(numout,*) 'rst_read : read oce binary restart file' 160 160 END SELECT -
branches/2013/dev_r3853_CNRS9_ConfSetting/NEMOGCM/NEMO/OPA_SRC/LBC/lib_mpp.F90
r3799 r3875 28 28 !! ctl_warn : initialization, namelist read, and parameters control 29 29 !! ctl_opn : Open file and check if required file is available. 30 !! get_unit : give the index of an unused logical unit 30 !! ctl_nam : Prints informations when an error occurs while reading a namelist 31 !! get_unit : give the index of an unused logical unit 31 32 !!---------------------------------------------------------------------- 32 33 #if defined key_mpp_mpi … … 61 62 IMPLICIT NONE 62 63 PRIVATE 63 64 PUBLIC ctl_stop, ctl_warn, get_unit, ctl_opn 64 65 PUBLIC ctl_stop, ctl_warn, get_unit, ctl_opn, ctl_nam 65 66 PUBLIC mynode, mppstop, mppsync, mpp_comm_free 66 67 PUBLIC mpp_ini_north, mpp_lbc_north, mpp_lbc_north_e … … 225 226 226 227 227 FUNCTION mynode( ldtxt, kumnam , kstop, localComm )228 FUNCTION mynode( ldtxt, kumnam_ref , kumnam_cfg , kumond , kstop, localComm ) 228 229 !!---------------------------------------------------------------------- 229 230 !! *** routine mynode *** … … 232 233 !!---------------------------------------------------------------------- 233 234 CHARACTER(len=*),DIMENSION(:), INTENT( out) :: ldtxt 234 INTEGER , INTENT(in ) :: kumnam ! namelist logical unit 235 INTEGER , INTENT(inout) :: kstop ! stop indicator 235 INTEGER , INTENT(in ) :: kumnam_ref ! logical unit for reference namelist 236 INTEGER , INTENT(in ) :: kumnam_cfg ! logical unit for configuration namelist 237 INTEGER , INTENT(in ) :: kumond ! logical unit for namelist output 238 INTEGER , INTENT(inout) :: kstop ! stop indicator 236 239 INTEGER, OPTIONAL , INTENT(in ) :: localComm 237 240 ! 238 INTEGER :: mynode, ierr, code, ji, ii 241 INTEGER :: mynode, ierr, code, ji, ii, ios 239 242 LOGICAL :: mpi_was_called 240 243 ! … … 248 251 ! 249 252 jpni = -1; jpnj = -1; jpnij = -1 250 REWIND( kumnam ) ! Namelist namrun : parameters of the run 251 READ ( kumnam, nammpp ) 253 254 REWIND( kumnam_ref ) ! Namelist nammpp in reference namelist: mpi variables 255 READ ( kumnam_ref, nammpp, IOSTAT = ios, ERR = 901) 256 901 IF( ios /= 0 ) CALL ctl_nam ( ios , 'nammpp in reference namelist', lwp ) 257 258 REWIND( kumnam_cfg ) ! Namelist nammpp in configuration namelist: mpi variables 259 READ ( kumnam_cfg, nammpp, IOSTAT = ios, ERR = 902 ) 260 902 IF( ios /= 0 ) CALL ctl_nam ( ios , 'nammpp in configuration namelist', lwp ) 261 WRITE(kumond, nammpp) 262 252 263 ! ! control print 253 264 WRITE(ldtxt(ii),*) ' Namelist nammpp' ; ii = ii + 1 … … 3455 3466 END FUNCTION lib_mpp_alloc 3456 3467 3457 FUNCTION mynode( ldtxt, kumnam , kstop, localComm ) RESULT (function_value)3468 FUNCTION mynode( ldtxt, kumnam_ref, knumnam_cfg, kstop, localComm ) RESULT (function_value) 3458 3469 INTEGER, OPTIONAL , INTENT(in ) :: localComm 3459 3470 CHARACTER(len=*),DIMENSION(:) :: ldtxt 3460 INTEGER :: kumnam , kstop3471 INTEGER :: kumnam_ref, knumnam_cfg , kstop 3461 3472 IF( PRESENT( localComm ) .OR. .NOT.PRESENT( localComm ) ) function_value = 0 3462 3473 IF( .FALSE. ) ldtxt(:) = 'never done' … … 3637 3648 3638 3649 !!---------------------------------------------------------------------- 3639 !! All cases: ctl_stop, ctl_warn, get_unit, ctl_opn routines3650 !! All cases: ctl_stop, ctl_warn, get_unit, ctl_opn, ctl_nam routines 3640 3651 !!---------------------------------------------------------------------- 3641 3652 … … 3780 3791 END SUBROUTINE ctl_opn 3781 3792 3793 SUBROUTINE ctl_nam ( kios, cdnam, ldwp ) 3794 !!---------------------------------------------------------------------- 3795 !! *** ROUTINE ctl_nam *** 3796 !! 3797 !! ** Purpose : Informations when error while reading a namelist 3798 !! 3799 !! ** Method : Fortan open 3800 !!---------------------------------------------------------------------- 3801 INTEGER , INTENT(inout) :: kios ! IO status after reading the namelist 3802 CHARACTER(len=*) , INTENT(in ) :: cdnam ! group name of namelist for which error occurs 3803 CHARACTER(len=4) :: clios ! string to convert iostat in character for print 3804 LOGICAL , INTENT(in ) :: ldwp ! boolean term for print 3805 !!---------------------------------------------------------------------- 3806 3807 ! 3808 ! ---------------- 3809 WRITE (clios, '(I4.0)') kios 3810 IF( kios < 0 ) THEN 3811 CALL ctl_warn( 'W A R N I N G: end of record or file while reading namelist ' & 3812 & // TRIM(cdnam) // ' iostat = ' // TRIM(clios) ) 3813 ENDIF 3814 3815 IF( kios > 0 ) THEN 3816 CALL ctl_stop( 'E R R O R : misspelled variable in namelist ' & 3817 & // TRIM(cdnam) // ' iostat = ' // TRIM(clios) ) 3818 ENDIF 3819 kios = 0 3820 RETURN 3821 3822 END SUBROUTINE ctl_nam 3782 3823 3783 3824 INTEGER FUNCTION get_unit() -
branches/2013/dev_r3853_CNRS9_ConfSetting/NEMOGCM/NEMO/OPA_SRC/LBC/mppini_2.h90
r3818 r3875 45 45 INTEGER :: inum ! temporary logical unit 46 46 INTEGER :: idir ! temporary integers 47 INTEGER :: ios ! Local integer output status for namelist read 47 48 INTEGER :: & 48 49 ii, ij, ifreq, il1, il2, & ! temporary integers … … 77 78 !! This software is governed by the CeCILL licence see modipsl/doc/NEMO_CeCILL.txt 78 79 !!---------------------------------------------------------------------- 79 80 REWIND ( numnam ) ! Read Namelist namzgr : vertical coordinate' 81 READ ( numnam, namzgr ) 80 81 REWIND( numnam_ref ) ! Namelist namzgr in reference namelist : Vertical coordinate 82 READ ( numnam_ref, namzgr, IOSTAT = ios, ERR = 901) 83 901 IF( ios /= 0 ) CALL ctl_nam ( ios , 'namzgr in reference namelist', lwp ) 84 85 REWIND( numnam_cfg ) ! Namelist namzgr in configuration namelist : Vertical coordinate 86 READ ( numnam_cfg, namzgr, IOSTAT = ios, ERR = 902 ) 87 902 IF( ios /= 0 ) CALL ctl_nam ( ios , 'namzgr in configuration namelist', lwp ) 88 WRITE ( numond, namzgr ) 82 89 83 90 IF(lwp)WRITE(numout,*) -
branches/2013/dev_r3853_CNRS9_ConfSetting/NEMOGCM/NEMO/OPA_SRC/LDF/ldfdyn.F90
r3634 r3875 63 63 !!---------------------------------------------------------------------- 64 64 INTEGER :: ioptio ! ??? 65 INTEGER :: ios ! Local : output status for namelist read 65 66 LOGICAL :: ll_print = .FALSE. ! Logical flag for printing viscosity coef. 66 67 !! … … 73 74 !!---------------------------------------------------------------------- 74 75 75 REWIND( numnam ) ! Read Namelist namdyn_ldf : Lateral physics 76 READ ( numnam, namdyn_ldf ) 76 REWIND( numnam_ref ) ! Namelist namdyn_ldf in reference namelist : Lateral physics 77 READ ( numnam_ref, namdyn_ldf, IOSTAT = ios, ERR = 901) 78 901 IF( ios /= 0 ) CALL ctl_nam ( ios , 'namdyn_ldf in reference namelist', lwp ) 79 80 REWIND( numnam_cfg ) ! Namelist namdyn_ldf in configuration namelist : Lateral physics 81 READ ( numnam_cfg, namdyn_ldf, IOSTAT = ios, ERR = 902 ) 82 902 IF( ios /= 0 ) CALL ctl_nam ( ios , 'namdyn_ldf in configuration namelist', lwp ) 83 WRITE ( numond, namdyn_ldf ) 77 84 78 85 IF(lwp) THEN ! Parameter print … … 80 87 WRITE(numout,*) 'ldf_dyn : lateral momentum physics' 81 88 WRITE(numout,*) '~~~~~~~' 82 WRITE(numout,*) ' Namelist nam _dynldf : set lateral mixing parameters'89 WRITE(numout,*) ' Namelist namdyn_ldf : set lateral mixing parameters' 83 90 WRITE(numout,*) ' laplacian operator ln_dynldf_lap = ', ln_dynldf_lap 84 91 WRITE(numout,*) ' bilaplacian operator ln_dynldf_bilap = ', ln_dynldf_bilap -
branches/2013/dev_r3853_CNRS9_ConfSetting/NEMOGCM/NEMO/OPA_SRC/LDF/ldftra.F90
r3634 r3875 62 62 !!---------------------------------------------------------------------- 63 63 INTEGER :: ioptio ! temporary integer 64 INTEGER :: ios ! temporary integer 64 65 LOGICAL :: ll_print = .FALSE. ! =T print eddy coef. in numout 65 66 !! … … 76 77 ! ============================================= 77 78 78 REWIND( numnam ) ! Read Namelist namtra_ldf : Lateral physics on tracers 79 READ ( numnam, namtra_ldf ) 79 80 REWIND( numnam_ref ) ! Namelist namtra_ldf in reference namelist : Lateral physics on tracers 81 READ ( numnam_ref, namtra_ldf, IOSTAT = ios, ERR = 901) 82 901 IF( ios /= 0 ) CALL ctl_nam ( ios , 'namtra_ldf in reference namelist', lwp ) 83 84 REWIND( numnam_cfg ) ! Namelist namtra_ldf in configuration namelist : Lateral physics on tracers 85 READ ( numnam_cfg, namtra_ldf, IOSTAT = ios, ERR = 902 ) 86 902 IF( ios /= 0 ) CALL ctl_nam ( ios , 'namtra_ldf in configuration namelist', lwp ) 87 WRITE ( numond, namtra_ldf ) 80 88 81 89 IF(lwp) THEN ! control print -
branches/2013/dev_r3853_CNRS9_ConfSetting/NEMOGCM/NEMO/OPA_SRC/OBC/obcini.F90
r2715 r3875 57 57 !! 58 58 INTEGER :: ji, jj, istop , inumfbc 59 INTEGER :: ios ! Local integer output status for namelist read 59 60 INTEGER, DIMENSION(4) :: icorner 60 61 REAL(wp), DIMENSION(2) :: ztestmask … … 66 67 !!---------------------------------------------------------------------- 67 68 68 REWIND( numnam ) ! Namelist namobc : open boundaries 69 READ ( numnam, namobc ) 69 REWIND( numnam_ref ) ! Namelist namobc in reference namelist : Open boundaries 70 READ ( numnam_ref, namobc, IOSTAT = ios, ERR = 901) 71 901 IF( ios /= 0 ) CALL ctl_nam ( ios , 'namobc in reference namelist', lwp ) 72 73 REWIND( numnam_cfg ) ! Namelist namobc in configuration namelist : Open boundaries 74 READ ( numnam_cfg, namobc, IOSTAT = ios, ERR = 902 ) 75 902 IF( ios /= 0 ) CALL ctl_nam ( ios , 'namobc in configuration namelist', lwp ) 76 WRITE ( numond, namobc ) 70 77 71 78 ! convert DOCTOR namelist name into the OLD names -
branches/2013/dev_r3853_CNRS9_ConfSetting/NEMOGCM/NEMO/OPA_SRC/OBS/diaobs.F90
r3651 r3875 197 197 INTEGER :: ji 198 198 INTEGER :: jset 199 INTEGER :: ios ! Local integer output status for namelist read 199 200 LOGICAL :: lmask(MaxNumFiles), ll_u3d, ll_v3d 200 201 … … 262 263 263 264 ! Read Namelist namobs : control observation diagnostics 264 REWIND( numnam ) 265 READ ( numnam, namobs ) 265 REWIND( numnam_ref ) ! Namelist namobs in reference namelist : Diagnostic: control observation 266 READ ( numnam_ref, namobs, IOSTAT = ios, ERR = 901) 267 901 IF( ios /= 0 ) CALL ctl_nam ( ios , 'namobs in reference namelist', lwp ) 268 269 REWIND( numnam_cfg ) ! Namelist namobs in configuration namelist : Diagnostic: control observation 270 READ ( numnam_cfg, namobs, IOSTAT = ios, ERR = 902 ) 271 902 IF( ios /= 0 ) CALL ctl_nam ( ios , 'namobs in configuration namelist', lwp ) 272 WRITE ( numond, namobs ) 266 273 267 274 ! Count number of files for each type -
branches/2013/dev_r3853_CNRS9_ConfSetting/NEMOGCM/NEMO/OPA_SRC/SBC/albedo.F90
r3625 r3875 199 199 !! ** Method : Read the namelist namsbc_alb 200 200 !!---------------------------------------------------------------------- 201 INTEGER :: ios ! Local integer output status for namelist read 201 202 NAMELIST/namsbc_alb/ rn_cloud, rn_albice, rn_alphd, rn_alphdi, rn_alphc 202 203 !!---------------------------------------------------------------------- … … 204 205 albd_init = 1 ! indicate that the initialization has been done 205 206 ! 206 REWIND( numnam ) ! Read Namelist namsbc_alb : albedo parameters 207 READ ( numnam, namsbc_alb ) 207 REWIND( numnam_ref ) ! Namelist namsbc_alb in reference namelist : Albedo parameters 208 READ ( numnam_ref, namsbc_alb, IOSTAT = ios, ERR = 901) 209 901 IF( ios /= 0 ) CALL ctl_nam ( ios , 'namsbc_alb in reference namelist', lwp ) 210 211 REWIND( numnam_cfg ) ! Namelist namsbc_alb in configuration namelist : Albedo parameters 212 READ ( numnam_cfg, namsbc_alb, IOSTAT = ios, ERR = 902 ) 213 902 IF( ios /= 0 ) CALL ctl_nam ( ios , 'namsbc_alb in configuration namelist', lwp ) 214 WRITE ( numond, namsbc_alb ) 208 215 ! 209 216 IF(lwp) THEN ! Control print -
branches/2013/dev_r3853_CNRS9_ConfSetting/NEMOGCM/NEMO/OPA_SRC/SBC/cyclone.F90
r3680 r3875 103 103 sn_tc = FLD_N( 'tc_track', 6 , 'tc' , .true. , .false. , 'yearly' , '' , '' ) 104 104 ! 105 ! REWIND( numnam ) ! ... read in namlist namsbc_core 106 ! READ ( numnam, namsbc_tc ) 107 ! 105 ! Namelist is read in namsbc_core 108 106 ! set sf structure 109 107 ALLOCATE( sf(1), STAT=ierror ) -
branches/2013/dev_r3853_CNRS9_ConfSetting/NEMOGCM/NEMO/OPA_SRC/SBC/sbcana.F90
r3625 r3875 64 64 INTEGER, INTENT(in) :: kt ! ocean time step 65 65 ! 66 INTEGER :: ios ! Local integer output status for namelist read 66 67 REAL(wp) :: zfacto ! local scalar 67 68 REAL(wp) :: zrhoa = 1.22_wp ! Air density kg/m3 … … 74 75 IF( kt == nit000 ) THEN 75 76 ! 76 REWIND( numnam ) ! Read Namelist namsbc : surface fluxes 77 READ ( numnam, namsbc_ana ) 77 REWIND( numnam_ref ) ! Namelist namsbc_ana in reference namelist : Analytical surface fluxes 78 READ ( numnam_ref, namsbc_ana, IOSTAT = ios, ERR = 901) 79 901 IF( ios /= 0 ) CALL ctl_nam ( ios , 'namsbc_ana in reference namelist', lwp ) 80 81 REWIND( numnam_cfg ) ! Namelist namsbc_ana in configuration namelist : Analytical surface fluxes 82 READ ( numnam_cfg, namsbc_ana, IOSTAT = ios, ERR = 902 ) 83 902 IF( ios /= 0 ) CALL ctl_nam ( ios , 'namsbc_ana in configuration namelist', lwp ) 84 WRITE ( numond, namsbc_ana ) 78 85 ! 79 86 IF(lwp) WRITE(numout,*)' ' -
branches/2013/dev_r3853_CNRS9_ConfSetting/NEMOGCM/NEMO/OPA_SRC/SBC/sbcapr.F90
r3795 r3875 65 65 !! 66 66 INTEGER :: ierror ! local integer 67 INTEGER :: ios ! Local integer output status for namelist read 67 68 !! 68 69 CHARACTER(len=100) :: cn_dir ! Root directory for location of ssr files … … 83 84 cn_dir = './' ! directory in which the Patm data are 84 85 85 REWIND( numnam ) !* read in namlist namsbc_apr 86 READ ( numnam, namsbc_apr ) 86 REWIND( numnam_ref ) ! Namelist namsbc_apr in reference namelist : File for atmospheric pressure forcing 87 READ ( numnam_ref, namsbc_apr, IOSTAT = ios, ERR = 901) 88 901 IF( ios /= 0 ) CALL ctl_nam ( ios , 'namsbc_apr in reference namelist', lwp ) 89 90 REWIND( numnam_cfg ) ! Namelist namsbc_apr in configuration namelist : File for atmospheric pressure forcing 91 READ ( numnam_cfg, namsbc_apr, IOSTAT = ios, ERR = 902 ) 92 902 IF( ios /= 0 ) CALL ctl_nam ( ios , 'namsbc_apr in configuration namelist', lwp ) 93 WRITE ( numond, namsbc_apr ) 87 94 ! 88 95 ALLOCATE( sf_apr(1), STAT=ierror ) !* allocate and fill sf_sst (forcing structure) with sn_sst -
branches/2013/dev_r3853_CNRS9_ConfSetting/NEMOGCM/NEMO/OPA_SRC/SBC/sbcblk_clio.F90
r3625 r3875 124 124 INTEGER, INTENT( in ) :: kt ! ocean time step 125 125 !! 126 INTEGER :: ifpr, jfpr ! dummy indices126 INTEGER :: ifpr, jfpr ! dummy indices 127 127 INTEGER :: ierr0, ierr1, ierr2, ierr3 ! return error code 128 INTEGER :: ios ! Local integer output status for namelist read 128 129 !! 129 130 CHARACTER(len=100) :: cn_dir ! Root directory for location of CLIO files … … 153 154 sn_prec = FLD_N( 'precip' , -1 , 'precip' , .true. , .false. , 'yearly' , '' , '' ) 154 155 155 REWIND( numnam ) ! ... read in namlist namsbc_clio 156 READ ( numnam, namsbc_clio ) 156 REWIND( numnam_ref ) ! Namelist namsbc_clio in reference namelist : CLIO files 157 READ ( numnam_ref, namsbc_clio, IOSTAT = ios, ERR = 901) 158 901 IF( ios /= 0 ) CALL ctl_nam ( ios , 'namsbc_clio in reference namelist', lwp ) 159 160 REWIND( numnam_cfg ) ! Namelist namsbc_clio in configuration namelist : CLIO files 161 READ ( numnam_cfg, namsbc_clio, IOSTAT = ios, ERR = 902 ) 162 902 IF( ios /= 0 ) CALL ctl_nam ( ios , 'namsbc_clio in configuration namelist', lwp ) 163 WRITE ( numond, namsbc_clio ) 157 164 158 165 ! store namelist information in an array -
branches/2013/dev_r3853_CNRS9_ConfSetting/NEMOGCM/NEMO/OPA_SRC/SBC/sbcblk_core.F90
r3772 r3875 122 122 INTEGER :: ifpr ! dummy loop indice 123 123 INTEGER :: jfld ! dummy loop arguments 124 INTEGER :: ios ! Local integer output status for namelist read 124 125 !! 125 126 CHARACTER(len=100) :: cn_dir ! Root directory for location of core files … … 151 152 sn_tdif = FLD_N( 'taudif' , 24 , 'taudif' , .true. , .false. , 'yearly' , '' , '' ) 152 153 ! 153 REWIND( numnam ) ! read in namlist namsbc_core 154 READ ( numnam, namsbc_core ) 154 155 REWIND( numnam_ref ) ! Namelist namsbc_core in reference namelist : CORE bulk parameters 156 READ ( numnam_ref, namsbc_core, IOSTAT = ios, ERR = 901) 157 901 IF( ios /= 0 ) CALL ctl_nam ( ios , 'namsbc_core in reference namelist', lwp ) 158 159 REWIND( numnam_cfg ) ! Namelist namsbc_core in configuration namelist : CORE bulk parameters 160 READ ( numnam_cfg, namsbc_core, IOSTAT = ios, ERR = 902 ) 161 902 IF( ios /= 0 ) CALL ctl_nam ( ios , 'namsbc_core in configuration namelist', lwp ) 162 WRITE ( numond, namsbc_core ) 155 163 ! ! check: do we plan to use ln_dm2dc with non-daily forcing? 156 164 IF( ln_dm2dc .AND. sn_qsr%nfreqh /= 24 ) & -
branches/2013/dev_r3853_CNRS9_ConfSetting/NEMOGCM/NEMO/OPA_SRC/SBC/sbcblk_mfs.F90
r3625 r3875 104 104 INTEGER :: ifpr ! dummy loop indice 105 105 INTEGER :: jj,ji ! dummy loop arguments 106 INTEGER :: ios ! Local integer output status for namelist read 106 107 REAL(wp) :: act_hour 107 108 !!-------------------------------------------------------------------- … … 147 148 sn_prec = FLD_N( 'precip_cmap' , -1 , 'precip' , .true. , .true. , 'yearly' , '' , '' ) 148 149 ! 149 REWIND( numnam ) ! ... read in namlist namsbc_mfs 150 READ ( numnam, namsbc_mfs ) 150 151 REWIND( numnam_ref ) ! Namelist namsbc_msf in reference namelist : MFS files 152 READ ( numnam_ref, namsbc_mfs, IOSTAT = ios, ERR = 901) 153 901 IF( ios /= 0 ) CALL ctl_nam ( ios , 'namsbc_mfs in reference namelist', lwp ) 154 155 REWIND( numnam_cfg ) ! Namelist namsbc_msf in configuration namelist : MFS files 156 READ ( numnam_cfg, namsbc_mfs, IOSTAT = ios, ERR = 902 ) 157 902 IF( ios /= 0 ) CALL ctl_nam ( ios , 'namsbc_mfs in configuration namelist', lwp ) 158 WRITE ( numond, namsbc_mfs ) 151 159 ! 152 160 ! store namelist information in an array -
branches/2013/dev_r3853_CNRS9_ConfSetting/NEMOGCM/NEMO/OPA_SRC/SBC/sbccpl.F90
r3680 r3875 221 221 !! 222 222 INTEGER :: jn ! dummy loop index 223 INTEGER :: ios ! Local integer output status for namelist read 223 224 REAL(wp), POINTER, DIMENSION(:,:) :: zacs, zaos 224 225 !! … … 258 259 sn_rcv_co2 = FLD_C( 'none' , 'no' , '' , '' , '' ) 259 260 260 REWIND( numnam ) ! ... read namlist namsbc_cpl 261 READ ( numnam, namsbc_cpl ) 261 REWIND( numnam_ref ) ! Namelist namsbc_cpl in reference namelist : Variables for OASIS coupling 262 READ ( numnam_ref, namsbc_cpl, IOSTAT = ios, ERR = 901) 263 901 IF( ios /= 0 ) CALL ctl_nam ( ios , 'namsbc_cpl in reference namelist', lwp ) 264 265 REWIND( numnam_cfg ) ! Namelist namsbc_cpl in configuration namelist : Variables for OASIS coupling 266 READ ( numnam_cfg, namsbc_cpl, IOSTAT = ios, ERR = 902 ) 267 902 IF( ios /= 0 ) CALL ctl_nam ( ios , 'namsbc_cpl in configuration namelist', lwp ) 268 WRITE ( numond, namsbc_cpl ) 262 269 263 270 IF(lwp) THEN ! control print -
branches/2013/dev_r3853_CNRS9_ConfSetting/NEMOGCM/NEMO/OPA_SRC/SBC/sbcflx.F90
r3625 r3875 77 77 INTEGER :: ji, jj, jf ! dummy indices 78 78 INTEGER :: ierror ! return error code 79 INTEGER :: ios ! Local integer output status for namelist read 79 80 REAL(wp) :: zfact ! temporary scalar 80 81 REAL(wp) :: zrhoa = 1.22 ! Air density kg/m3 … … 100 101 sn_emp = FLD_N( 'emp' , 24 , 'emp' , .false. , .false. , 'yearly' , '' , '' ) 101 102 ! 102 REWIND ( numnam ) ! read in namlist namflx 103 READ ( numnam, namsbc_flx ) 103 REWIND( numnam_ref ) ! Namelist namsbc_flx in reference namelist : Files for fluxes 104 READ ( numnam_ref, namsbc_flx, IOSTAT = ios, ERR = 901) 105 901 IF( ios /= 0 ) CALL ctl_nam ( ios , 'namsbc_flx in reference namelist', lwp ) 106 107 REWIND( numnam_cfg ) ! Namelist namsbc_flx in configuration namelist : Files for fluxes 108 READ ( numnam_cfg, namsbc_flx, IOSTAT = ios, ERR = 902 ) 109 902 IF( ios /= 0 ) CALL ctl_nam ( ios , 'namsbc_flx in configuration namelist', lwp ) 110 WRITE ( numond, namsbc_flx ) 104 111 ! 105 112 ! ! check: do we plan to use ln_dm2dc with non-daily forcing? -
branches/2013/dev_r3853_CNRS9_ConfSetting/NEMOGCM/NEMO/OPA_SRC/SBC/sbcice_cice.F90
r3625 r3875 759 759 sn_bot5 = FLD_N( 'botmeltn5_1m' , -1. , 'botmeltn5' , .true. , .true. , ' yearly' , '' , '' ) 760 760 761 ! REWIND ( numnam ) ! ... at some point might read in from NEMO namelist? 762 ! READ ( numnam, namsbc_cice ) 761 ! ... at some point might read in from NEMO namelist? 762 !!$ REWIND( numnam_ref ) ! Namelist namsbc_cice in reference namelist : 763 !!$ READ ( numnam_ref, namsbc_cice, IOSTAT = ios, ERR = 901) 764 !!$901 IF( ios /= 0 ) CALL ctl_nam ( ios , 'namsbc_cice in reference namelist', lwp ) 765 !!$ 766 !!$ REWIND( numnam_cfg ) ! Namelist namsbc_cice in configuration namelist : Parameters of the run 767 !!$ READ ( numnam_cfg, namsbc_cice, IOSTAT = ios, ERR = 902 ) 768 !!$902 IF( ios /= 0 ) CALL ctl_nam ( ios , 'namsbc_cice in configuration namelist', lwp ) 769 !!$ WRITE ( numond, namsbc_cice ) 763 770 764 771 ! store namelist information in an array -
branches/2013/dev_r3853_CNRS9_ConfSetting/NEMOGCM/NEMO/OPA_SRC/SBC/sbcice_if.F90
r3625 r3875 59 59 INTEGER :: ji, jj ! dummy loop indices 60 60 INTEGER :: ierror ! return error code 61 INTEGER :: ios ! Local integer output status for namelist read 61 62 REAL(wp) :: ztrp, zsice, zt_fzp, zfr_obs 62 63 REAL(wp) :: zqri, zqrj, zqrp, zqi … … 76 77 sn_ice = FLD_N('ice_cover', -1 , 'ice_cov' , .true. , .true. , 'yearly' , '' , '' ) 77 78 78 REWIND ( numnam ) ! ... read in namlist namiif 79 READ ( numnam, namsbc_iif ) 79 REWIND( numnam_ref ) ! Namelist namsbc_iif in reference namelist : Ice if file 80 READ ( numnam_ref, namsbc_iif, IOSTAT = ios, ERR = 901) 81 901 IF( ios /= 0 ) CALL ctl_nam ( ios , 'namsbc_iif in reference namelist', lwp ) 82 83 REWIND( numnam_cfg ) ! Namelist Namelist namsbc_iif in configuration namelist : Ice if file 84 READ ( numnam_cfg, namsbc_iif, IOSTAT = ios, ERR = 902 ) 85 902 IF( ios /= 0 ) CALL ctl_nam ( ios , 'namsbc_iif in configuration namelist', lwp ) 86 WRITE ( numond, namsbc_iif ) 80 87 81 88 ALLOCATE( sf_ice(1), STAT=ierror ) -
branches/2013/dev_r3853_CNRS9_ConfSetting/NEMOGCM/NEMO/OPA_SRC/SBC/sbcmod.F90
r3764 r3875 87 87 & ln_blk_mfs, ln_apr_dyn, nn_ice, nn_ice_embd, ln_dm2dc , ln_rnf, & 88 88 & ln_ssr , nn_fwb , ln_cdgw , ln_wave , ln_sdw 89 INTEGER :: ios 89 90 !!---------------------------------------------------------------------- 90 91 … … 95 96 ENDIF 96 97 97 REWIND( numnam ) ! Read Namelist namsbc 98 READ ( numnam, namsbc ) 98 REWIND( numnam_ref ) ! Namelist namsbc in reference namelist : Surface boundary 99 READ ( numnam_ref, namsbc, IOSTAT = ios, ERR = 901) 100 901 IF( ios /= 0 ) CALL ctl_nam ( ios , 'namsbc in reference namelist', lwp ) 101 102 REWIND( numnam_cfg ) ! Namelist namsbc in configuration namelist : Parameters of the run 103 READ ( numnam_cfg, namsbc, IOSTAT = ios, ERR = 902 ) 104 902 IF( ios /= 0 ) CALL ctl_nam ( ios , 'namsbc in configuration namelist', lwp ) 105 WRITE ( numond, namsbc ) 99 106 100 107 ! ! overwrite namelist parameter using CPP key information -
branches/2013/dev_r3853_CNRS9_ConfSetting/NEMOGCM/NEMO/OPA_SRC/SBC/sbcrnf.F90
r3832 r3875 245 245 INTEGER :: ji, jj, jk ! dummy loop indices 246 246 INTEGER :: ierror, inum ! temporary integer 247 INTEGER :: ios ! Local integer output status for namelist read 247 248 ! 248 249 NAMELIST/namsbc_rnf/ cn_dir, ln_rnf_emp, ln_rnf_depth, ln_rnf_tem, ln_rnf_sal, & … … 264 265 sn_dep_rnf = FLD_N( 'runoffs', 0. , 'rodepth' , .FALSE. , .true. , 'yearly' , '' , '' ) 265 266 ! 266 REWIND ( numnam ) ! Read Namelist namsbc_rnf 267 READ ( numnam, namsbc_rnf ) 267 REWIND( numnam_ref ) ! Namelist namsbc_rnf in reference namelist : Runoffs 268 READ ( numnam_ref, namsbc_rnf, IOSTAT = ios, ERR = 901) 269 901 IF( ios /= 0 ) CALL ctl_nam ( ios , 'namsbc_rnf in reference namelist', lwp ) 270 271 REWIND( numnam_cfg ) ! Namelist namsbc_rnf in configuration namelist : Runoffs 272 READ ( numnam_cfg, namsbc_rnf, IOSTAT = ios, ERR = 902 ) 273 902 IF( ios /= 0 ) CALL ctl_nam ( ios , 'namsbc_rnf in configuration namelist', lwp ) 274 WRITE ( numond, namsbc_rnf ) 268 275 ! 269 276 ! ! Control print -
branches/2013/dev_r3853_CNRS9_ConfSetting/NEMOGCM/NEMO/OPA_SRC/SBC/sbcssr.F90
r3764 r3875 79 79 CHARACTER(len=100) :: cn_dir ! Root directory for location of ssr files 80 80 TYPE(FLD_N) :: sn_sst, sn_sss ! informations about the fields to be read 81 NAMELIST/namsbc_ssr/ cn_dir, nn_sstr, nn_sssr, rn_dqdt, rn_deds, sn_sst, sn_sss, ln_sssr_bnd, rn_sssr_bnd82 81 !!---------------------------------------------------------------------- 83 82 ! … … 164 163 TYPE(FLD_N) :: sn_sst, sn_sss ! informations about the fields to be read 165 164 NAMELIST/namsbc_ssr/ cn_dir, nn_sstr, nn_sssr, rn_dqdt, rn_deds, sn_sst, sn_sss, ln_sssr_bnd, rn_sssr_bnd 165 INTEGER :: ios 166 166 !!---------------------------------------------------------------------- 167 167 ! … … 173 173 sn_sst = FLD_N( 'sst' , 24 , 'sst' , .false. , .false. , 'yearly' , '' , '' ) 174 174 sn_sss = FLD_N( 'sss' , -1 , 'sss' , .true. , .false. , 'yearly' , '' , '' ) 175 176 REWIND( numnam ) !* read in namlist namflx 177 READ ( numnam, namsbc_ssr ) 175 176 REWIND( numnam_ref ) ! Namelist namsbc_ssr in reference namelist : 177 READ ( numnam_ref, namsbc_ssr, IOSTAT = ios, ERR = 901) 178 901 IF( ios /= 0 ) CALL ctl_nam ( ios , 'namsbc_ssr in reference namelist', lwp ) 179 180 REWIND( numnam_cfg ) ! Namelist namsbc_ssr in configuration namelist : 181 READ ( numnam_cfg, namsbc_ssr, IOSTAT = ios, ERR = 902 ) 182 902 IF( ios /= 0 ) CALL ctl_nam ( ios , 'namsbc_ssr in configuration namelist', lwp ) 183 WRITE ( numond, namsbc_ssr ) 178 184 179 185 IF(lwp) THEN !* control print -
branches/2013/dev_r3853_CNRS9_ConfSetting/NEMOGCM/NEMO/OPA_SRC/SBC/sbcwave.F90
r3680 r3875 67 67 INTEGER :: ierror ! return error code 68 68 INTEGER :: ifpr, jj,ji,jk 69 INTEGER :: ios ! Local integer output status for namelist read 69 70 REAL(wp),DIMENSION(:,:,:),POINTER :: udummy,vdummy,hdivdummy,rotdummy 70 71 REAL :: z2dt,z1_2dt … … 92 93 cn_dir = './' ! directory in which the wave data are 93 94 94 95 REWIND( numnam ) !* read in namlist namsbc_wave 96 READ ( numnam, namsbc_wave ) 95 REWIND( numnam_ref ) ! Namelist namsbc_wave in reference namelist : File for drag coeff. from wave model 96 READ ( numnam_ref, namsbc_wave, IOSTAT = ios, ERR = 901) 97 901 IF( ios /= 0 ) CALL ctl_nam ( ios , 'namsbc_wave in reference namelist', lwp ) 98 99 REWIND( numnam_cfg ) ! Namelist namsbc_wave in configuration namelist : File for drag coeff. from wave model 100 READ ( numnam_cfg, namsbc_wave, IOSTAT = ios, ERR = 902 ) 101 902 IF( ios /= 0 ) CALL ctl_nam ( ios , 'namsbc_wave in configuration namelist', lwp ) 102 WRITE ( numond, namsbc_wave ) 97 103 ! 98 104 -
branches/2013/dev_r3853_CNRS9_ConfSetting/NEMOGCM/NEMO/OPA_SRC/SBC/tideini.F90
r3651 r3875 46 46 INTEGER, INTENT( in ) :: kt ! ocean time-step 47 47 CHARACTER(LEN=4), DIMENSION(jpmax_harmo) :: clname 48 INTEGER :: ios ! Local integer output status for namelist read 48 49 ! 49 50 NAMELIST/nam_tide/ln_tide_pot, ln_tide_ramp, rdttideramp, clname … … 63 64 ! 64 65 ! Read Namelist nam_tide 65 REWIND ( numnam ) 66 READ ( numnam, nam_tide ) 66 REWIND( numnam_ref ) ! Namelist nam_tide in reference namelist : Tides 67 READ ( numnam_ref, nam_tide, IOSTAT = ios, ERR = 901) 68 901 IF( ios /= 0 ) CALL ctl_nam ( ios , 'nam_tide in reference namelist', lwp ) 69 70 REWIND( numnam_cfg ) ! Namelist nam_tide in configuration namelist : Tides 71 READ ( numnam_cfg, nam_tide, IOSTAT = ios, ERR = 902 ) 72 902 IF( ios /= 0 ) CALL ctl_nam ( ios , 'nam_tide in configuration namelist', lwp ) 73 WRITE ( numond, nam_tide ) 67 74 ! 68 75 nb_harmo=0 -
branches/2013/dev_r3853_CNRS9_ConfSetting/NEMOGCM/NEMO/OPA_SRC/SOL/solver.F90
r3764 r3875 51 51 !!---------------------------------------------------------------------- 52 52 INTEGER, INTENT(in) :: kt 53 INTEGER :: ios ! Local integer output status for namelist read 53 54 !! 54 55 NAMELIST/namsol/ nn_solv, nn_sol_arp, nn_nmin, nn_nmax, nn_nmod, rn_eps, rn_resmax, rn_sor … … 62 63 ENDIF 63 64 64 REWIND( numnam ) !* Namelist namsol : elliptic solver / free surface 65 READ ( numnam, namsol ) 65 REWIND( numnam_ref ) ! Namelist namsol in reference namelist : Elliptic solver / free surface 66 READ ( numnam_ref, namsol, IOSTAT = ios, ERR = 901) 67 901 IF( ios /= 0 ) CALL ctl_nam ( ios , 'namsol in reference namelist', lwp ) 68 69 REWIND( numnam_cfg ) ! Namelist namsol in configuration namelist : Elliptic solver / free surface 70 READ ( numnam_cfg, namsol, IOSTAT = ios, ERR = 902 ) 71 902 IF( ios /= 0 ) CALL ctl_nam ( ios , 'namsol in configuration namelist', lwp ) 72 WRITE ( numond, namsol ) 66 73 67 74 IF(lwp) THEN !* Control print -
branches/2013/dev_r3853_CNRS9_ConfSetting/NEMOGCM/NEMO/OPA_SRC/TRA/eosbn2.F90
r3625 r3875 708 708 NAMELIST/nameos/ nn_eos, rn_alpha, rn_beta 709 709 !!---------------------------------------------------------------------- 710 ! 711 REWIND( numnam ) ! Read Namelist nameos : equation of state 712 READ ( numnam, nameos ) 710 INTEGER :: ios 711 ! 712 REWIND( numnam_ref ) ! Namelist nameos in reference namelist : equation of state 713 READ ( numnam_ref, nameos, IOSTAT = ios, ERR = 901 ) 714 901 IF( ios /= 0 ) CALL ctl_nam ( ios , 'nameos in reference namelist', lwp ) 715 716 REWIND( numnam_cfg ) ! Namelist nameos in configuration namelist : equation of state 717 READ ( numnam_cfg, nameos, IOSTAT = ios, ERR = 902 ) 718 902 IF( ios /= 0 ) CALL ctl_nam ( ios , 'nameos in configuration namelist', lwp ) 719 WRITE( numond, nameos ) 713 720 ! 714 721 IF(lwp) THEN ! Control print -
branches/2013/dev_r3853_CNRS9_ConfSetting/NEMOGCM/NEMO/OPA_SRC/TRA/traadv.F90
r3718 r3875 151 151 !!---------------------------------------------------------------------- 152 152 INTEGER :: ioptio 153 INTEGER :: ios ! Local integer output status for namelist read 153 154 !! 154 155 NAMELIST/namtra_adv/ ln_traadv_cen2 , ln_traadv_tvd, & … … 158 159 !!---------------------------------------------------------------------- 159 160 160 REWIND( numnam ) ! Read Namelist namtra_adv : tracer advection scheme 161 READ ( numnam, namtra_adv ) 161 REWIND( numnam_ref ) ! Namelist namtra_adv in reference namelist : Tracer advection scheme 162 READ ( numnam_ref, namtra_adv, IOSTAT = ios, ERR = 901) 163 901 IF( ios /= 0 ) CALL ctl_nam ( ios , 'namtra_adv in reference namelist', lwp ) 164 165 REWIND( numnam_cfg ) ! Namelist namtra_adv in configuration namelist : Tracer advection scheme 166 READ ( numnam_cfg, namtra_adv, IOSTAT = ios, ERR = 902 ) 167 902 IF( ios /= 0 ) CALL ctl_nam ( ios , 'namtra_adv in configuration namelist', lwp ) 168 WRITE ( numond, namtra_adv ) 162 169 163 170 IF(lwp) THEN ! Namelist print -
branches/2013/dev_r3853_CNRS9_ConfSetting/NEMOGCM/NEMO/OPA_SRC/TRA/trabbc.F90
r3625 r3875 129 129 INTEGER :: ji, jj ! dummy loop indices 130 130 INTEGER :: inum ! temporary logical unit 131 INTEGER :: ios ! Local integer output status for namelist read 131 132 !! 132 133 NAMELIST/nambbc/ln_trabbc, nn_geoflx, rn_geoflx_cst 133 134 !!---------------------------------------------------------------------- 134 135 135 REWIND( numnam ) ! Read Namelist nambbc : bottom momentum boundary condition 136 READ ( numnam, nambbc ) 136 REWIND( numnam_ref ) ! Namelist nambbc in reference namelist : Bottom momentum boundary condition 137 READ ( numnam_ref, nambbc, IOSTAT = ios, ERR = 901) 138 901 IF( ios /= 0 ) CALL ctl_nam ( ios , 'nambbc in reference namelist', lwp ) 139 140 REWIND( numnam_cfg ) ! Namelist nambbc in configuration namelist : Bottom momentum boundary condition 141 READ ( numnam_cfg, nambbc, IOSTAT = ios, ERR = 902 ) 142 902 IF( ios /= 0 ) CALL ctl_nam ( ios , 'nambbc in configuration namelist', lwp ) 143 WRITE ( numond, nambbc ) 137 144 138 145 IF(lwp) THEN ! Control print -
branches/2013/dev_r3853_CNRS9_ConfSetting/NEMOGCM/NEMO/OPA_SRC/TRA/trabbl.F90
r3764 r3875 560 560 INTEGER :: ji, jj ! dummy loop indices 561 561 INTEGER :: ii0, ii1, ij0, ij1 ! temporary integer 562 INTEGER :: ios ! Local integer output status for namelist read 562 563 REAL(wp), POINTER, DIMENSION(:,:) :: zmbk 563 564 !! … … 570 571 ! 571 572 572 REWIND ( numnam ) !* Read Namelist nambbl : bottom boundary layer scheme 573 READ ( numnam, nambbl ) 573 REWIND( numnam_ref ) ! Namelist nambbl in reference namelist : Bottom boundary layer scheme 574 READ ( numnam_ref, nambbl, IOSTAT = ios, ERR = 901) 575 901 IF( ios /= 0 ) CALL ctl_nam ( ios , 'nambbl in reference namelist', lwp ) 576 577 REWIND( numnam_cfg ) ! Namelist nambbl in configuration namelist : Bottom boundary layer scheme 578 READ ( numnam_cfg, nambbl, IOSTAT = ios, ERR = 902 ) 579 902 IF( ios /= 0 ) CALL ctl_nam ( ios , 'nambbl in configuration namelist', lwp ) 580 WRITE ( numond, nambbl ) 574 581 ! 575 582 l_bbl = .TRUE. !* flag to compute bbl coef and transport -
branches/2013/dev_r3853_CNRS9_ConfSetting/NEMOGCM/NEMO/OPA_SRC/TRA/tradmp.F90
r3294 r3875 194 194 !!---------------------------------------------------------------------- 195 195 NAMELIST/namtra_dmp/ ln_tradmp, nn_hdmp, nn_zdmp, rn_surf, rn_bot, rn_dep, nn_file 196 !!---------------------------------------------------------------------- 197 198 REWIND ( numnam ) ! Read Namelist namtra_dmp : temperature and salinity damping term 199 READ ( numnam, namtra_dmp ) 196 INTEGER :: ios ! Local integer output status for namelist read 197 !!---------------------------------------------------------------------- 198 199 REWIND( numnam_ref ) ! Namelist namtra_dmp in reference namelist : Temperature and salinity damping term 200 READ ( numnam_ref, namtra_dmp, IOSTAT = ios, ERR = 901) 201 901 IF( ios /= 0 ) CALL ctl_nam ( ios , 'namtra_dmp in reference namelist', lwp ) 202 203 REWIND( numnam_cfg ) ! Namelist namtra_dmp in configuration namelist : Temperature and salinity damping term 204 READ ( numnam_cfg, namtra_dmp, IOSTAT = ios, ERR = 902 ) 205 902 IF( ios /= 0 ) CALL ctl_nam ( ios , 'namtra_dmp in configuration namelist', lwp ) 206 WRITE ( numond, namtra_dmp ) 200 207 201 208 IF( lzoom ) nn_zdmp = 0 ! restoring to climatology at closed north or south boundaries -
branches/2013/dev_r3853_CNRS9_ConfSetting/NEMOGCM/NEMO/OPA_SRC/TRA/traqsr.F90
r3680 r3875 315 315 !!---------------------------------------------------------------------- 316 316 ! 317 INTEGER :: ji, jj, jk ! dummy loop indices317 INTEGER :: ji, jj, jk ! dummy loop indices 318 318 INTEGER :: irgb, ierror, ioptio, nqsr ! local integer 319 INTEGER :: ios ! Local integer output status for namelist read 319 320 REAL(wp) :: zz0, zc0 , zc1, zcoef ! local scalars 320 321 REAL(wp) :: zz1, zc2 , zc3, zchl ! - - … … 342 343 sn_chl = FLD_N( 'chlorophyll' , -1 , 'CHLA' , .true. , .true. , 'yearly' , '' , '' ) 343 344 ! 344 REWIND( numnam ) ! Read Namelist namtra_qsr : ratio and length of penetration 345 READ ( numnam, namtra_qsr ) 345 346 REWIND( numnam_ref ) ! Namelist namtra_qsr in reference namelist : Ratio and length of penetration 347 READ ( numnam_ref, namtra_qsr, IOSTAT = ios, ERR = 901) 348 901 IF( ios /= 0 ) CALL ctl_nam ( ios , 'namtra_qsr in reference namelist', lwp ) 349 350 REWIND( numnam_cfg ) ! Namelist namtra_qsr in configuration namelist : Ratio and length of penetration 351 READ ( numnam_cfg, namtra_qsr, IOSTAT = ios, ERR = 902 ) 352 902 IF( ios /= 0 ) CALL ctl_nam ( ios , 'namtra_qsr in configuration namelist', lwp ) 353 WRITE ( numond, namtra_qsr ) 346 354 ! 347 355 IF(lwp) THEN ! control print -
branches/2013/dev_r3853_CNRS9_ConfSetting/NEMOGCM/NEMO/OPA_SRC/TRD/trdmod.F90
r3294 r3875 251 251 !!---------------------------------------------------------------------- 252 252 USE in_out_manager ! I/O manager 253 USE lib_mpp ! MPP library 253 254 !! 254 255 NAMELIST/namtrd/ nn_trd, nn_ctls, cn_trdrst_in, cn_trdrst_out, ln_trdmld_restart, rn_ucf, ln_trdmld_instant 256 INTEGER :: ios ! Local integer output status for namelist read 255 257 !!---------------------------------------------------------------------- 256 258 257 259 IF( l_trdtra .OR. l_trddyn ) THEN 258 REWIND( numnam ) 259 READ ( numnam, namtrd ) ! namelist namtrd : trends diagnostic 260 261 REWIND( numnam_ref ) ! Namelist namtrd in reference namelist : Diagnostics: trends 262 READ ( numnam_ref, namtrd, IOSTAT = ios, ERR = 901) 263 901 IF( ios /= 0 ) CALL ctl_nam ( ios , 'namtrd in reference namelist', lwp ) 264 265 REWIND( numnam_cfg ) ! Namelist namtrd in configuration namelist : Diagnostics: trends 266 READ ( numnam_cfg, namtrd, IOSTAT = ios, ERR = 902 ) 267 902 IF( ios /= 0 ) CALL ctl_nam ( ios , 'namtrd in configuration namelist', lwp ) 268 WRITE ( numond, namtrd ) 260 269 261 270 IF(lwp) THEN -
branches/2013/dev_r3853_CNRS9_ConfSetting/NEMOGCM/NEMO/OPA_SRC/ZDF/zdfbfr.F90
r3820 r3875 179 179 INTEGER :: ikbu, ikbv ! temporary integers 180 180 INTEGER :: ictu, ictv ! - - 181 INTEGER :: ios 181 182 REAL(wp) :: zminbfr, zmaxbfr ! temporary scalars 182 183 REAL(wp) :: zfru, zfrv ! - - … … 188 189 IF( nn_timing == 1 ) CALL timing_start('zdf_bfr_init') 189 190 ! 190 REWIND ( numnam ) !* Read Namelist nam_bfr : bottom momentum boundary condition 191 READ ( numnam, nambfr ) 191 REWIND( numnam_ref ) ! Namelist nambfr in reference namelist : Bottom momentum boundary condition 192 READ ( numnam_ref, nambfr, IOSTAT = ios, ERR = 901) 193 901 IF( ios /= 0 ) CALL ctl_nam ( ios , 'nambfr in reference namelist', lwp ) 194 195 REWIND( numnam_cfg ) ! Namelist nambfr in configuration namelist : Bottom momentum boundary condition 196 READ ( numnam_cfg, nambfr, IOSTAT = ios, ERR = 902 ) 197 902 IF( ios /= 0 ) CALL ctl_nam ( ios , 'nambfr in configuration namelist', lwp ) 198 WRITE ( numond, nambfr ) 192 199 193 200 ! !* Parameter control and print -
branches/2013/dev_r3853_CNRS9_ConfSetting/NEMOGCM/NEMO/OPA_SRC/ZDF/zdfddm.F90
r3610 r3875 213 213 !!---------------------------------------------------------------------- 214 214 NAMELIST/namzdf_ddm/ rn_avts, rn_hsbfr 215 !!---------------------------------------------------------------------- 216 ! 217 REWIND( numnam ) ! Read Namelist namzdf_ddm : double diffusion mixing scheme 218 READ ( numnam, namzdf_ddm ) 215 INTEGER :: ios ! Local integer output status for namelist read 216 !!---------------------------------------------------------------------- 217 ! 218 REWIND( numnam_ref ) ! Namelist namzdf_ddm in reference namelist : Double diffusion mixing scheme 219 READ ( numnam_ref, namzdf_ddm, IOSTAT = ios, ERR = 901) 220 901 IF( ios /= 0 ) CALL ctl_nam ( ios , 'namzdf_ddm in reference namelist', lwp ) 221 222 REWIND( numnam_cfg ) ! Namelist namzdf_ddm in configuration namelist : Double diffusion mixing scheme 223 READ ( numnam_cfg, namzdf_ddm, IOSTAT = ios, ERR = 902 ) 224 902 IF( ios /= 0 ) CALL ctl_nam ( ios , 'namzdf_ddm in configuration namelist', lwp ) 225 WRITE ( numond, namzdf_ddm ) 219 226 ! 220 227 IF(lwp) THEN ! Parameter print -
branches/2013/dev_r3853_CNRS9_ConfSetting/NEMOGCM/NEMO/OPA_SRC/ZDF/zdfgls.F90
r3798 r3875 928 928 ! 929 929 INTEGER :: jk ! dummy loop indices 930 INTEGER :: ios ! Local integer output status for namelist read 930 931 REAL(wp):: zcr ! local scalar 931 932 !! … … 940 941 IF( nn_timing == 1 ) CALL timing_start('zdf_gls_init') 941 942 ! 942 REWIND( numnam ) !* Read Namelist namzdf_gls 943 READ ( numnam, namzdf_gls ) 943 REWIND( numnam_ref ) ! Namelist namzdf_gls in reference namelist : Vertical eddy diffivity and viscosity using gls turbulent closure scheme 944 READ ( numnam_ref, namzdf_gls, IOSTAT = ios, ERR = 901) 945 901 IF( ios /= 0 ) CALL ctl_nam ( ios , 'namzdf_gls in reference namelist', lwp ) 946 947 REWIND( numnam_cfg ) ! Namelist namzdf_gls in configuration namelist : Vertical eddy diffivity and viscosity using gls turbulent closure scheme 948 READ ( numnam_cfg, namzdf_gls, IOSTAT = ios, ERR = 902 ) 949 902 IF( ios /= 0 ) CALL ctl_nam ( ios , 'namzdf_gls in configuration namelist', lwp ) 950 WRITE ( numond, namzdf_gls ) 944 951 945 952 IF(lwp) THEN !* Control print -
branches/2013/dev_r3853_CNRS9_ConfSetting/NEMOGCM/NEMO/OPA_SRC/ZDF/zdfini.F90
r3680 r3875 51 51 !!---------------------------------------------------------------------- 52 52 INTEGER :: ioptio ! temporary scalar 53 INTEGER :: ios 53 54 !! 54 55 NAMELIST/namzdf/ rn_avm0, rn_avt0, nn_avb, nn_havtb, ln_zdfexp, nn_zdfexp, & … … 56 57 !!---------------------------------------------------------------------- 57 58 58 REWIND( numnam ) !* Read namzdf namelist : vertical mixing parameters 59 READ ( numnam, namzdf ) 59 REWIND( numnam_ref ) ! Namelist namzdf in reference namelist : Vertical mixing parameters 60 READ ( numnam_ref, namzdf, IOSTAT = ios, ERR = 901) 61 901 IF( ios /= 0 ) CALL ctl_nam ( ios , 'namzdf in reference namelist', lwp ) 62 63 REWIND( numnam_cfg ) ! Namelist namzdf in reference namelist : Vertical mixing parameters 64 READ ( numnam_cfg, namzdf, IOSTAT = ios, ERR = 902 ) 65 902 IF( ios /= 0 ) CALL ctl_nam ( ios , 'namzdf in configuration namelist', lwp ) 66 WRITE ( numond, namzdf ) 60 67 61 68 IF(lwp) THEN !* Parameter print -
branches/2013/dev_r3853_CNRS9_ConfSetting/NEMOGCM/NEMO/OPA_SRC/ZDF/zdfkpp.F90
r3792 r3875 1382 1382 REAL(wp) :: zustar, zucube, zustvk, zeta, zehat ! tempory scalars 1383 1383 #endif 1384 INTEGER :: ios ! Local integer output status for namelist read 1384 1385 REAL(wp) :: zhbf ! tempory scalars 1385 1386 LOGICAL :: ll_kppcustom ! 1st ocean level taken as surface layer … … 1391 1392 IF( nn_timing == 1 ) CALL timing_start('zdf_kpp_init') 1392 1393 ! 1393 REWIND ( numnam ) ! Read Namelist namkpp : K-Profile Parameterisation 1394 READ ( numnam, namzdf_kpp ) 1394 REWIND( numnam_ref ) ! Namelist namzdf_kpp in reference namelist : Vertical eddy diffivity and viscosity using kpp turbulent closure scheme 1395 READ ( numnam_ref, namzdf_kpp, IOSTAT = ios, ERR = 901) 1396 901 IF( ios /= 0 ) CALL ctl_nam ( ios , 'namzdf_kpp in reference namelist', lwp ) 1397 1398 REWIND( numnam_cfg ) ! Namelist namzdf_kpp in configuration namelist : Vertical eddy diffivity and viscosity using kpp turbulent closure scheme 1399 READ ( numnam_cfg, namzdf_kpp, IOSTAT = ios, ERR = 902 ) 1400 902 IF( ios /= 0 ) CALL ctl_nam ( ios , 'namzdf_kpp in configuration namelist', lwp ) 1401 WRITE ( numond, namzdf_kpp ) 1395 1402 1396 1403 IF(lwp) THEN ! Control print -
branches/2013/dev_r3853_CNRS9_ConfSetting/NEMOGCM/NEMO/OPA_SRC/ZDF/zdfric.F90
r3625 r3875 247 247 !!---------------------------------------------------------------------- 248 248 INTEGER :: ji, jj, jk ! dummy loop indices 249 INTEGER :: ios ! Local integer output status for namelist read 249 250 !! 250 251 NAMELIST/namzdf_ric/ rn_avmri, rn_alp , nn_ric , rn_ekmfc, & … … 252 253 !!---------------------------------------------------------------------- 253 254 ! 254 REWIND( numnam ) ! Read Namelist namzdf_ric : richardson number dependent Kz 255 READ ( numnam, namzdf_ric ) 255 REWIND( numnam_ref ) ! Namelist namzdf_ric in reference namelist : Vertical diffusion Kz depends on Richardson number 256 READ ( numnam_ref, namzdf_ric, IOSTAT = ios, ERR = 901) 257 901 IF( ios /= 0 ) CALL ctl_nam ( ios , 'namzdf_ric in reference namelist', lwp ) 258 259 REWIND( numnam_cfg ) ! Namelist namzdf_ric in configuration namelist : Vertical diffusion Kz depends on Richardson number 260 READ ( numnam_cfg, namzdf_ric, IOSTAT = ios, ERR = 902 ) 261 902 IF( ios /= 0 ) CALL ctl_nam ( ios , 'namzdf_ric in configuration namelist', lwp ) 262 WRITE ( numond, namzdf_ric ) 256 263 ! 257 264 IF(lwp) THEN ! Control print -
branches/2013/dev_r3853_CNRS9_ConfSetting/NEMOGCM/NEMO/OPA_SRC/ZDF/zdftke.F90
r3680 r3875 692 692 !!---------------------------------------------------------------------- 693 693 INTEGER :: ji, jj, jk ! dummy loop indices 694 INTEGER :: ios 694 695 !! 695 696 NAMELIST/namzdf_tke/ rn_ediff, rn_ediss , rn_ebb , rn_emin , & … … 699 700 !!---------------------------------------------------------------------- 700 701 ! 701 REWIND ( numnam ) !* Read Namelist namzdf_tke : Turbulente Kinetic Energy 702 READ ( numnam, namzdf_tke ) 702 REWIND( numnam_ref ) ! Namelist namzdf_tke in reference namelist : Turbulent Kinetic Energy 703 READ ( numnam_ref, namzdf_tke, IOSTAT = ios, ERR = 901) 704 901 IF( ios /= 0 ) CALL ctl_nam ( ios , 'namzdf_tke in reference namelist', lwp ) 705 706 REWIND( numnam_cfg ) ! Namelist namzdf_tke in configuration namelist : Turbulent Kinetic Energy 707 READ ( numnam_cfg, namzdf_tke, IOSTAT = ios, ERR = 902 ) 708 902 IF( ios /= 0 ) CALL ctl_nam ( ios , 'namzdf_tke in configuration namelist', lwp ) 709 WRITE ( numond, namzdf_tke ) 703 710 ! 704 711 ri_cri = 2._wp / ( 2._wp + rn_ediss / rn_ediff ) ! resulting critical Richardson number -
branches/2013/dev_r3853_CNRS9_ConfSetting/NEMOGCM/NEMO/OPA_SRC/ZDF/zdftmx.F90
r3625 r3875 354 354 INTEGER :: ji, jj, jk ! dummy loop indices 355 355 INTEGER :: inum ! local integer 356 INTEGER :: ios 356 357 REAL(wp) :: ztpc, ze_z ! local scalars 357 358 REAL(wp), DIMENSION(:,:) , POINTER :: zem2, zek1 ! read M2 and K1 tidal energy … … 369 370 CALL wrk_alloc( jpi,jpj,jpk, zpc ) 370 371 371 REWIND( numnam ) ! Read Namelist namtmx : Tidal Mixing 372 READ ( numnam, namzdf_tmx ) 372 REWIND( numnam_ref ) ! Namelist namzdf_tmx in reference namelist : Tidal Mixing 373 READ ( numnam_ref, namzdf_tmx, IOSTAT = ios, ERR = 901) 374 901 IF( ios /= 0 ) CALL ctl_nam ( ios , 'namzdf_tmx in reference namelist', lwp ) 375 376 REWIND( numnam_cfg ) ! Namelist namzdf_tmx in configuration namelist : Tidal Mixing 377 READ ( numnam_cfg, namzdf_tmx, IOSTAT = ios, ERR = 902 ) 378 902 IF( ios /= 0 ) CALL ctl_nam ( ios , 'namzdf_tmx in configuration namelist', lwp ) 379 WRITE ( numond, namzdf_tmx ) 373 380 374 381 IF(lwp) THEN ! Control print -
branches/2013/dev_r3853_CNRS9_ConfSetting/NEMOGCM/NEMO/OPA_SRC/module_example
r2737 r3875 157 157 !!---------------------------------------------------------------------- 158 158 INTEGER :: ji, jj, jk, jit ! dummy loop indices 159 INTEGER :: ios ! Local integer output status for namelist read 159 160 !! 160 161 NAMELIST/namexa/ exa_v1, exa_v2, nexa_0, sn_ex … … 164 165 sn_ex%nfreqh = 2 165 166 ! 166 REWIND( numnam ) ! Read Namelist namexa : example parameters 167 READ ( numnam, namexa ) 167 REWIND( numnam_ref ) ! Namelist namexa in reference namelist : Example 168 READ ( numnam_ref, namexa, IOSTAT = ios, ERR = 901) 169 901 IF( ios /= 0 ) CALL ctl_nam ( ios , 'namexa in reference namelist', lwp ) 170 171 REWIND( numnam_cfg ) ! Namelist namexa in configuration namelist : Example 172 READ ( numnam_cfg, namexa, IOSTAT = ios, ERR = 902 ) 173 902 IF( ios /= 0 ) CALL ctl_nam ( ios , 'namexa in configuration namelist', lwp ) 174 ! Output namelist for control 175 WRITE ( numond, namexa ) 168 176 ! 169 177 IF(lwp) THEN ! Control print -
branches/2013/dev_r3853_CNRS9_ConfSetting/NEMOGCM/NEMO/OPA_SRC/nemogcm.F90
r3769 r3875 218 218 INTEGER :: ji ! dummy loop indices 219 219 INTEGER :: ilocal_comm ! local integer 220 INTEGER :: ios 220 221 CHARACTER(len=80), DIMENSION(16) :: cltxt 221 222 !! … … 227 228 cltxt = '' 228 229 ! 229 ! ! open Namelist file 230 CALL ctl_opn( numnam, 'namelist', 'OLD', 'FORMATTED', 'SEQUENTIAL', -1, 6, .FALSE. ) 231 ! 232 READ( numnam, namctl ) ! Namelist namctl : Control prints & Benchmark 230 ! ! Open reference namelist and configuration namelist files 231 CALL ctl_opn( numnam_ref, 'namelist_ref', 'OLD', 'FORMATTED', 'SEQUENTIAL', -1, 6, .FALSE. ) 232 CALL ctl_opn( numnam_cfg, 'namelist_cfg', 'OLD', 'FORMATTED', 'SEQUENTIAL', -1, 6, .FALSE. ) 233 CALL ctl_opn( numond, 'output.namelist.dyn', 'REPLACE', 'FORMATTED', 'SEQUENTIAL', -1, 6, .FALSE., narea ) 234 ! 235 REWIND( numnam_ref ) ! Namelist namctl in reference namelist : Control prints & Benchmark 236 READ ( numnam_ref, namctl, IOSTAT = ios, ERR = 901 ) 237 901 IF( ios /= 0 ) CALL ctl_nam ( ios , 'namctl in reference namelist', lwp ) 238 239 REWIND( numnam_cfg ) ! Namelist namctl in confguration namelist : Control prints & Benchmark 240 READ ( numnam_cfg, namctl, IOSTAT = ios, ERR = 902 ) 241 902 IF( ios /= 0 ) CALL ctl_nam ( ios , 'namctl in configuration namelist', lwp ) 242 WRITE( numond, namctl ) 233 243 ! 234 244 ! !--------------------------------------------! … … 244 254 # endif 245 255 ENDIF 246 narea = mynode( cltxt, numnam , nstop, ilocal_comm ) ! Nodes selection256 narea = mynode( cltxt, numnam_ref, numnam_cfg, numond , nstop, ilocal_comm ) ! Nodes selection 247 257 #else 248 258 # if defined key_oasis3 || defined key_oasis4 … … 250 260 CALL cpl_prism_init( ilocal_comm ) ! nemo local communicator given by oasis 251 261 ENDIF 252 narea = mynode( cltxt, numnam , nstop, ilocal_comm ) ! Nodes selection (control print return in cltxt)262 narea = mynode( cltxt, numnam_ref, numnam_cfg, numond , nstop, ilocal_comm ) ! Nodes selection (control print return in cltxt) 253 263 # else 254 264 ilocal_comm = 0 255 narea = mynode( cltxt, numnam , nstop ) ! Nodes selection (control print return in cltxt)265 narea = mynode( cltxt, numnam_ref, numnam_cfg, numond , nstop ) ! Nodes selection (control print return in cltxt) 256 266 # endif 257 267 #endif … … 510 520 CALL iom_close ! close all input/output files managed by iom_* 511 521 ! 512 IF( numstp /= -1 ) CLOSE( numstp ) ! time-step file 513 IF( numsol /= -1 ) CLOSE( numsol ) ! solver file 514 IF( numnam /= -1 ) CLOSE( numnam ) ! oce namelist 515 IF( numnam_ice /= -1 ) CLOSE( numnam_ice ) ! ice namelist 516 IF( numevo_ice /= -1 ) CLOSE( numevo_ice ) ! ice variables (temp. evolution) 517 IF( numout /= 6 ) CLOSE( numout ) ! standard model output file 518 IF( numdct_vol /= -1 ) CLOSE( numdct_vol ) ! volume transports 519 IF( numdct_heat /= -1 ) CLOSE( numdct_heat ) ! heat transports 520 IF( numdct_salt /= -1 ) CLOSE( numdct_salt ) ! salt transports 522 IF( numstp /= -1 ) CLOSE( numstp ) ! time-step file 523 IF( numsol /= -1 ) CLOSE( numsol ) ! solver file 524 IF( numnam_ref /= -1 ) CLOSE( numnam_ref ) ! oce reference namelist 525 IF( numnam_cfg /= -1 ) CLOSE( numnam_cfg ) ! oce configuration namelist 526 IF( numnam_ice_ref /= -1 ) CLOSE( numnam_ice_ref ) ! ice reference namelist 527 IF( numnam_ice_cfg /= -1 ) CLOSE( numnam_ice_cfg ) ! ice configuration namelist 528 IF( numevo_ice /= -1 ) CLOSE( numevo_ice ) ! ice variables (temp. evolution) 529 IF( numout /= 6 ) CLOSE( numout ) ! standard model output file 530 IF( numdct_vol /= -1 ) CLOSE( numdct_vol ) ! volume transports 531 IF( numdct_heat /= -1 ) CLOSE( numdct_heat ) ! heat transports 532 IF( numdct_salt /= -1 ) CLOSE( numdct_salt ) ! salt transports 521 533 522 534 !
Note: See TracChangeset
for help on using the changeset viewer.