@@ -696,30 +696,6 @@ def check_mhd_simulation(self):
696696 self .prohibit (powell and fd_order is None ,
697697 "fd_order must be set if Powell's method is enabled" )
698698
699- def check_elasticity_fd_order_simulation (self ):
700- """Checks that elasticity uses fd_order = 4 in simulation.
701-
702- Mirrors the simulation-only Fortran checks:
703- - elasticity .and. fd_order /= 4
704- where elasticity is implied by hypoelasticity or hyperelasticity.
705- """
706- # elasticity is set in Fortran when either hypoelasticity or
707- # hyperelasticity is enabled; we conservatively treat either flag
708- # (or an explicit elasticity flag) as requiring fd_order = 4.
709- hypoelasticity = self .get ('hypoelasticity' , 'F' ) == 'T'
710- hyperelasticity = self .get ('hyperelasticity' , 'F' ) == 'T'
711- elasticity_flag = self .get ('elasticity' , 'F' ) == 'T'
712- elasticity = elasticity_flag or hypoelasticity or hyperelasticity
713-
714- if not elasticity :
715- return
716-
717- fd_order = self .get ('fd_order' )
718- # If elasticity is enabled in simulation, we require fd_order = 4.
719- # If fd_order is unset, other checks will complain; here we only
720- # enforce that, when set, it must be 4.
721- self .prohibit (fd_order is not None and fd_order != 4 ,
722- "elasticity (hypoelasticity or hyperelasticity) requires fd_order = 4 in simulation" )
723699
724700 def check_igr_simulation (self ): # pylint: disable=too-many-locals
725701 """Checks IGR constraints specific to simulation"""
@@ -1675,7 +1651,6 @@ def validate_simulation(self):
16751651 self .check_body_forces ()
16761652 self .check_viscosity ()
16771653 self .check_mhd_simulation ()
1678- self .check_elasticity_fd_order_simulation ()
16791654 self .check_igr_simulation ()
16801655 self .check_acoustic_source ()
16811656 self .check_adaptive_time_stepping ()
0 commit comments