New URL for NEMO forge!   http://forge.nemo-ocean.eu

Since March 2022 along with NEMO 4.2 release, the code development moved to a self-hosted GitLab.
This present forge is now archived and remained online for history.
Changeset 14141 – NEMO

Changeset 14141


Ignore:
Timestamp:
2020-12-09T17:00:01+01:00 (3 years ago)
Author:
techene
Message:

#2385 and #2480 : revise check compatibilities

File:
1 edited

Legend:

Unmodified
Added
Removed
  • NEMO/trunk/src/OCE/DYN/dynhpg.F90

    r14118 r14141  
    183183      ENDIF 
    184184      ! 
    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) )                  & 
     189         &   CALL ctl_stop( 'dyn_hpg_init : ln_hpg_isf=T requires ln_isfcav=T and vice versa' )   
     190      ! 
     191#if defined key_qco 
    190192      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' ) 
    194194      ENDIF 
     195#endif 
    195196      ! 
    196197      !                               ! Set nhpg from ln_hpg_... flags & consistency check 
     
    239240         END IF 
    240241      END IF 
     242      ! 
    241243   END SUBROUTINE dyn_hpg_init 
    242244 
Note: See TracChangeset for help on using the changeset viewer.