Path: blob/devel/elmerice/examples/Inverse_Methods/src/USFs_RonneFilchner.F90
3206 views
!#1!# A User function for Ronne-Filchner test case;2!# to impose Conditional Dirichlet conditions only for Grounded ice and GL3!# VarIn=GroundedMask (-1 : for floating ice; 0 : for GL; 1: for grounded ice)4!# Varout return a positive value for Grounded ice and GL5FUNCTION GM_CONDITION(Model,nodenumber,VarIn) RESULT(VarOut)6USE DefUtils7implicit none8TYPE(Model_t) :: Model9INTEGER :: nodenumber10REAL(kind=dp) :: VarIn,VarOut1112VarOut=VarIn+0.0513END FUNCTION GM_CONDITION1415!# A User function for Ronne-Filchner test case;16!# to impose passive condition for regulrisation of beta in floating17!elements18!# VarIn=GroundedMask (-1 : for floating ice; 0 : for GL; 1: for grounded ice)19!# Varout return a positive value for floating ice20FUNCTION BetaRegPassive(Model,nodenumber,VarIn) RESULT(VarOut)21USE DefUtils22implicit none23TYPE(Model_t) :: Model24INTEGER :: nodenumber25REAL(kind=dp) :: VarIn,VarOut2627VarOut=-VarIn-0.5_dp28END FUNCTION BetaRegPassive293031