- Timestamp:
- 2017-06-29T11:41:55+02:00 (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/UKMO/test_moci_test_suite/NEMOGCM/NEMO/OPA_SRC/SBC/sbcapr.F90
r8161 r8243 19 19 USE iom ! IOM library 20 20 USE lib_mpp ! MPP library 21 USE iom_def, ONLY : lwxios 21 22 22 23 IMPLICIT NONE … … 29 30 LOGICAL, PUBLIC :: ln_ref_apr !: ref. pressure: global mean Patm (F) or a constant (F) 30 31 REAL(wp) :: rn_pref ! reference atmospheric pressure [N/m2] 32 LOGICAL :: ln_apr_sio ! single processor read flag 31 33 32 34 REAL(wp), ALLOCATABLE, SAVE, PUBLIC, DIMENSION(:,:) :: ssh_ib ! Inverse barometer now sea surface height [m] … … 77 79 IF( kt == nit000 ) THEN ! First call kt=nit000 ! 78 80 ! ! -------------------- ! 81 ln_apr_sio = .FALSE. 79 82 REWIND( numnam_ref ) ! Namelist namsbc_apr in reference namelist : File for atmospheric pressure forcing 80 83 READ ( numnam_ref, namsbc_apr, IOSTAT = ios, ERR = 901) … … 126 129 IF( kt /= nit000 ) ssh_ibb(:,:) = ssh_ib(:,:) !* Swap of ssh_ib fields 127 130 ! 131 lspr = ln_apr_sio 128 132 CALL fld_read( kt, nn_fsbc, sf_apr ) !* input Patm provided at kt + nn_fsbc/2 133 lspr = .false. 129 134 ! 130 135 ! !* update the reference atmospheric pressure (if necessary) … … 157 162 IF(lwp) WRITE(numout,*) 'sbc_apr : ssh_ib written in ocean restart file at it= ', kt,' date= ', ndastp 158 163 IF(lwp) WRITE(numout,*) '~~~~' 159 CALL iom_rstput( kt, nitrst, numrow, 'ssh_ibb' , ssh_ib ) 164 IF( lwxios ) CALL iom_swap( wxios_context ) 165 CALL iom_rstput( kt, nitrst, numrow, 'ssh_ibb' , ssh_ib, lxios = lwxios ) 166 IF( lwxios ) CALL iom_swap( cxios_context ) 160 167 ENDIF 161 168 !
Note: See TracChangeset
for help on using the changeset viewer.