C $Header: /u/gcmpack/MITgcm/model/src/update_masks_etc.F,v 1.10 2014/04/04 20:54:11 jmc Exp $ C $Name: $ #include "PACKAGES_CONFIG.h" #include "CPP_OPTIONS.h" #ifdef ALLOW_AUTODIFF # include "AUTODIFF_OPTIONS.h" #endif C-- File update_masks_etc.F: C-- Contents C-- o S/R UPDATE_MASKS_ETC C-- o FCT SMOOTHMIN_RS( a, b ) C-- o FCT SMOOTHMIN_RL( a, b ) C-- o FCT SMOOTHABS_RS( x ) C-- o FCT SMOOTHABS_RL( x ) Cml o S/R LIMIT_HFACC_TO_ONE Cml o S/R ADLIMIT_HFACC_TO_ONE C---+----1----+----2----+----3----+----4----+----5----+----6----+----7-|--+----| CBOP C !ROUTINE: UPDATE_MASKS_ETC C !INTERFACE: SUBROUTINE UPDATE_MASKS_ETC( myThid ) C !DESCRIPTION: \bv C *==========================================================* C | SUBROUTINE UPDATE_MASKS_ETC C | o Re-initialise masks and topography factors after a new C | hFacC has been calculated by the minimizer C *==========================================================* C | These arrays are used throughout the code and describe C | the topography of the domain through masks (0s and 1s) C | and fractional height factors (0