@@ -285,9 +285,7 @@ def check_parameter_types(self):
285285 self .prohibit (not self .is_set ("x_domain%beg" ), "x_domain%beg must be set when m > 0" )
286286 self .prohibit (not self .is_set ("x_domain%end" ), "x_domain%end must be set when m > 0" )
287287
288- # ===================================================================
289288 # Common Checks (All Stages)
290- # ===================================================================
291289
292290 def check_simulation_domain (self ):
293291 """Checks constraints on dimensionality and number of cells"""
@@ -474,7 +472,7 @@ def check_bubbles_euler(self):
474472 self .prohibit (model_eqns == 4 and num_fluids != 1 , "4-equation model (model_eqns = 4) is single-component and requires num_fluids = 1" )
475473 self .prohibit (cyl_coord , "Bubble models untested in cylindrical coordinates" )
476474
477- # === BUBBLE PHYSICS PARAMETERS ===
475+ # BUBBLE PHYSICS PARAMETERS
478476 # Validate bubble reference parameters (bub_pp%)
479477 R0ref = self .get ("bub_pp%R0ref" )
480478 p0ref = self .get ("bub_pp%p0ref" )
@@ -639,9 +637,7 @@ def check_mhd(self):
639637 self .prohibit (mhd and n is not None and n == 0 and Bx0 is None , "Bx0 must be set in 1D MHD simulations" )
640638 self .prohibit (mhd and n is not None and n > 0 and Bx0 is not None , "Bx0 must not be set in 2D/3D MHD simulations" )
641639
642- # ===================================================================
643640 # Simulation-Specific Checks
644- # ===================================================================
645641
646642 def check_riemann_solver (self ):
647643 """Checks constraints on Riemann solver (simulation only)"""
@@ -1202,9 +1198,7 @@ def check_hyperelasticity(self):
12021198 self .prohibit (model_eqns == 1 , "hyperelasticity is not supported for model_eqns = 1" )
12031199 self .prohibit (model_eqns is not None and model_eqns > 3 , "hyperelasticity is not supported for model_eqns > 3" )
12041200
1205- # ===================================================================
12061201 # Pre-Process Specific Checks
1207- # ===================================================================
12081202
12091203 def check_restart (self ):
12101204 """Checks constraints on restart parameters (pre-process)"""
@@ -1371,15 +1365,15 @@ def check_patch_physics(self):
13711365 alter_patches = [self .get (f"patch_icpp({ i } )%alter_patch({ j } )" ) == "T" for j in range (1 , num_patches + 1 )]
13721366 is_special = hcid is not None or any (alter_patches )
13731367
1374- # === THERMODYNAMICS ===
1368+ # THERMODYNAMICS
13751369 # Pressure must be positive for physical stability
13761370 # (skip for special patches where values are computed differently)
13771371 if not is_special :
13781372 pres = self .get (f"patch_icpp({ i } )%pres" )
13791373 if pres is not None and self ._is_numeric (pres ):
13801374 self .prohibit (pres <= 0 , f"patch_icpp({ istr } )%pres must be positive (got { pres } )" )
13811375
1382- # === FLUID PROPERTIES ===
1376+ # FLUID PROPERTIES
13831377 # (skip for special patches where values are computed differently)
13841378 if not is_special :
13851379 for j in range (1 , num_fluids + 1 ):
@@ -1399,7 +1393,7 @@ def check_patch_physics(self):
13991393 if alpha_rho is not None and self ._is_numeric (alpha_rho ):
14001394 self .prohibit (alpha_rho < 0 , f"patch_icpp({ istr } )%alpha_rho({ jstr } ) must be non-negative (got { alpha_rho } )" )
14011395
1402- # === GEOMETRY ===
1396+ # GEOMETRY
14031397 # Patch dimensions must be positive (except in cylindrical coords where
14041398 # length_y/length_z can be sentinel values like -1000000.0)
14051399 length_x = self .get (f"patch_icpp({ i } )%length_x" )
@@ -1418,7 +1412,7 @@ def check_patch_physics(self):
14181412 if radius is not None and self ._is_numeric (radius ):
14191413 self .prohibit (radius <= 0 , f"patch_icpp({ istr } )%radius must be positive (got { radius } )" )
14201414
1421- # === BUBBLES ===
1415+ # BUBBLES
14221416 # Bubble radius must be positive
14231417 if bubbles_euler :
14241418 r0 = self .get (f"patch_icpp({ i } )%r0" )
@@ -1472,9 +1466,7 @@ def check_bc_patches(self):
14721466 # BC types -14 to -4, -1 (periodic), or < -17 (dirichlet) are incompatible with patches
14731467 self .prohibit ((- 14 <= bc_type <= - 4 ) or bc_type == - 1 or bc_type < - 17 , f"Incompatible BC type for boundary condition patch { i } " )
14741468
1475- # ===================================================================
14761469 # Post-Process Specific Checks
1477- # ===================================================================
14781470
14791471 def check_output_format (self ):
14801472 """Checks output format parameters (post-process)"""
@@ -1715,9 +1707,7 @@ def check_no_flow_variables(self):
17151707
17161708 self .prohibit (not has_output , "None of the flow variables have been selected for post-process" )
17171709
1718- # ===================================================================
17191710 # Cross-Cutting Physics Checks
1720- # ===================================================================
17211711
17221712 def check_domain_bounds (self ):
17231713 """Checks that domain end > domain begin for each active dimension"""
@@ -1978,9 +1968,7 @@ def check_velocity_components(self):
19781968 if vel3 is not None and self ._is_numeric (vel3 ):
19791969 self .prohibit (vel3 != 0 , f"patch_icpp({ i } )%vel(3) = { vel3 } but p = 0 (1D/2D simulation)" )
19801970
1981- # ===================================================================
19821971 # Build-Flag Compatibility Checks
1983- # ===================================================================
19841972
19851973 def check_build_flags (self ):
19861974 """Checks case parameters against the active build configuration.
@@ -1998,9 +1986,7 @@ def check_geometry_precision_simulation(self):
19981986 p = self .get ("p" , 0 )
19991987 self .prohibit (CFG ().single and cyl_coord and p > 0 , "Fully 3D cylindrical geometry (cyl_coord = T, p > 0) is not supported in single precision (--single)" )
20001988
2001- # ===================================================================
20021989 # Main Validation Entry Points
2003- # ===================================================================
20041990
20051991 def validate_common (self ):
20061992 """Validate parameters common to all stages"""
0 commit comments