Changeset 14200 for NEMO/branches/2020/dev_r14116_HPC-04_mcastril_Mixed_Precision_implementation_final/src/OCE/DYN/dynhpg.F90
- Timestamp:
- 2020-12-17T15:36:44+01:00 (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
NEMO/branches/2020/dev_r14116_HPC-04_mcastril_Mixed_Precision_implementation_final/src/OCE/DYN/dynhpg.F90
r14064 r14200 183 183 ENDIF 184 184 ! 185 IF( .NOT.ln_linssh .AND. .NOT.(ln_hpg_sco.OR.ln_hpg_prj.OR.ln_hpg_isf.OR.ln_hpg_djc) ) & 186 & CALL ctl_stop('dyn_hpg_init : non-linear free surface requires either ', & 187 & ' the standard jacobian formulation hpg_sco or ' , & 188 & ' the pressure jacobian formulation hpg_prj' ) 189 ! 185 IF( .NOT.ln_linssh .AND. (ln_hpg_zco.OR.ln_hpg_zps) ) & 186 & CALL ctl_stop( 'dyn_hpg_init : non-linear free surface incompatible with hpg_zco or hpg_zps' ) 187 ! 188 IF( (.NOT.ln_hpg_isf .AND. ln_isfcav) .OR. (ln_hpg_isf .AND. .NOT.ln_isfcav) ) & 189 & CALL ctl_stop( 'dyn_hpg_init : ln_hpg_isf=T requires ln_isfcav=T and vice versa' ) 190 ! 191 #if defined key_qco 190 192 IF( ln_hpg_isf ) THEN 191 IF( .NOT. ln_isfcav ) CALL ctl_stop( ' hpg_isf not available if ln_isfcav = false ' ) 192 ELSE 193 IF( ln_isfcav ) CALL ctl_stop( 'Only hpg_isf has been corrected to work with ice shelf cavity.' ) 193 CALL ctl_stop( 'dyn_hpg_init : key_qco and ln_hpg_isf not yet compatible' ) 194 194 ENDIF 195 #endif 195 196 ! 196 197 ! ! Set nhpg from ln_hpg_... flags & consistency check … … 239 240 END IF 240 241 END IF 242 ! 241 243 END SUBROUTINE dyn_hpg_init 242 244 … … 756 758 ! 4. a) Upper half of top-most grid box, compute and store 757 759 !------------------------------------------------------------- 758 ! *** AY note: ssh(ji,jj,Kmm) + gde3w(ji,jj,1) = e3w(ji,jj,1 )760 ! *** AY note: ssh(ji,jj,Kmm) + gde3w(ji,jj,1) = e3w(ji,jj,1,Kmm) 759 761 DO_2D( 0, 1, 0, 1) 760 762 z_rho_k(ji,jj,1) = grav * ( ssh(ji,jj,Kmm) + gde3w(ji,jj,1) ) &
Note: See TracChangeset
for help on using the changeset viewer.