- Timestamp:
- 2015-10-26T15:41:05+01:00 (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/NERC/dev_r5589_is_oce_cpl/NEMOGCM/NEMO/OPA_SRC/DOM/iscplhsb.F90
r5823 r5835 82 82 pvol_flx(:,:,: ) = 0.0_wp 83 83 pts_flx (:,:,:,:) = 0.0_wp 84 r1_tiscpl = 1._wp / (prdt_iscpl * rn_rdt) 84 85 85 86 ! mask tsn and tsb … … 87 88 tsb(:,:,:,jp_sal)=tsb(:,:,:,jp_sal)*ptmask_b(:,:,:); tsn(:,:,:,jp_sal)=tsn(:,:,:,jp_sal)*tmask(:,:,:); 88 89 89 ! diagnose non conservation of heat, salt and volume 90 r1_tiscpl = 1._wp / (prdt_iscpl * rn_rdt) 91 90 !============================================================================== 91 ! diagnose the heat, salt and volume input and compute the correction variable 92 !============================================================================== 93 94 ! 92 95 zssh0(:,:) = sshn(:,:) * ssmask(:,:) - sshb(:,:) * psmask_b(:,:) 93 96 IF ( lk_vvl ) zssh0 = 0.0_wp ! already include in the levels by definition 94 97 95 98 DO jk = 1,jpk-1 96 99 DO ji = 2,jpi-1 … … 119 122 pts_flx (ji,jj,jk,jp_tem)= pts_flx (ji,jj,jk,jp_tem) + zdtem(ji,jj) * r1_tiscpl 120 123 124 ! case where we close a cell: check if the neighbour cells are wet 121 125 IF ( tmask(ji,jj,jk) == 0._wp .AND. ptmask_b(ji,jj,jk) == 1._wp ) THEN 122 ! case where we close a cell: check if the neighbour cells are wet123 126 124 127 jip1=ji+1 ; jim1=ji-1 ; jjp1=jj+1 ; jjm1=jj-1 ;
Note: See TracChangeset
for help on using the changeset viewer.