Changeset 2528 for trunk/NEMOGCM/NEMO/OPA_SRC/SBC/sbcssm.F90
- Timestamp:
- 2010-12-27T18:33:53+01:00 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/NEMOGCM/NEMO/OPA_SRC/SBC/sbcssm.F90
r1715 r2528 5 5 !!====================================================================== 6 6 !! History : 9.0 ! 06-07 (G. Madec) Original code 7 !! 3.3 ! 2010-10 (C. Bricaud, G. Madec) add the Patm forcing for sea-ice 7 8 !!---------------------------------------------------------------------- 8 9 … … 14 15 USE dom_oce ! ocean space and time domain 15 16 USE sbc_oce ! Surface boundary condition: ocean fields 17 USE sbc_oce ! surface boundary condition: ocean fields 18 USE sbcapr ! surface boundary condition: atmospheric pressure 16 19 USE prtctl ! Print control (prt_ctl routine) 17 20 USE restart ! ocean restart … … 27 30 # include "domzgr_substitute.h90" 28 31 !!---------------------------------------------------------------------- 29 !! OPA 9.0 , LOCEAN-IPSL (2006)32 !! NEMO/OPA 3.3 , NEMO Consortium (2010) 30 33 !! $Id$ 31 !! Software governed by the CeCILL licence ( modipsl/doc/NEMO_CeCILL.txt)34 !! Software governed by the CeCILL licence (NEMOGCM/NEMO_CeCILL.txt) 32 35 !!---------------------------------------------------------------------- 33 36 … … 44 47 !! V-points) [m/s], temperature [Celcius] and salinity [psu] over 45 48 !! the periode (kt - nn_fsbc) to kt 49 !! Note that the inverse barometer ssh (i.e. ssh associated with Patm) 50 !! is add to ssh_m when ln_apr_dyn = T. Required for sea-ice dynamics. 46 51 !!--------------------------------------------------------------------- 47 52 INTEGER, INTENT(in) :: kt ! ocean time step … … 63 68 sst_m(:,:) = tn(:,:,1) 64 69 sss_m(:,:) = sn(:,:,1) 65 ssh_m(:,:) = sshn(:,:) 70 ! ! removed inverse barometer ssh when Patm forcing is used (for sea-ice dynamics) 71 IF( ln_apr_dyn ) THEN ; ssh_m(:,:) = sshn(:,:) - 0.5 * ( ssh_ib(:,:) + ssh_ibb(:,:) ) 72 ELSE ; ssh_m(:,:) = sshn(:,:) 73 ENDIF 74 66 75 ! 67 76 ELSE … … 99 108 sst_m(:,:) = zcoef * tn(:,:,1) 100 109 sss_m(:,:) = zcoef * sn(:,:,1) 101 ssh_m(:,:) = zcoef * sshn(:,:) 110 ! ! removed inverse barometer ssh when Patm forcing is used 111 IF( ln_apr_dyn ) THEN ; ssh_m(:,:) = zcoef * ( sshn(:,:) - 0.5 * ( ssh_ib(:,:) + ssh_ibb(:,:) ) ) 112 ELSE ; ssh_m(:,:) = zcoef * sshn(:,:) 113 ENDIF 114 102 115 ENDIF 103 116 ! ! ---------------------------------------- ! … … 117 130 sst_m(:,:) = sst_m(:,:) + tn(:,:,1) 118 131 sss_m(:,:) = sss_m(:,:) + sn(:,:,1) 119 ssh_m(:,:) = ssh_m(:,:) + sshn(:,:) 132 ! ! removed inverse barometer ssh when Patm forcing is used (for sea-ice dynamics) 133 IF( ln_apr_dyn ) THEN ; ssh_m(:,:) = ssh_m(:,:) + sshn(:,:) - 0.5 * ( ssh_ib(:,:) + ssh_ibb(:,:) ) 134 ELSE ; ssh_m(:,:) = ssh_m(:,:) + sshn(:,:) 135 ENDIF 120 136 121 137 ! ! ---------------------------------------- !
Note: See TracChangeset
for help on using the changeset viewer.