- Timestamp:
- 2013-04-18T16:38:06+02:00 (11 years ago)
- Location:
- branches/2013/dev_r3853_CNRS9_ConfSetting/NEMOGCM/NEMO/OPA_SRC/SBC
- Files:
-
- 16 edited
Legend:
- Unmodified
- Added
- Removed
-
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
Note: See TracChangeset
for help on using the changeset viewer.