Changeset 11960 for NEMO/branches/2019/dev_r11943_MERGE_2019/src/OCE
- Timestamp:
- 2019-11-25T18:19:39+01:00 (4 years ago)
- Location:
- NEMO/branches/2019/dev_r11943_MERGE_2019
- Files:
-
- 65 edited
Legend:
- Unmodified
- Added
- Removed
-
NEMO/branches/2019/dev_r11943_MERGE_2019
- Property svn:externals
-
old new 3 3 ^/utils/build/mk@HEAD mk 4 4 ^/utils/tools@HEAD tools 5 ^/vendors/AGRIF/dev @HEAD ext/AGRIF5 ^/vendors/AGRIF/dev_r11615_ENHANCE-04_namelists_as_internalfiles_agrif@HEAD ext/AGRIF 6 6 ^/vendors/FCM@HEAD ext/FCM 7 7 ^/vendors/IOIPSL@HEAD ext/IOIPSL
-
- Property svn:externals
-
NEMO/branches/2019/dev_r11943_MERGE_2019/src/OCE/ASM/asminc.F90
r11949 r11960 147 147 ln_temnofreeze = .FALSE. 148 148 149 REWIND( numnam_ref ) ! Namelist nam_asminc in reference namelist : Assimilation increment150 149 READ ( numnam_ref, nam_asminc, IOSTAT = ios, ERR = 901) 151 150 901 IF( ios /= 0 ) CALL ctl_nam ( ios , 'nam_asminc in reference namelist' ) 152 REWIND( numnam_cfg ) ! Namelist nam_asminc in configuration namelist : Assimilation increment153 151 READ ( numnam_cfg, nam_asminc, IOSTAT = ios, ERR = 902 ) 154 152 902 IF( ios > 0 ) CALL ctl_nam ( ios , 'nam_asminc in configuration namelist' ) -
NEMO/branches/2019/dev_r11943_MERGE_2019/src/OCE/BDY/bdydta.F90
r11949 r11960 373 373 INTEGER :: ierror, ios ! 374 374 ! 375 INTEGER :: nbdy_rdstart, nbdy_loc 376 CHARACTER(LEN=50) :: cerrmsg ! error string 375 377 CHARACTER(len=3) :: cl3 ! 376 378 CHARACTER(len=100) :: cn_dir ! Root directory for location of data files … … 415 417 ! Read namelists 416 418 ! -------------- 417 REWIND(numnam_cfg)419 nbdy_rdstart = 1 418 420 DO jbdy = 1, nb_bdy 419 421 … … 421 423 WRITE(ctmp2, '(a,i2)') 'block nambdy_dta number ', jbdy 422 424 423 ! There is only one nambdy_dta block in namelist_ref -> use it for each bdy so we do a rewind 424 REWIND(numnam_ref) 425 ! There is only one nambdy_dta block in namelist_ref -> use it for each bdy so we read from the beginning 425 426 READ ( numnam_ref, nambdy_dta, IOSTAT = ios, ERR = 901) 426 427 901 IF( ios /= 0 ) CALL ctl_nam ( ios , 'nambdy_dta in reference namelist' ) … … 431 432 & .OR. ( dta_bdy(jbdy)%lneed_tra .AND. nn_tra_dta(jbdy) == 1 ) & 432 433 & .OR. ( dta_bdy(jbdy)%lneed_ice .AND. nn_ice_dta(jbdy) == 1 ) ) THEN 433 ! WARNING: we don't do a rewind here, each bdy reads its own nambdy_dta block one after another 434 READ ( numnam_cfg, nambdy_dta, IOSTAT = ios, ERR = 902 ) 434 ! 435 ! Need to support possibility of reading more than one 436 ! nambdy_dta from the namelist_cfg internal file. 437 ! Do this by finding the jbdy'th occurence of nambdy_dta in the 438 ! character buffer as the starting point. 439 ! 440 nbdy_loc = INDEX( numnam_cfg( nbdy_rdstart: ), 'nambdy_dta' ) 441 IF( nbdy_loc .GT. 0 ) THEN 442 nbdy_rdstart = nbdy_rdstart + nbdy_loc 443 ELSE 444 WRITE(cerrmsg,'(A,I4,A)') 'Error: entry number ',jbdy,' of nambdy_dta not found' 445 ios = -1 446 CALL ctl_nam ( ios , cerrmsg ) 447 ENDIF 448 READ ( numnam_cfg( MAX( 1, nbdy_rdstart - 2 ): ), nambdy_dta, IOSTAT = ios, ERR = 902) 435 449 902 IF( ios > 0 ) CALL ctl_nam ( ios , 'nambdy_dta in configuration namelist' ) 436 450 IF(lwm) WRITE( numond, nambdy_dta ) -
NEMO/branches/2019/dev_r11943_MERGE_2019/src/OCE/BDY/bdyini.F90
r11536 r11960 75 75 ! Read namelist parameters 76 76 ! ------------------------ 77 REWIND( numnam_ref ) ! Namelist nambdy in reference namelist :Unstructured open boundaries78 77 READ ( numnam_ref, nambdy, IOSTAT = ios, ERR = 901) 79 78 901 IF( ios /= 0 ) CALL ctl_nam ( ios , 'nambdy in reference namelist' ) … … 93 92 cn_ice (2:jp_bdy) = cn_ice (1) 94 93 nn_ice_dta (2:jp_bdy) = nn_ice_dta (1) 95 REWIND( numnam_cfg ) ! Namelist nambdy in configuration namelist :Unstructured open boundaries96 94 READ ( numnam_cfg, nambdy, IOSTAT = ios, ERR = 902 ) 97 95 902 IF( ios > 0 ) CALL ctl_nam ( ios , 'nambdy in configuration namelist' ) … … 364 362 ! ------------------------------------------------- 365 363 366 REWIND( numnam_cfg )367 364 nblendta(:,:) = 0 368 365 nbdysege = 0 … … 1079 1076 INTEGER :: ios ! Local integer output status for namelist read 1080 1077 INTEGER :: nbdyind, nbdybeg, nbdyend 1078 INTEGER :: nbdy_count, nbdy_rdstart, nbdy_loc 1081 1079 CHARACTER(LEN=1) :: ctypebdy ! - - 1080 CHARACTER(LEN=50):: cerrmsg ! - - 1082 1081 NAMELIST/nambdy_index/ ctypebdy, nbdyind, nbdybeg, nbdyend 1083 1082 !!---------------------------------------------------------------------- 1084 1085 ! No REWIND here because may need to read more than one nambdy_index namelist. 1086 ! Read only namelist_cfg to avoid unseccessfull overwrite 1087 ! keep full control of the configuration namelist 1088 READ ( numnam_cfg, nambdy_index, IOSTAT = ios, ERR = 904 ) 1083 ! Need to support possibility of reading more than one nambdy_index from 1084 ! the namelist_cfg internal file. 1085 ! Do this by finding the kb_bdy'th occurence of nambdy_index in the 1086 ! character buffer as the starting point. 1087 nbdy_rdstart = 1 1088 DO nbdy_count = 1, kb_bdy 1089 nbdy_loc = INDEX( numnam_cfg( nbdy_rdstart: ), 'nambdy_index' ) 1090 IF( nbdy_loc .GT. 0 ) THEN 1091 nbdy_rdstart = nbdy_rdstart + nbdy_loc 1092 ELSE 1093 WRITE(cerrmsg,'(A,I4,A)') 'Error: entry number ',kb_bdy,' of nambdy_index not found' 1094 ios = -1 1095 CALL ctl_nam ( ios , cerrmsg ) 1096 ENDIF 1097 END DO 1098 nbdy_rdstart = MAX( 1, nbdy_rdstart - 2 ) 1099 READ ( numnam_cfg( nbdy_rdstart: ), nambdy_index, IOSTAT = ios, ERR = 904) 1089 1100 904 IF( ios /= 0 ) CALL ctl_nam ( ios , 'nambdy_index in configuration namelist' ) 1090 1101 IF(lwm) WRITE ( numond, nambdy_index ) -
NEMO/branches/2019/dev_r11943_MERGE_2019/src/OCE/BDY/bdytides.F90
r11536 r11960 71 71 INTEGER, DIMENSION(3) :: ilen0 !: length of boundary data (from OBC arrays) 72 72 INTEGER :: ios ! Local integer output status for namelist read 73 INTEGER :: nbdy_rdstart, nbdy_loc 74 CHARACTER(LEN=50) :: cerrmsg !: error string 73 75 CHARACTER(len=80) :: clfile !: full file name for tidal input file 74 76 REAL(wp),ALLOCATABLE, DIMENSION(:,:,:) :: dta_read !: work space to read in tidal harmonics data … … 84 86 IF(lwp) WRITE(numout,*) '~~~~~~~~~~~~' 85 87 86 REWIND(numnam_cfg) 87 88 89 nbdy_rdstart = 1 88 90 DO ib_bdy = 1, nb_bdy 89 91 IF( nn_dyn2d_dta(ib_bdy) >= 2 ) THEN … … 94 96 filtide(:) = '' 95 97 96 REWIND( numnam_ref )97 98 READ ( numnam_ref, nambdy_tide, IOSTAT = ios, ERR = 901) 98 99 901 IF( ios /= 0 ) CALL ctl_nam ( ios , 'nambdy_tide in reference namelist' ) 99 ! Don't REWIND here - may need to read more than one of these namelists. 100 READ ( numnam_cfg, nambdy_tide, IOSTAT = ios, ERR = 902 ) 100 ! 101 ! Need to support possibility of reading more than one 102 ! nambdy_tide from the namelist_cfg internal file. 103 ! Do this by finding the ib_bdy'th occurence of nambdy_tide in the 104 ! character buffer as the starting point. 105 ! 106 nbdy_loc = INDEX( numnam_cfg( nbdy_rdstart: ), 'nambdy_tide' ) 107 IF( nbdy_loc .GT. 0 ) THEN 108 nbdy_rdstart = nbdy_rdstart + nbdy_loc 109 ELSE 110 WRITE(cerrmsg,'(A,I4,A)') 'Error: entry number ',ib_bdy,' of nambdy_tide not found' 111 ios = -1 112 CALL ctl_nam ( ios , cerrmsg ) 113 ENDIF 114 READ ( numnam_cfg( MAX( 1, nbdy_rdstart - 2 ): ), nambdy_tide, IOSTAT = ios, ERR = 902) 101 115 902 IF( ios > 0 ) CALL ctl_nam ( ios , 'nambdy_tide in configuration namelist' ) 102 116 IF(lwm) WRITE ( numond, nambdy_tide ) -
NEMO/branches/2019/dev_r11943_MERGE_2019/src/OCE/C1D/c1d.F90
r11536 r11960 50 50 !!---------------------------------------------------------------------- 51 51 ! 52 REWIND( numnam_ref ) ! Namelist namc1d in reference namelist : Tracer advection scheme53 52 READ ( numnam_ref, namc1d, IOSTAT = ios, ERR = 901) 54 53 901 IF( ios /= 0 ) CALL ctl_nam ( ios , 'namc1d in reference namelist' ) 55 54 ! 56 REWIND( numnam_cfg ) ! Namelist namtra_adv in configuration namelist : Tracer advection scheme57 55 READ ( numnam_cfg, namc1d, IOSTAT = ios, ERR = 902 ) 58 56 902 IF( ios > 0 ) CALL ctl_nam ( ios , 'namc1d in configuration namelist' ) -
NEMO/branches/2019/dev_r11943_MERGE_2019/src/OCE/C1D/dtauvd.F90
r11949 r11960 60 60 ierr0 = 0 ; ierr1 = 0 ; ierr2 = 0 ; ierr3 = 0 61 61 62 REWIND( numnam_ref ) ! Namelist namc1d_uvd in reference namelist :63 62 READ ( numnam_ref, namc1d_uvd, IOSTAT = ios, ERR = 901) 64 63 901 IF( ios /= 0 ) CALL ctl_nam ( ios , 'namc1d_uvd in reference namelist' ) 65 64 ! 66 REWIND( numnam_cfg ) ! Namelist namc1d_uvd in configuration namelist : Parameters of the run67 65 READ ( numnam_cfg, namc1d_uvd, IOSTAT = ios, ERR = 902 ) 68 66 902 IF( ios > 0 ) CALL ctl_nam ( ios , 'namc1d_uvd in configuration namelist' ) -
NEMO/branches/2019/dev_r11943_MERGE_2019/src/OCE/C1D/dyndmp.F90
r11949 r11960 79 79 !!---------------------------------------------------------------------- 80 80 ! 81 REWIND( numnam_ref ) ! Namelist namc1d_dyndmp in reference namelist :82 81 READ ( numnam_ref, namc1d_dyndmp, IOSTAT = ios, ERR = 901) 83 82 901 IF( ios /= 0 ) CALL ctl_nam ( ios , 'namc1d_dyndmp in reference namelist' ) 84 REWIND( numnam_cfg ) ! Namelist namc1d_dyndmp in configuration namelist : Parameters of the run85 83 READ ( numnam_cfg, namc1d_dyndmp, IOSTAT = ios, ERR = 902 ) 86 84 902 IF( ios > 0 ) CALL ctl_nam ( ios , 'namc1d_dyndmp in configuration namelist' ) -
NEMO/branches/2019/dev_r11943_MERGE_2019/src/OCE/CRS/crsini.F90
r11949 r11960 82 82 !--------------------------------------------------------- 83 83 ! 84 REWIND( numnam_ref ) ! Namelist namrun in reference namelist : Parameters of the run85 84 READ ( numnam_ref, namcrs, IOSTAT = ios, ERR = 901) 86 85 901 IF( ios /= 0 ) CALL ctl_nam ( ios , 'namcrs in reference namelist' ) 87 REWIND( numnam_cfg ) ! Namelist namrun in configuration namelist : Parameters of the run88 86 READ ( numnam_cfg, namcrs, IOSTAT = ios, ERR = 902 ) 89 87 902 IF( ios > 0 ) CALL ctl_nam ( ios , 'namcrs in configuration namelist' ) -
NEMO/branches/2019/dev_r11943_MERGE_2019/src/OCE/DIA/dia25h.F90
r11949 r11960 55 55 !!---------------------------------------------------------------------- 56 56 ! 57 REWIND ( numnam_ref ) ! Read Namelist nam_dia25h in reference namelist : 25hour mean diagnostics58 57 READ ( numnam_ref, nam_dia25h, IOSTAT=ios, ERR= 901 ) 59 58 901 IF( ios /= 0 ) CALL ctl_nam ( ios , 'nam_dia25h in reference namelist' ) 60 REWIND( numnam_cfg ) ! Namelist nam_dia25h in configuration namelist 25hour diagnostics61 59 READ ( numnam_cfg, nam_dia25h, IOSTAT = ios, ERR = 902 ) 62 60 902 IF( ios > 0 ) CALL ctl_nam ( ios , 'nam_dia25h in configuration namelist' ) -
NEMO/branches/2019/dev_r11943_MERGE_2019/src/OCE/DIA/diadct.F90
r11949 r11960 123 123 !!--------------------------------------------------------------------- 124 124 125 REWIND( numnam_ref ) ! Namelist nam_diadct in reference namelist : Diagnostic: transport through sections126 125 READ ( numnam_ref, nam_diadct, IOSTAT = ios, ERR = 901) 127 126 901 IF( ios /= 0 ) CALL ctl_nam ( ios , 'nam_diadct in reference namelist' ) 128 127 129 REWIND( numnam_cfg ) ! Namelist nam_diadct in configuration namelist : Diagnostic: transport through sections130 128 READ ( numnam_cfg, nam_diadct, IOSTAT = ios, ERR = 902 ) 131 129 902 IF( ios > 0 ) CALL ctl_nam ( ios , 'nam_diadct in configuration namelist' ) -
NEMO/branches/2019/dev_r11943_MERGE_2019/src/OCE/DIA/diaharm.F90
r11949 r11960 79 79 ENDIF 80 80 ! 81 REWIND( numnam_ref ) ! Namelist nam_diaharm in reference namelist : Tidal harmonic analysis82 81 READ ( numnam_ref, nam_diaharm, IOSTAT = ios, ERR = 901) 83 82 901 IF( ios /= 0 ) CALL ctl_nam ( ios , 'nam_diaharm in reference namelist' ) 84 REWIND( numnam_cfg ) ! Namelist nam_diaharm in configuration namelist : Tidal harmonic analysis85 83 READ ( numnam_cfg, nam_diaharm, IOSTAT = ios, ERR = 902 ) 86 84 902 IF( ios > 0 ) CALL ctl_nam ( ios , 'nam_diaharm in configuration namelist' ) -
NEMO/branches/2019/dev_r11943_MERGE_2019/src/OCE/DIA/diahsb.F90
r11949 r11960 364 364 WRITE(numout,*) '~~~~~~~~~~~~ ' 365 365 ENDIF 366 REWIND( numnam_ref ) ! Namelist namhsb in reference namelist367 366 READ ( numnam_ref, namhsb, IOSTAT = ios, ERR = 901) 368 367 901 IF( ios /= 0 ) CALL ctl_nam ( ios , 'namhsb in reference namelist' ) 369 REWIND( numnam_cfg ) ! Namelist namhsb in configuration namelist370 368 READ ( numnam_cfg, namhsb, IOSTAT = ios, ERR = 902 ) 371 369 902 IF( ios > 0 ) CALL ctl_nam ( ios , 'namhsb in configuration namelist' ) -
NEMO/branches/2019/dev_r11943_MERGE_2019/src/OCE/DIA/diaptr.F90
r11949 r11960 392 392 !!---------------------------------------------------------------------- 393 393 394 REWIND( numnam_ref ) ! Namelist namptr in reference namelist : Poleward transport395 394 READ ( numnam_ref, namptr, IOSTAT = ios, ERR = 901) 396 395 901 IF( ios /= 0 ) CALL ctl_nam ( ios , 'namptr in reference namelist' ) 397 396 398 REWIND( numnam_cfg ) ! Namelist namptr in configuration namelist : Poleward transport399 397 READ ( numnam_cfg, namptr, IOSTAT = ios, ERR = 902 ) 400 398 902 IF( ios > 0 ) CALL ctl_nam ( ios , 'namptr in configuration namelist' ) -
NEMO/branches/2019/dev_r11943_MERGE_2019/src/OCE/DIA/diatmb.F90
r11949 r11960 41 41 !!---------------------------------------------------------------------- 42 42 ! 43 REWIND( numnam_ref ) ! Read Namelist nam_diatmb in reference namelist : TMB diagnostics44 43 READ ( numnam_ref, nam_diatmb, IOSTAT=ios, ERR= 901 ) 45 44 901 IF( ios /= 0 ) CALL ctl_nam ( ios , 'nam_diatmb in reference namelist' ) 46 45 47 REWIND( numnam_cfg ) ! Namelist nam_diatmb in configuration namelist TMB diagnostics48 46 READ ( numnam_cfg, nam_diatmb, IOSTAT = ios, ERR = 902 ) 49 47 902 IF( ios > 0 ) CALL ctl_nam ( ios , 'nam_diatmb in configuration namelist' ) -
NEMO/branches/2019/dev_r11943_MERGE_2019/src/OCE/DIU/diu_bulk.F90
r11949 r11960 52 52 53 53 ! Read the namelist 54 REWIND( numnam_ref )55 54 READ ( numnam_ref, namdiu, IOSTAT = ios, ERR = 901 ) 56 55 901 IF( ios /= 0 ) CALL ctl_nam ( ios , 'namdiu in reference namelist' ) 57 REWIND( numnam_cfg )58 56 READ ( numnam_cfg, namdiu, IOSTAT = ios, ERR = 902 ) 59 57 902 IF( ios > 0 ) CALL ctl_nam ( ios , 'namdiu in configuration namelist' ) -
NEMO/branches/2019/dev_r11943_MERGE_2019/src/OCE/DOM/domain.F90
r11949 r11960 308 308 ! 309 309 ! 310 REWIND( numnam_ref ) ! Namelist namrun in reference namelist : Parameters of the run311 310 READ ( numnam_ref, namrun, IOSTAT = ios, ERR = 901) 312 311 901 IF( ios /= 0 ) CALL ctl_nam ( ios , 'namrun in reference namelist' ) 313 REWIND( numnam_cfg ) ! Namelist namrun in configuration namelist : Parameters of the run314 312 READ ( numnam_cfg, namrun, IOSTAT = ios, ERR = 902 ) 315 313 902 IF( ios > 0 ) CALL ctl_nam ( ios , 'namrun in configuration namelist' ) … … 406 404 #endif 407 405 408 REWIND( numnam_ref ) ! Namelist namdom in reference namelist : space & time domain (bathymetry, mesh, timestep)409 406 READ ( numnam_ref, namdom, IOSTAT = ios, ERR = 903) 410 407 903 IF( ios /= 0 ) CALL ctl_nam ( ios , 'namdom in reference namelist' ) 411 REWIND( numnam_cfg ) ! Namelist namdom in configuration namelist : space & time domain (bathymetry, mesh, timestep)412 408 READ ( numnam_cfg, namdom, IOSTAT = ios, ERR = 904 ) 413 409 904 IF( ios > 0 ) CALL ctl_nam ( ios , 'namdom in configuration namelist' ) … … 438 434 #if defined key_netcdf4 439 435 ! ! NetCDF 4 case ("key_netcdf4" defined) 440 REWIND( numnam_ref ) ! Namelist namnc4 in reference namelist : NETCDF441 436 READ ( numnam_ref, namnc4, IOSTAT = ios, ERR = 907) 442 437 907 IF( ios /= 0 ) CALL ctl_nam ( ios , 'namnc4 in reference namelist' ) 443 REWIND( numnam_cfg ) ! Namelist namnc4 in configuration namelist : NETCDF444 438 READ ( numnam_cfg, namnc4, IOSTAT = ios, ERR = 908 ) 445 439 908 IF( ios > 0 ) CALL ctl_nam ( ios , 'namnc4 in configuration namelist' ) -
NEMO/branches/2019/dev_r11943_MERGE_2019/src/OCE/DOM/dommsk.F90
r11536 r11960 103 103 !!--------------------------------------------------------------------- 104 104 ! 105 REWIND( numnam_ref ) ! Namelist namlbc in reference namelist : Lateral momentum boundary condition106 105 READ ( numnam_ref, namlbc, IOSTAT = ios, ERR = 901 ) 107 106 901 IF( ios /= 0 ) CALL ctl_nam ( ios , 'namlbc in reference namelist' ) 108 REWIND( numnam_cfg ) ! Namelist namlbc in configuration namelist : Lateral momentum boundary condition109 107 READ ( numnam_cfg, namlbc, IOSTAT = ios, ERR = 902 ) 110 108 902 IF( ios > 0 ) CALL ctl_nam ( ios , 'namlbc in configuration namelist' ) … … 148 146 149 147 ! Mask corrections for bdy (read in mppini2) 150 REWIND( numnam_ref ) ! Namelist nambdy in reference namelist :Unstructured open boundaries151 148 READ ( numnam_ref, nambdy, IOSTAT = ios, ERR = 903) 152 149 903 IF( ios /= 0 ) CALL ctl_nam ( ios , 'nambdy in reference namelist' ) 153 REWIND( numnam_cfg ) ! Namelist nambdy in configuration namelist :Unstructured open boundaries154 150 READ ( numnam_cfg, nambdy, IOSTAT = ios, ERR = 904 ) 155 151 904 IF( ios > 0 ) CALL ctl_nam ( ios , 'nambdy in configuration namelist' ) -
NEMO/branches/2019/dev_r11943_MERGE_2019/src/OCE/DOM/domvvl.F90
r11949 r11960 987 987 !!---------------------------------------------------------------------- 988 988 ! 989 REWIND( numnam_ref ) ! Namelist nam_vvl in reference namelist :990 989 READ ( numnam_ref, nam_vvl, IOSTAT = ios, ERR = 901) 991 990 901 IF( ios /= 0 ) CALL ctl_nam ( ios , 'nam_vvl in reference namelist' ) 992 REWIND( numnam_cfg ) ! Namelist nam_vvl in configuration namelist : Parameters of the run993 991 READ ( numnam_cfg, nam_vvl, IOSTAT = ios, ERR = 902 ) 994 992 902 IF( ios > 0 ) CALL ctl_nam ( ios , 'nam_vvl in configuration namelist' ) -
NEMO/branches/2019/dev_r11943_MERGE_2019/src/OCE/DOM/dtatsd.F90
r11536 r11960 65 65 ierr0 = 0 ; ierr1 = 0 ; ierr2 = 0 ; ierr3 = 0 66 66 ! 67 REWIND( numnam_ref ) ! Namelist namtsd in reference namelist :68 67 READ ( numnam_ref, namtsd, IOSTAT = ios, ERR = 901) 69 68 901 IF( ios /= 0 ) CALL ctl_nam ( ios , 'namtsd in reference namelist' ) 70 REWIND( numnam_cfg ) ! Namelist namtsd in configuration namelist : Parameters of the run71 69 READ ( numnam_cfg, namtsd, IOSTAT = ios, ERR = 902 ) 72 70 902 IF( ios > 0 ) CALL ctl_nam ( ios , 'namtsd in configuration namelist' ) -
NEMO/branches/2019/dev_r11943_MERGE_2019/src/OCE/DOM/iscplini.F90
r11536 r11960 62 62 nn_fiscpl = 0 63 63 ln_hsb = .FALSE. 64 REWIND( numnam_ref ) ! Namelist namsbc_iscpl in reference namelist : Ice sheet coupling65 64 READ ( numnam_ref, namsbc_iscpl, IOSTAT = ios, ERR = 901) 66 65 901 IF( ios /= 0 ) CALL ctl_nam ( ios , 'namsbc_iscpl in reference namelist' ) 67 REWIND( numnam_cfg ) ! Namelist namsbc_iscpl in configuration namelist : Ice Sheet coupling68 66 READ ( numnam_cfg, namsbc_iscpl, IOSTAT = ios, ERR = 902 ) 69 67 902 IF( ios > 0 ) CALL ctl_nam ( ios , 'namsbc_iscpl in configuration namelist' ) -
NEMO/branches/2019/dev_r11943_MERGE_2019/src/OCE/DYN/dynadv.F90
r11949 r11960 106 106 ENDIF 107 107 ! 108 REWIND( numnam_ref ) ! Namelist namdyn_adv in reference namelist : Momentum advection scheme109 108 READ ( numnam_ref, namdyn_adv, IOSTAT = ios, ERR = 901) 110 109 901 IF( ios /= 0 ) CALL ctl_nam ( ios , 'namdyn_adv in reference namelist' ) 111 REWIND( numnam_cfg ) ! Namelist namdyn_adv in configuration namelist : Momentum advection scheme112 110 READ ( numnam_cfg, namdyn_adv, IOSTAT = ios, ERR = 902 ) 113 111 902 IF( ios > 0 ) CALL ctl_nam ( ios , 'namdyn_adv in configuration namelist' ) -
NEMO/branches/2019/dev_r11943_MERGE_2019/src/OCE/DYN/dynhpg.F90
r11949 r11960 155 155 !!---------------------------------------------------------------------- 156 156 ! 157 REWIND( numnam_ref ) ! Namelist namdyn_hpg in reference namelist : Hydrostatic pressure gradient158 157 READ ( numnam_ref, namdyn_hpg, IOSTAT = ios, ERR = 901) 159 158 901 IF( ios /= 0 ) CALL ctl_nam ( ios , 'namdyn_hpg in reference namelist' ) 160 159 ! 161 REWIND( numnam_cfg ) ! Namelist namdyn_hpg in configuration namelist : Hydrostatic pressure gradient162 160 READ ( numnam_cfg, namdyn_hpg, IOSTAT = ios, ERR = 902 ) 163 161 902 IF( ios > 0 ) CALL ctl_nam ( ios , 'namdyn_hpg in configuration namelist' ) -
NEMO/branches/2019/dev_r11943_MERGE_2019/src/OCE/DYN/dynspg.F90
r11949 r11960 203 203 ENDIF 204 204 ! 205 REWIND( numnam_ref ) ! Namelist namdyn_spg in reference namelist : Free surface206 205 READ ( numnam_ref, namdyn_spg, IOSTAT = ios, ERR = 901) 207 206 901 IF( ios /= 0 ) CALL ctl_nam ( ios , 'namdyn_spg in reference namelist' ) 208 207 ! 209 REWIND( numnam_cfg ) ! Namelist namdyn_spg in configuration namelist : Free surface210 208 READ ( numnam_cfg, namdyn_spg, IOSTAT = ios, ERR = 902 ) 211 209 902 IF( ios > 0 ) CALL ctl_nam ( ios , 'namdyn_spg in configuration namelist' ) -
NEMO/branches/2019/dev_r11943_MERGE_2019/src/OCE/DYN/dynvor.F90
r11949 r11960 856 856 ENDIF 857 857 ! 858 REWIND( numnam_ref ) ! Namelist namdyn_vor in reference namelist : Vorticity scheme options859 858 READ ( numnam_ref, namdyn_vor, IOSTAT = ios, ERR = 901) 860 859 901 IF( ios /= 0 ) CALL ctl_nam ( ios , 'namdyn_vor in reference namelist' ) 861 REWIND( numnam_cfg ) ! Namelist namdyn_vor in configuration namelist : Vorticity scheme options862 860 READ ( numnam_cfg, namdyn_vor, IOSTAT = ios, ERR = 902 ) 863 861 902 IF( ios > 0 ) CALL ctl_nam ( ios , 'namdyn_vor in configuration namelist' ) -
NEMO/branches/2019/dev_r11943_MERGE_2019/src/OCE/DYN/wet_dry.F90
r11949 r11960 79 79 !!---------------------------------------------------------------------- 80 80 ! 81 REWIND( numnam_ref ) ! Namelist namwad in reference namelist : Parameters for Wetting/Drying82 81 READ ( numnam_ref, namwad, IOSTAT = ios, ERR = 905) 83 82 905 IF( ios /= 0 ) CALL ctl_nam ( ios , 'namwad in reference namelist' ) 84 REWIND( numnam_cfg ) ! Namelist namwad in configuration namelist : Parameters for Wetting/Drying85 83 READ ( numnam_cfg, namwad, IOSTAT = ios, ERR = 906) 86 84 906 IF( ios > 0 ) CALL ctl_nam ( ios , 'namwad in configuration namelist' ) -
NEMO/branches/2019/dev_r11943_MERGE_2019/src/OCE/FLO/floats.F90
r11949 r11960 89 89 IF(lwp) WRITE(numout,*) '~~~~~~~' 90 90 91 REWIND( numnam_ref ) ! Namelist namflo in reference namelist : Floats92 91 READ ( numnam_ref, namflo, IOSTAT = ios, ERR = 901) 93 92 901 IF( ios /= 0 ) CALL ctl_nam ( ios , 'namflo in reference namelist' ) 94 93 95 REWIND( numnam_cfg ) ! Namelist namflo in configuration namelist : Floats96 94 READ ( numnam_cfg, namflo, IOSTAT = ios, ERR = 902 ) 97 95 902 IF( ios > 0 ) CALL ctl_nam ( ios , 'namflo in configuration namelist' ) -
NEMO/branches/2019/dev_r11943_MERGE_2019/src/OCE/ICB/icbini.F90
r11536 r11960 404 404 #endif 405 405 ! !== read namelist ==! 406 REWIND( numnam_ref ) ! Namelist namberg in reference namelist : Iceberg parameters407 406 READ ( numnam_ref, namberg, IOSTAT = ios, ERR = 901) 408 407 901 IF( ios /= 0 ) CALL ctl_nam ( ios , 'namberg in reference namelist' ) 409 REWIND( numnam_cfg ) ! Namelist namberg in configuration namelist : Iceberg parameters410 408 READ ( numnam_cfg, namberg, IOSTAT = ios, ERR = 902 ) 411 409 902 IF( ios > 0 ) CALL ctl_nam ( ios , 'namberg in configuration namelist' ) -
NEMO/branches/2019/dev_r11943_MERGE_2019/src/OCE/IOM/in_out_manager.F90
r11536 r11960 139 139 INTEGER :: numnul = -1 !: logical unit for /dev/null 140 140 ! ! early output can be collected; do not change 141 INTEGER :: numnam_ref = -1 !: logical unit for reference namelist142 INTEGER :: numnam_cfg = -1 !: logical unit for configuration specific namelist143 141 INTEGER :: numond = -1 !: logical unit for Output Namelist Dynamics 144 INTEGER :: numnam_ice_ref = -1 !: logical unit for ice reference namelist145 INTEGER :: numnam_ice_cfg = -1 !: logical unit for ice reference namelist146 142 INTEGER :: numoni = -1 !: logical unit for Output Namelist Ice 147 143 INTEGER :: numevo_ice = -1 !: logical unit for ice variables (temp. evolution) 148 144 INTEGER :: numrun = -1 !: logical unit for run statistics 149 145 INTEGER :: numdct_in = -1 !: logical unit for transports computing 150 INTEGER :: numdct_vol = -1 !: logical unit for vo ulume transports output151 INTEGER :: numdct_heat = -1 !: logical unit for heat 152 INTEGER :: numdct_salt = -1 !: logical unit for salt 146 INTEGER :: numdct_vol = -1 !: logical unit for volume transports output 147 INTEGER :: numdct_heat = -1 !: logical unit for heat transports output 148 INTEGER :: numdct_salt = -1 !: logical unit for salt transports output 153 149 INTEGER :: numfl = -1 !: logical unit for floats ascii output 154 150 INTEGER :: numflo = -1 !: logical unit for floats ascii output 151 ! 152 CHARACTER(LEN=:), ALLOCATABLE :: numnam_ref !: character buffer for reference namelist 153 CHARACTER(LEN=:), ALLOCATABLE :: numnam_cfg !: character buffer for configuration specific namelist 154 CHARACTER(LEN=:), ALLOCATABLE :: numnam_ice_ref !: character buffer for ice reference namelist 155 CHARACTER(LEN=:), ALLOCATABLE :: numnam_ice_cfg !: character buffer for ice configuration specific namelist 155 156 156 157 !!---------------------------------------------------------------------- -
NEMO/branches/2019/dev_r11943_MERGE_2019/src/OCE/LBC/lib_mpp.F90
r11949 r11960 32 32 !! ctl_opn : Open file and check if required file is available. 33 33 !! ctl_nam : Prints informations when an error occurs while reading a namelist 34 !! load_nml : Read, condense and buffer namelist file into character array for use as an internal file 34 35 !!---------------------------------------------------------------------- 35 36 !!---------------------------------------------------------------------- … … 50 51 !! mpp_ini_north : initialisation of north fold 51 52 !! mpp_lbc_north_icb : alternative to mpp_nfd for extra outer halo with icebergs 53 !! mpp_bcast_nml : broadcast/receive namelist character buffer from reading process to all others 52 54 !!---------------------------------------------------------------------- 53 55 USE dom_oce ! ocean space and time domain … … 57 59 PRIVATE 58 60 ! 59 PUBLIC ctl_stop, ctl_warn, ctl_opn, ctl_nam 61 PUBLIC ctl_stop, ctl_warn, ctl_opn, ctl_nam, load_nml 60 62 PUBLIC mpp_start, mppstop, mppsync, mpp_comm_free 61 63 PUBLIC mpp_ini_north … … 66 68 PUBLIC mppsend, mpprecv ! needed by TAM and ICB routines 67 69 PUBLIC mpp_report 70 PUBLIC mpp_bcast_nml 68 71 PUBLIC tic_tac 69 72 #if ! defined key_mpp_mpi … … 498 501 #endif 499 502 END SUBROUTINE mpp_delay_rcv 503 504 SUBROUTINE mpp_bcast_nml( cdnambuff , kleng ) 505 CHARACTER(LEN=:) , ALLOCATABLE, INTENT(INOUT) :: cdnambuff 506 INTEGER , INTENT(INOUT) :: kleng 507 !!---------------------------------------------------------------------- 508 !! *** routine mpp_bcast_nml *** 509 !! 510 !! ** Purpose : broadcast namelist character buffer 511 !! 512 !!---------------------------------------------------------------------- 513 !! 514 INTEGER :: iflag 515 !!---------------------------------------------------------------------- 516 ! 517 #if defined key_mpp_mpi 518 call MPI_BCAST(kleng, 1, MPI_INT, 0, mpi_comm_oce, iflag) 519 call MPI_BARRIER(mpi_comm_oce, iflag) 520 !$AGRIF_DO_NOT_TREAT 521 IF ( .NOT. ALLOCATED(cdnambuff) ) ALLOCATE( CHARACTER(LEN=kleng) :: cdnambuff ) 522 !$AGRIF_END_DO_NOT_TREAT 523 call MPI_BCAST(cdnambuff, kleng, MPI_CHARACTER, 0, mpi_comm_oce, iflag) 524 call MPI_BARRIER(mpi_comm_oce, iflag) 525 #endif 526 ! 527 END SUBROUTINE mpp_bcast_nml 500 528 501 529 … … 1066 1094 1067 1095 !!---------------------------------------------------------------------- 1068 !! ctl_stop, ctl_warn, get_unit, ctl_opn, ctl_nam routines1096 !! ctl_stop, ctl_warn, get_unit, ctl_opn, ctl_nam, load_nml routines 1069 1097 !!---------------------------------------------------------------------- 1070 1098 … … 1277 1305 END FUNCTION get_unit 1278 1306 1307 SUBROUTINE load_nml( cdnambuff , cdnamfile, kout, ldwp) 1308 CHARACTER(LEN=:) , ALLOCATABLE, INTENT(INOUT) :: cdnambuff 1309 CHARACTER(LEN=*), INTENT(IN ) :: cdnamfile 1310 CHARACTER(LEN=256) :: chline 1311 INTEGER, INTENT(IN) :: kout 1312 LOGICAL, INTENT(IN) :: ldwp !: .true. only for the root broadcaster 1313 INTEGER :: itot, iun, iltc, inl, ios, itotsav 1314 ! 1315 ! Check if the namelist buffer has already been allocated. Return if it has. 1316 ! 1317 IF ( ALLOCATED( cdnambuff ) ) RETURN 1318 IF( ldwp ) THEN 1319 ! 1320 ! Open namelist file 1321 ! 1322 CALL ctl_opn( iun, cdnamfile, 'OLD', 'FORMATTED', 'SEQUENTIAL', -1, kout, ldwp ) 1323 ! 1324 ! First pass: count characters excluding comments and trimable white space 1325 ! 1326 itot=0 1327 10 READ(iun,'(A256)',END=20,ERR=20) chline 1328 iltc = LEN_TRIM(chline) 1329 IF ( iltc.GT.0 ) THEN 1330 inl = INDEX(chline, '!') 1331 IF( inl.eq.0 ) THEN 1332 itot = itot + iltc + 1 ! +1 for the newline character 1333 ELSEIF( inl.GT.0 .AND. LEN_TRIM( chline(1:inl-1) ).GT.0 ) THEN 1334 itot = itot + inl ! includes +1 for the newline character 1335 ENDIF 1336 ENDIF 1337 GOTO 10 1338 20 CONTINUE 1339 ! 1340 ! Allocate text cdnambuff for condensed namelist 1341 ! 1342 !$AGRIF_DO_NOT_TREAT 1343 ALLOCATE( CHARACTER(LEN=itot) :: cdnambuff ) 1344 !$AGRIF_END_DO_NOT_TREAT 1345 itotsav = itot 1346 ! 1347 ! Second pass: read and transfer pruned characters into cdnambuff 1348 ! 1349 REWIND(iun) 1350 itot=1 1351 30 READ(iun,'(A256)',END=40,ERR=40) chline 1352 iltc = LEN_TRIM(chline) 1353 IF ( iltc.GT.0 ) THEN 1354 inl = INDEX(chline, '!') 1355 IF( inl.eq.0 ) THEN 1356 inl = iltc 1357 ELSE 1358 inl = inl - 1 1359 ENDIF 1360 IF( inl.GT.0 .AND. LEN_TRIM( chline(1:inl) ).GT.0 ) THEN 1361 cdnambuff(itot:itot+inl-1) = chline(1:inl) 1362 WRITE( cdnambuff(itot+inl:itot+inl), '(a)' ) NEW_LINE('A') 1363 itot = itot + inl + 1 1364 ENDIF 1365 ENDIF 1366 GOTO 30 1367 40 CONTINUE 1368 itot = itot - 1 1369 IF( itotsav .NE. itot ) WRITE(*,*) 'WARNING in load_nml. Allocated ',itotsav,' for read buffer; but used ',itot 1370 ! 1371 ! Close namelist file 1372 ! 1373 CLOSE(iun) 1374 !write(*,'(32A)') cdnambuff 1375 ENDIF 1376 #if defined key_mpp_mpi 1377 CALL mpp_bcast_nml( cdnambuff, itot ) 1378 #endif 1379 END SUBROUTINE load_nml 1380 1381 1279 1382 !!---------------------------------------------------------------------- 1280 1383 END MODULE lib_mpp -
NEMO/branches/2019/dev_r11943_MERGE_2019/src/OCE/LBC/mppini.F90
r11640 r11960 176 176 ! ----------------------------------- 177 177 ! 178 REWIND( numnam_ref ) ! Namelist nammpp in reference namelist179 178 READ ( numnam_ref, nammpp, IOSTAT = ios, ERR = 901 ) 180 179 901 IF( ios /= 0 ) CALL ctl_nam ( ios , 'nammpp in reference namelist' ) 181 REWIND( numnam_cfg ) ! Namelist nammpp in confguration namelist182 180 READ ( numnam_cfg, nammpp, IOSTAT = ios, ERR = 902 ) 183 181 902 IF( ios > 0 ) CALL ctl_nam ( ios , 'nammpp in configuration namelist' ) … … 197 195 198 196 ! do we need to take into account bdy_msk? 199 REWIND( numnam_ref ) ! Namelist nambdy in reference namelist : BDY200 197 READ ( numnam_ref, nambdy, IOSTAT = ios, ERR = 903) 201 198 903 IF( ios /= 0 ) CALL ctl_nam ( ios , 'nambdy in reference namelist (mppini)' ) 202 REWIND( numnam_cfg ) ! Namelist nambdy in configuration namelist : BDY203 199 READ ( numnam_cfg, nambdy, IOSTAT = ios, ERR = 904 ) 204 200 904 IF( ios > 0 ) CALL ctl_nam ( ios , 'nambdy in configuration namelist (mppini)' ) -
NEMO/branches/2019/dev_r11943_MERGE_2019/src/OCE/LDF/ldfdyn.F90
r11949 r11960 115 115 !!---------------------------------------------------------------------- 116 116 ! 117 REWIND( numnam_ref ) ! Namelist namdyn_ldf in reference namelist : Lateral physics118 117 READ ( numnam_ref, namdyn_ldf, IOSTAT = ios, ERR = 901) 119 118 901 IF( ios /= 0 ) CALL ctl_nam ( ios , 'namdyn_ldf in reference namelist' ) 120 119 121 REWIND( numnam_cfg ) ! Namelist namdyn_ldf in configuration namelist : Lateral physics122 120 READ ( numnam_cfg, namdyn_ldf, IOSTAT = ios, ERR = 902 ) 123 121 902 IF( ios > 0 ) CALL ctl_nam ( ios , 'namdyn_ldf in configuration namelist' ) -
NEMO/branches/2019/dev_r11943_MERGE_2019/src/OCE/LDF/ldftra.F90
r11949 r11960 152 152 ! ================================= 153 153 ! 154 REWIND( numnam_ref ) ! Namelist namtra_ldf in reference namelist : Lateral physics on tracers155 154 READ ( numnam_ref, namtra_ldf, IOSTAT = ios, ERR = 901) 156 155 901 IF( ios /= 0 ) CALL ctl_nam ( ios , 'namtra_ldf in reference namelist' ) 157 REWIND( numnam_cfg ) ! Namelist namtra_ldf in configuration namelist : Lateral physics on tracers158 156 READ ( numnam_cfg, namtra_ldf, IOSTAT = ios, ERR = 902 ) 159 157 902 IF( ios > 0 ) CALL ctl_nam ( ios , 'namtra_ldf in configuration namelist' ) … … 511 509 ENDIF 512 510 ! 513 REWIND( numnam_ref ) ! Namelist namtra_eiv in reference namelist : eddy induced velocity param.514 511 READ ( numnam_ref, namtra_eiv, IOSTAT = ios, ERR = 901) 515 512 901 IF( ios /= 0 ) CALL ctl_nam ( ios , 'namtra_eiv in reference namelist' ) 516 513 ! 517 REWIND( numnam_cfg ) ! Namelist namtra_eiv in configuration namelist : eddy induced velocity param.518 514 READ ( numnam_cfg, namtra_eiv, IOSTAT = ios, ERR = 902 ) 519 515 902 IF( ios > 0 ) CALL ctl_nam ( ios , 'namtra_eiv in configuration namelist' ) -
NEMO/branches/2019/dev_r11943_MERGE_2019/src/OCE/OBS/diaobs.F90
r11949 r11960 202 202 203 203 ! Read namelist namobs : control observation diagnostics 204 REWIND( numnam_ref ) ! Namelist namobs in reference namelist205 204 READ ( numnam_ref, namobs, IOSTAT = ios, ERR = 901) 206 205 901 IF( ios /= 0 ) CALL ctl_nam ( ios , 'namobs in reference namelist' ) 207 REWIND( numnam_cfg ) ! Namelist namobs in configuration namelist208 206 READ ( numnam_cfg, namobs, IOSTAT = ios, ERR = 902 ) 209 207 902 IF( ios > 0 ) CALL ctl_nam ( ios , 'namobs in configuration namelist' ) -
NEMO/branches/2019/dev_r11943_MERGE_2019/src/OCE/SBC/sbcapr.F90
r11536 r11960 69 69 NAMELIST/namsbc_apr/ cn_dir, sn_apr, ln_ref_apr, rn_pref, ln_apr_obc 70 70 !!---------------------------------------------------------------------- 71 REWIND( numnam_ref ) ! Namelist namsbc_apr in reference namelist : File for atmospheric pressure forcing72 71 READ ( numnam_ref, namsbc_apr, IOSTAT = ios, ERR = 901) 73 72 901 IF( ios /= 0 ) CALL ctl_nam ( ios , 'namsbc_apr in reference namelist' ) 74 73 75 REWIND( numnam_cfg ) ! Namelist namsbc_apr in configuration namelist : File for atmospheric pressure forcing76 74 READ ( numnam_cfg, namsbc_apr, IOSTAT = ios, ERR = 902 ) 77 75 902 IF( ios > 0 ) CALL ctl_nam ( ios , 'namsbc_apr in configuration namelist' ) -
NEMO/branches/2019/dev_r11943_MERGE_2019/src/OCE/SBC/sbcblk.F90
r11536 r11960 180 180 ! 181 181 ! !** read bulk namelist 182 REWIND( numnam_ref ) !* Namelist namsbc_blk in reference namelist : bulk parameters183 182 READ ( numnam_ref, namsbc_blk, IOSTAT = ios, ERR = 901) 184 183 901 IF( ios /= 0 ) CALL ctl_nam ( ios , 'namsbc_blk in reference namelist' ) 185 184 ! 186 REWIND( numnam_cfg ) !* Namelist namsbc_blk in configuration namelist : bulk parameters187 185 READ ( numnam_cfg, namsbc_blk, IOSTAT = ios, ERR = 902 ) 188 186 902 IF( ios > 0 ) CALL ctl_nam ( ios , 'namsbc_blk in configuration namelist' ) -
NEMO/branches/2019/dev_r11943_MERGE_2019/src/OCE/SBC/sbccpl.F90
r11949 r11960 264 264 ! ================================ ! 265 265 ! 266 REWIND( numnam_ref ) ! Namelist namsbc_cpl in reference namelist : Variables for OASIS coupling267 266 READ ( numnam_ref, namsbc_cpl, IOSTAT = ios, ERR = 901) 268 267 901 IF( ios /= 0 ) CALL ctl_nam ( ios , 'namsbc_cpl in reference namelist' ) 269 268 ! 270 REWIND( numnam_cfg ) ! Namelist namsbc_cpl in configuration namelist : Variables for OASIS coupling271 269 READ ( numnam_cfg, namsbc_cpl, IOSTAT = ios, ERR = 902 ) 272 270 902 IF( ios > 0 ) CALL ctl_nam ( ios , 'namsbc_cpl in configuration namelist' ) -
NEMO/branches/2019/dev_r11943_MERGE_2019/src/OCE/SBC/sbcflx.F90
r11536 r11960 91 91 IF( kt == nit000 ) THEN ! First call kt=nit000 92 92 ! set file information 93 REWIND( numnam_ref ) ! Namelist namsbc_flx in reference namelist : Files for fluxes94 93 READ ( numnam_ref, namsbc_flx, IOSTAT = ios, ERR = 901) 95 94 901 IF( ios /= 0 ) CALL ctl_nam ( ios , 'namsbc_flx in reference namelist' ) 96 95 97 REWIND( numnam_cfg ) ! Namelist namsbc_flx in configuration namelist : Files for fluxes98 96 READ ( numnam_cfg, namsbc_flx, IOSTAT = ios, ERR = 902 ) 99 97 902 IF( ios > 0 ) CALL ctl_nam ( ios , 'namsbc_flx in configuration namelist' ) -
NEMO/branches/2019/dev_r11943_MERGE_2019/src/OCE/SBC/sbcice_cice.F90
r11949 r11960 763 763 sn_bot5 = FLD_N( 'botmeltn5_1m' , -1. , 'botmeltn5' , .true. , .true. , ' yearly' , '' , '' , '' ) 764 764 765 REWIND( numnam_ref ) ! Namelist namsbc_cice in reference namelist :766 765 READ ( numnam_ref, namsbc_cice, IOSTAT = ios, ERR = 901) 767 766 901 IF( ios /= 0 ) CALL ctl_nam ( ios , 'namsbc_cice in reference namelist' ) 768 767 769 REWIND( numnam_cfg ) ! Namelist namsbc_cice in configuration namelist : Parameters of the run770 768 READ ( numnam_cfg, namsbc_cice, IOSTAT = ios, ERR = 902 ) 771 769 902 IF( ios > 0 ) CALL ctl_nam ( ios , 'namsbc_cice in configuration namelist' ) -
NEMO/branches/2019/dev_r11943_MERGE_2019/src/OCE/SBC/sbcice_if.F90
r11949 r11960 75 75 ! ! ====================== ! 76 76 ! set file information 77 REWIND( numnam_ref ) ! Namelist namsbc_iif in reference namelist : Ice if file78 77 READ ( numnam_ref, namsbc_iif, IOSTAT = ios, ERR = 901) 79 78 901 IF( ios /= 0 ) CALL ctl_nam ( ios , 'namsbc_iif in reference namelist' ) 80 79 81 REWIND( numnam_cfg ) ! Namelist Namelist namsbc_iif in configuration namelist : Ice if file82 80 READ ( numnam_cfg, namsbc_iif, IOSTAT = ios, ERR = 902 ) 83 81 902 IF( ios > 0 ) CALL ctl_nam ( ios , 'namsbc_iif in configuration namelist' ) -
NEMO/branches/2019/dev_r11943_MERGE_2019/src/OCE/SBC/sbcisf.F90
r11949 r11960 278 278 !!---------------------------------------------------------------------- 279 279 280 REWIND( numnam_ref ) ! Namelist namsbc_rnf in reference namelist : Runoffs281 280 READ ( numnam_ref, namsbc_isf, IOSTAT = ios, ERR = 901) 282 281 901 IF( ios /= 0 ) CALL ctl_nam ( ios , 'namsbc_isf in reference namelist' ) 283 282 284 REWIND( numnam_cfg ) ! Namelist namsbc_rnf in configuration namelist : Runoffs285 283 READ ( numnam_cfg, namsbc_isf, IOSTAT = ios, ERR = 902 ) 286 284 902 IF( ios > 0 ) CALL ctl_nam ( ios , 'namsbc_isf in configuration namelist' ) -
NEMO/branches/2019/dev_r11943_MERGE_2019/src/OCE/SBC/sbcmod.F90
r11949 r11960 109 109 ! 110 110 ! !** read Surface Module namelist 111 REWIND( numnam_ref ) !* Namelist namsbc in reference namelist : Surface boundary112 111 READ ( numnam_ref, namsbc, IOSTAT = ios, ERR = 901) 113 112 901 IF( ios /= 0 ) CALL ctl_nam ( ios , 'namsbc in reference namelist' ) 114 REWIND( numnam_cfg ) !* Namelist namsbc in configuration namelist : Parameters of the run115 113 READ ( numnam_cfg, namsbc, IOSTAT = ios, ERR = 902 ) 116 114 902 IF( ios > 0 ) CALL ctl_nam ( ios , 'namsbc in configuration namelist' ) -
NEMO/branches/2019/dev_r11943_MERGE_2019/src/OCE/SBC/sbcrnf.F90
r11949 r11960 267 267 ! ! ============ 268 268 ! 269 REWIND( numnam_ref ) ! Namelist namsbc_rnf in reference namelist : Runoffs270 269 READ ( numnam_ref, namsbc_rnf, IOSTAT = ios, ERR = 901) 271 270 901 IF( ios /= 0 ) CALL ctl_nam ( ios , 'namsbc_rnf in reference namelist' ) 272 271 273 REWIND( numnam_cfg ) ! Namelist namsbc_rnf in configuration namelist : Runoffs274 272 READ ( numnam_cfg, namsbc_rnf, IOSTAT = ios, ERR = 902 ) 275 273 902 IF( ios > 0 ) CALL ctl_nam ( ios , 'namsbc_rnf in configuration namelist' ) -
NEMO/branches/2019/dev_r11943_MERGE_2019/src/OCE/SBC/sbcssr.F90
r11536 r11960 164 164 ENDIF 165 165 ! 166 REWIND( numnam_ref ) ! Namelist namsbc_ssr in reference namelist :167 166 READ ( numnam_ref, namsbc_ssr, IOSTAT = ios, ERR = 901) 168 167 901 IF( ios /= 0 ) CALL ctl_nam ( ios , 'namsbc_ssr in reference namelist' ) 169 168 170 REWIND( numnam_cfg ) ! Namelist namsbc_ssr in configuration namelist :171 169 READ ( numnam_cfg, namsbc_ssr, IOSTAT = ios, ERR = 902 ) 172 170 902 IF( ios > 0 ) CALL ctl_nam ( ios , 'namsbc_ssr in configuration namelist' ) -
NEMO/branches/2019/dev_r11943_MERGE_2019/src/OCE/SBC/sbcwave.F90
r11949 r11960 397 397 !!--------------------------------------------------------------------- 398 398 ! 399 REWIND( numnam_ref ) ! Namelist namsbc_wave in reference namelist : File for drag coeff. from wave model400 399 READ ( numnam_ref, namsbc_wave, IOSTAT = ios, ERR = 901) 401 400 901 IF( ios /= 0 ) CALL ctl_nam ( ios , 'namsbc_wave in reference namelist' ) 402 401 403 REWIND( numnam_cfg ) ! Namelist namsbc_wave in configuration namelist : File for drag coeff. from wave model404 402 READ ( numnam_cfg, namsbc_wave, IOSTAT = ios, ERR = 902 ) 405 403 902 IF( ios > 0 ) CALL ctl_nam ( ios , 'namsbc_wave in configuration namelist' ) -
NEMO/branches/2019/dev_r11943_MERGE_2019/src/OCE/SBC/tideini.F90
r11536 r11960 58 58 ! 59 59 ! Read Namelist nam_tide 60 REWIND( numnam_ref ) ! Namelist nam_tide in reference namelist : Tides61 60 READ ( numnam_ref, nam_tide, IOSTAT = ios, ERR = 901) 62 61 901 IF( ios /= 0 ) CALL ctl_nam ( ios , 'nam_tide in reference namelist' ) 63 62 ! 64 REWIND( numnam_cfg ) ! Namelist nam_tide in configuration namelist : Tides65 63 READ ( numnam_cfg, nam_tide, IOSTAT = ios, ERR = 902 ) 66 64 902 IF( ios > 0 ) CALL ctl_nam ( ios , 'nam_tide in configuration namelist' ) -
NEMO/branches/2019/dev_r11943_MERGE_2019/src/OCE/STO/stopar.F90
r11536 r11960 261 261 262 262 ! Read namsto namelist : stochastic parameterization 263 REWIND( numnam_ref ) ! Namelist namdyn_adv in reference namelist : Momentum advection scheme264 263 READ ( numnam_ref, namsto, IOSTAT = ios, ERR = 901) 265 264 901 IF( ios /= 0 ) CALL ctl_nam ( ios , 'namsto in reference namelist' ) 266 265 267 REWIND( numnam_cfg ) ! Namelist namdyn_adv in configuration namelist : Momentum advection scheme268 266 READ ( numnam_cfg, namsto, IOSTAT = ios, ERR = 902 ) 269 267 902 IF( ios > 0 ) CALL ctl_nam ( ios , 'namsto in configuration namelist' ) -
NEMO/branches/2019/dev_r11943_MERGE_2019/src/OCE/TRA/eosbn2.F90
r11949 r11960 1240 1240 !!---------------------------------------------------------------------- 1241 1241 ! 1242 REWIND( numnam_ref ) ! Namelist nameos in reference namelist : equation of state1243 1242 READ ( numnam_ref, nameos, IOSTAT = ios, ERR = 901 ) 1244 1243 901 IF( ios /= 0 ) CALL ctl_nam ( ios , 'nameos in reference namelist' ) 1245 1244 ! 1246 REWIND( numnam_cfg ) ! Namelist nameos in configuration namelist : equation of state1247 1245 READ ( numnam_cfg, nameos, IOSTAT = ios, ERR = 902 ) 1248 1246 902 IF( ios > 0 ) CALL ctl_nam ( ios , 'nameos in configuration namelist' ) -
NEMO/branches/2019/dev_r11943_MERGE_2019/src/OCE/TRA/traadv.F90
r11949 r11960 196 196 ! 197 197 ! !== Namelist ==! 198 REWIND( numnam_ref ) ! Namelist namtra_adv in reference namelist : Tracer advection scheme199 198 READ ( numnam_ref, namtra_adv, IOSTAT = ios, ERR = 901) 200 199 901 IF( ios /= 0 ) CALL ctl_nam ( ios , 'namtra_adv in reference namelist' ) 201 200 ! 202 REWIND( numnam_cfg ) ! Namelist namtra_adv in configuration namelist : Tracer advection scheme203 201 READ ( numnam_cfg, namtra_adv, IOSTAT = ios, ERR = 902 ) 204 202 902 IF( ios > 0 ) CALL ctl_nam ( ios , 'namtra_adv in configuration namelist' ) -
NEMO/branches/2019/dev_r11943_MERGE_2019/src/OCE/TRA/trabbc.F90
r11949 r11960 135 135 !!---------------------------------------------------------------------- 136 136 ! 137 REWIND( numnam_ref ) ! Namelist nambbc in reference namelist : Bottom momentum boundary condition138 137 READ ( numnam_ref, nambbc, IOSTAT = ios, ERR = 901) 139 138 901 IF( ios /= 0 ) CALL ctl_nam ( ios , 'nambbc in reference namelist' ) 140 139 ! 141 REWIND( numnam_cfg ) ! Namelist nambbc in configuration namelist : Bottom momentum boundary condition142 140 READ ( numnam_cfg, nambbc, IOSTAT = ios, ERR = 902 ) 143 141 902 IF( ios > 0 ) CALL ctl_nam ( ios , 'nambbc in configuration namelist' ) -
NEMO/branches/2019/dev_r11943_MERGE_2019/src/OCE/TRA/trabbl.F90
r11949 r11960 488 488 !!---------------------------------------------------------------------- 489 489 ! 490 REWIND( numnam_ref ) ! Namelist nambbl in reference namelist : Bottom boundary layer scheme491 490 READ ( numnam_ref, nambbl, IOSTAT = ios, ERR = 901) 492 491 901 IF( ios /= 0 ) CALL ctl_nam ( ios , 'nambbl in reference namelist' ) 493 492 ! 494 REWIND( numnam_cfg ) ! Namelist nambbl in configuration namelist : Bottom boundary layer scheme495 493 READ ( numnam_cfg, nambbl, IOSTAT = ios, ERR = 902 ) 496 494 902 IF( ios > 0 ) CALL ctl_nam ( ios , 'nambbl in configuration namelist' ) -
NEMO/branches/2019/dev_r11943_MERGE_2019/src/OCE/TRA/tradmp.F90
r11949 r11960 180 180 !!---------------------------------------------------------------------- 181 181 ! 182 REWIND( numnam_ref ) ! Namelist namtra_dmp in reference namelist : T & S relaxation183 182 READ ( numnam_ref, namtra_dmp, IOSTAT = ios, ERR = 901) 184 183 901 IF( ios /= 0 ) CALL ctl_nam ( ios , 'namtra_dmp in reference namelist' ) 185 184 ! 186 REWIND( numnam_cfg ) ! Namelist namtra_dmp in configuration namelist : T & S relaxation187 185 READ ( numnam_cfg, namtra_dmp, IOSTAT = ios, ERR = 902 ) 188 186 902 IF( ios > 0 ) CALL ctl_nam ( ios , 'namtra_dmp in configuration namelist' ) -
NEMO/branches/2019/dev_r11943_MERGE_2019/src/OCE/TRA/tramle.F90
r11949 r11960 267 267 !!---------------------------------------------------------------------- 268 268 269 REWIND( numnam_ref ) ! Namelist namtra_mle in reference namelist : Tracer advection scheme270 269 READ ( numnam_ref, namtra_mle, IOSTAT = ios, ERR = 901) 271 270 901 IF( ios /= 0 ) CALL ctl_nam ( ios , 'namtra_mle in reference namelist' ) 272 271 273 REWIND( numnam_cfg ) ! Namelist namtra_mle in configuration namelist : Tracer advection scheme274 272 READ ( numnam_cfg, namtra_mle, IOSTAT = ios, ERR = 902 ) 275 273 902 IF( ios > 0 ) CALL ctl_nam ( ios , 'namtra_mle in configuration namelist' ) -
NEMO/branches/2019/dev_r11943_MERGE_2019/src/OCE/TRA/traqsr.F90
r11949 r11960 338 338 !!---------------------------------------------------------------------- 339 339 ! 340 REWIND( numnam_ref ) ! Namelist namtra_qsr in reference namelist341 340 READ ( numnam_ref, namtra_qsr, IOSTAT = ios, ERR = 901) 342 341 901 IF( ios /= 0 ) CALL ctl_nam ( ios , 'namtra_qsr in reference namelist' ) 343 342 ! 344 REWIND( numnam_cfg ) ! Namelist namtra_qsr in configuration namelist345 343 READ ( numnam_cfg, namtra_qsr, IOSTAT = ios, ERR = 902 ) 346 344 902 IF( ios > 0 ) CALL ctl_nam ( ios , 'namtra_qsr in configuration namelist' ) -
NEMO/branches/2019/dev_r11943_MERGE_2019/src/OCE/TRD/trdini.F90
r11949 r11960 47 47 !!---------------------------------------------------------------------- 48 48 ! 49 REWIND( numnam_ref ) ! Namelist namtrd in reference namelist : trends diagnostic50 49 READ ( numnam_ref, namtrd, IOSTAT = ios, ERR = 901 ) 51 50 901 IF( ios /= 0 ) CALL ctl_nam ( ios , 'namtrd in reference namelist' ) 52 51 ! 53 REWIND( numnam_cfg ) ! Namelist namtrd in configuration namelist : trends diagnostic54 52 READ ( numnam_cfg, namtrd, IOSTAT = ios, ERR = 902 ) 55 53 902 IF( ios > 0 ) CALL ctl_nam ( ios , 'namtrd in configuration namelist' ) -
NEMO/branches/2019/dev_r11943_MERGE_2019/src/OCE/TRD/trdmxl.F90
r11949 r11960 733 733 !!---------------------------------------------------------------------- 734 734 ! 735 REWIND( numnam_ref ) ! Namelist namtrd_mxl in reference namelist : mixed layer trends diagnostic736 735 READ ( numnam_ref, namtrd_mxl, IOSTAT = ios, ERR = 901 ) 737 736 901 IF( ios /= 0 ) CALL ctl_nam ( ios , 'namtrd_mxl in reference namelist' ) 738 737 739 REWIND( numnam_cfg ) ! Namelist namtrd_mxl in configuration namelist : mixed layer trends diagnostic740 738 READ ( numnam_cfg, namtrd_mxl, IOSTAT = ios, ERR = 902 ) 741 739 902 IF( ios > 0 ) CALL ctl_nam ( ios , 'namtrd_mxl in configuration namelist' ) -
NEMO/branches/2019/dev_r11943_MERGE_2019/src/OCE/USR/usrdef_nam.F90
r11536 r11960 59 59 !!---------------------------------------------------------------------- 60 60 ! 61 REWIND( numnam_cfg ) ! Namelist namusr_def (exist in namelist_cfg only)62 61 READ ( numnam_cfg, namusr_def, IOSTAT = ios, ERR = 902 ) 63 62 902 IF( ios /= 0 ) CALL ctl_nam ( ios , 'namusr_def in configuration namelist' ) -
NEMO/branches/2019/dev_r11943_MERGE_2019/src/OCE/ZDF/zdfdrg.F90
r11949 r11960 238 238 ! !== drag nature ==! 239 239 ! 240 REWIND( numnam_ref ) ! Namelist namdrg in reference namelist241 240 READ ( numnam_ref, namdrg, IOSTAT = ios, ERR = 901) 242 241 901 IF( ios /= 0 ) CALL ctl_nam( ios , 'namdrg in reference namelist' ) 243 REWIND( numnam_cfg ) ! Namelist namdrg in configuration namelist244 242 READ ( numnam_cfg, namdrg, IOSTAT = ios, ERR = 902 ) 245 243 902 IF( ios > 0 ) CALL ctl_nam( ios , 'namdrg in configuration namelist' ) … … 337 335 ! !== read namlist ==! 338 336 ! 339 REWIND( numnam_ref ) ! Namelist cl_namdrg in reference namelist340 337 IF(ll_top) READ ( numnam_ref, namdrg_top, IOSTAT = ios, ERR = 901) 341 338 IF(ll_bot) READ ( numnam_ref, namdrg_bot, IOSTAT = ios, ERR = 901) 342 339 901 IF( ios /= 0 ) CALL ctl_nam( ios , TRIM(cl_namref) ) 343 REWIND( numnam_cfg ) ! Namelist cd_namdrg in configuration namelist344 340 IF(ll_top) READ ( numnam_cfg, namdrg_top, IOSTAT = ios, ERR = 902 ) 345 341 IF(ll_bot) READ ( numnam_cfg, namdrg_bot, IOSTAT = ios, ERR = 902 ) -
NEMO/branches/2019/dev_r11943_MERGE_2019/src/OCE/ZDF/zdfgls.F90
r11949 r11960 858 858 !!---------------------------------------------------------- 859 859 ! 860 REWIND( numnam_ref ) ! Namelist namzdf_gls in reference namelist : Vertical eddy diffivity and viscosity using gls turbulent closure scheme861 860 READ ( numnam_ref, namzdf_gls, IOSTAT = ios, ERR = 901) 862 861 901 IF( ios /= 0 ) CALL ctl_nam ( ios , 'namzdf_gls in reference namelist' ) 863 862 864 REWIND( numnam_cfg ) ! Namelist namzdf_gls in configuration namelist : Vertical eddy diffivity and viscosity using gls turbulent closure scheme865 863 READ ( numnam_cfg, namzdf_gls, IOSTAT = ios, ERR = 902 ) 866 864 902 IF( ios > 0 ) CALL ctl_nam ( ios , 'namzdf_gls in configuration namelist' ) -
NEMO/branches/2019/dev_r11943_MERGE_2019/src/OCE/ZDF/zdfiwm.F90
r11949 r11960 423 423 !!---------------------------------------------------------------------- 424 424 ! 425 REWIND( numnam_ref ) ! Namelist namzdf_iwm in reference namelist : Wave-driven mixing426 425 READ ( numnam_ref, namzdf_iwm, IOSTAT = ios, ERR = 901) 427 426 901 IF( ios /= 0 ) CALL ctl_nam ( ios , 'namzdf_iwm in reference namelist' ) 428 427 ! 429 REWIND( numnam_cfg ) ! Namelist namzdf_iwm in configuration namelist : Wave-driven mixing430 428 READ ( numnam_cfg, namzdf_iwm, IOSTAT = ios, ERR = 902 ) 431 429 902 IF( ios > 0 ) CALL ctl_nam ( ios , 'namzdf_iwm in configuration namelist' ) -
NEMO/branches/2019/dev_r11943_MERGE_2019/src/OCE/ZDF/zdfosm.F90
r11949 r11960 1387 1387 !!---------------------------------------------------------------------- 1388 1388 ! 1389 REWIND( numnam_ref ) ! Namelist namzdf_osm in reference namelist : Osmosis ML model1390 1389 READ ( numnam_ref, namzdf_osm, IOSTAT = ios, ERR = 901) 1391 1390 901 IF( ios /= 0 ) CALL ctl_nam ( ios , 'namzdf_osm in reference namelist' ) 1392 1391 1393 REWIND( numnam_cfg ) ! Namelist namzdf_tke in configuration namelist : Turbulent Kinetic Energy1394 1392 READ ( numnam_cfg, namzdf_osm, IOSTAT = ios, ERR = 902 ) 1395 1393 902 IF( ios > 0 ) CALL ctl_nam ( ios , 'namzdf_osm in configuration namelist' ) -
NEMO/branches/2019/dev_r11943_MERGE_2019/src/OCE/ZDF/zdfphy.F90
r11949 r11960 93 93 ! 94 94 ! !== Namelist ==! 95 REWIND( numnam_ref ) ! Namelist namzdf in reference namelist : Vertical mixing parameters96 95 READ ( numnam_ref, namzdf, IOSTAT = ios, ERR = 901) 97 96 901 IF( ios /= 0 ) CALL ctl_nam ( ios , 'namzdf in reference namelist' ) 98 97 ! 99 REWIND( numnam_cfg ) ! Namelist namzdf in reference namelist : Vertical mixing parameters100 98 READ ( numnam_cfg, namzdf, IOSTAT = ios, ERR = 902 ) 101 99 902 IF( ios > 0 ) CALL ctl_nam ( ios , 'namzdf in configuration namelist' ) -
NEMO/branches/2019/dev_r11943_MERGE_2019/src/OCE/ZDF/zdfric.F90
r11949 r11960 78 78 !!---------------------------------------------------------------------- 79 79 ! 80 REWIND( numnam_ref ) ! Namelist namzdf_ric in reference namelist : Vertical diffusion Kz depends on Richardson number81 80 READ ( numnam_ref, namzdf_ric, IOSTAT = ios, ERR = 901) 82 81 901 IF( ios /= 0 ) CALL ctl_nam ( ios , 'namzdf_ric in reference namelist' ) 83 82 84 REWIND( numnam_cfg ) ! Namelist namzdf_ric in configuration namelist : Vertical diffusion Kz depends on Richardson number85 83 READ ( numnam_cfg, namzdf_ric, IOSTAT = ios, ERR = 902 ) 86 84 902 IF( ios > 0 ) CALL ctl_nam ( ios , 'namzdf_ric in configuration namelist' ) -
NEMO/branches/2019/dev_r11943_MERGE_2019/src/OCE/ZDF/zdftke.F90
r11949 r11960 656 656 !!---------------------------------------------------------------------- 657 657 ! 658 REWIND( numnam_ref ) ! Namelist namzdf_tke in reference namelist : Turbulent Kinetic Energy659 658 READ ( numnam_ref, namzdf_tke, IOSTAT = ios, ERR = 901) 660 659 901 IF( ios /= 0 ) CALL ctl_nam ( ios , 'namzdf_tke in reference namelist' ) 661 660 662 REWIND( numnam_cfg ) ! Namelist namzdf_tke in configuration namelist : Turbulent Kinetic Energy663 661 READ ( numnam_cfg, namzdf_tke, IOSTAT = ios, ERR = 902 ) 664 662 902 IF( ios > 0 ) CALL ctl_nam ( ios , 'namzdf_tke in configuration namelist' ) -
NEMO/branches/2019/dev_r11943_MERGE_2019/src/OCE/nemogcm.F90
r11949 r11960 309 309 IF( lwm ) CALL ctl_opn( numout, 'ocean.output', 'REPLACE', 'FORMATTED', 'SEQUENTIAL', -1, -1, .FALSE. ) 310 310 ! open reference and configuration namelist files 311 CALL ctl_opn( numnam_ref, 'namelist_ref', 'OLD', 'FORMATTED', 'SEQUENTIAL', -1, -1, .FALSE.)312 CALL ctl_opn( numnam_cfg, 'namelist_cfg', 'OLD', 'FORMATTED', 'SEQUENTIAL', -1, -1, .FALSE.)311 CALL load_nml( numnam_ref, 'namelist_ref', -1, lwm ) 312 CALL load_nml( numnam_cfg, 'namelist_cfg', -1, lwm ) 313 313 IF( lwm ) CALL ctl_opn( numond, 'output.namelist.dyn', 'REPLACE', 'FORMATTED', 'SEQUENTIAL', -1, -1, .FALSE. ) 314 314 ! open /dev/null file to be able to supress output write easily … … 319 319 ! !--------------------! 320 320 ! 321 REWIND( numnam_ref ) ! Namelist namctl in reference namelist322 321 READ ( numnam_ref, namctl, IOSTAT = ios, ERR = 901 ) 323 322 901 IF( ios /= 0 ) CALL ctl_nam ( ios , 'namctl in reference namelist' ) 324 REWIND( numnam_cfg ) ! Namelist namctl in confguration namelist325 323 READ ( numnam_cfg, namctl, IOSTAT = ios, ERR = 902 ) 326 324 902 IF( ios > 0 ) CALL ctl_nam ( ios , 'namctl in configuration namelist' ) … … 377 375 ! !------------------------------------! 378 376 ! 379 REWIND( numnam_ref ) ! Namelist namcfg in reference namelist380 377 READ ( numnam_ref, namcfg, IOSTAT = ios, ERR = 903 ) 381 378 903 IF( ios /= 0 ) CALL ctl_nam ( ios , 'namcfg in reference namelist' ) 382 REWIND( numnam_cfg ) ! Namelist namcfg in confguration namelist383 379 READ ( numnam_cfg, namcfg, IOSTAT = ios, ERR = 904 ) 384 380 904 IF( ios > 0 ) CALL ctl_nam ( ios , 'namcfg in configuration namelist' ) … … 624 620 IF( numstp /= -1 ) CLOSE( numstp ) ! time-step file 625 621 IF( numrun /= -1 ) CLOSE( numrun ) ! run statistics file 626 IF( numnam_ref /= -1 ) CLOSE( numnam_ref ) ! oce reference namelist627 IF( numnam_cfg /= -1 ) CLOSE( numnam_cfg ) ! oce configuration namelist628 622 IF( lwm.AND.numond /= -1 ) CLOSE( numond ) ! oce output namelist 629 IF( numnam_ice_ref /= -1 ) CLOSE( numnam_ice_ref ) ! ice reference namelist630 IF( numnam_ice_cfg /= -1 ) CLOSE( numnam_ice_cfg ) ! ice configuration namelist631 623 IF( lwm.AND.numoni /= -1 ) CLOSE( numoni ) ! ice output namelist 632 624 IF( numevo_ice /= -1 ) CLOSE( numevo_ice ) ! ice variables (temp. evolution)
Note: See TracChangeset
for help on using the changeset viewer.