Changeset 9366 for branches/UKMO/test_moci_test_suite_namelist_read/NEMOGCM/NEMO/OPA_SRC/SBC/sbcapr.F90
- Timestamp:
- 2018-02-28T16:29:13+01:00 (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/UKMO/test_moci_test_suite_namelist_read/NEMOGCM/NEMO/OPA_SRC/SBC/sbcapr.F90
r8243 r9366 25 25 26 26 PUBLIC sbc_apr ! routine called in sbcmod 27 PRIVATE sio_namelist 27 28 28 29 ! !!* namsbc_apr namelist (Atmospheric PRessure) * … … 80 81 ! ! -------------------- ! 81 82 ln_apr_sio = .FALSE. 82 REWIND( numnam_ref ) ! Namelist namsbc_apr in reference namelist : File for atmospheric pressure forcing 83 READ ( numnam_ref, namsbc_apr, IOSTAT = ios, ERR = 901) 84 901 IF( ios /= 0 ) CALL ctl_nam ( ios , 'namsbc_apr in reference namelist', lwp ) 83 IF(lwm) THEN 84 REWIND( numnam_ref ) ! Namelist namsbc_apr in reference namelist : File for atmospheric pressure forcing 85 READ ( numnam_ref, namsbc_apr, IOSTAT = ios, ERR = 901) 86 901 IF( ios /= 0 ) CALL ctl_nam ( ios , 'namsbc_apr in reference namelist', lwm ) 87 REWIND( numnam_cfg ) ! Namelist namsbc_apr in configuration namelist : File for atmospheric pressure forcing 88 READ ( numnam_cfg, namsbc_apr, IOSTAT = ios, ERR = 902 ) 89 902 IF( ios /= 0 ) CALL ctl_nam ( ios , 'namsbc_apr in configuration namelist', lwm ) 90 ENDIF 85 91 86 REWIND( numnam_cfg ) ! Namelist namsbc_apr in configuration namelist : File for atmospheric pressure forcing87 READ ( numnam_cfg, namsbc_apr, IOSTAT = ios, ERR = 902 )88 902 IF( ios /= 0 ) CALL ctl_nam ( ios , 'namsbc_apr in configuration namelist', lwp )89 92 IF(lwm) WRITE ( numond, namsbc_apr ) 93 94 CALL sio_namelist(cn_dir, sn_apr) 90 95 ! 91 96 ALLOCATE( sf_apr(1), STAT=ierror ) !* allocate and fill sf_sst (forcing structure) with sn_sst … … 168 173 ! 169 174 END SUBROUTINE sbc_apr 175 176 SUBROUTINE sio_namelist(cd_dir, sd_apr) 177 !!--------------------------------------------------------------------- 178 !! *** ROUTINE sio_namelist *** 179 !! 180 !! ** Purpose : Broadcast namelist variables read by procesor lwm 181 !! 182 !! ** Method : use lib_mpp 183 !!---------------------------------------------------------------------- 184 CHARACTER(len=100) :: cd_dir ! Root directory for location of ssr files 185 TYPE(FLD_N) :: sd_apr ! informations about the fields to be read 186 187 #if defined key_mpp_mpi 188 CALL mpp_bcast(cd_dir, 100) 189 CALL fld_n_bcast(sd_apr) 190 CALL mpp_bcast(ln_ref_apr) 191 CALL mpp_bcast(rn_pref) 192 CALL mpp_bcast(ln_apr_obc) 193 #endif 194 END SUBROUTINE sio_namelist 170 195 171 196 !!======================================================================
Note: See TracChangeset
for help on using the changeset viewer.