File tree Expand file tree Collapse file tree 1 file changed +5
-1
lines changed
Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -80,6 +80,8 @@ def check_model_eqns_and_num_fluids(self):
8080 "5-equation model (model_eqns = 2) requires num_fluids to be set" )
8181 self .prohibit (model_eqns == 3 and num_fluids is None ,
8282 "6-equation model (model_eqns = 3) requires num_fluids to be set" )
83+ self .prohibit (model_eqns == 4 and num_fluids is None ,
84+ "4-equation model (model_eqns = 4) requires num_fluids to be set" )
8385 self .prohibit (model_eqns == 1 and mpp_lim ,
8486 "model_eqns = 1 does not support mpp_lim" )
8587 self .prohibit (num_fluids == 1 and mpp_lim ,
@@ -1582,7 +1584,9 @@ def check_no_flow_variables(self): # pylint: disable=too-many-locals
15821584 schlieren_wrt = self .get ('schlieren_wrt' , 'F' ) == 'T'
15831585
15841586 # Check array variables
1585- num_fluids = self .get ('num_fluids' , 1 )
1587+ num_fluids = self .get ('num_fluids' )
1588+ if num_fluids is None :
1589+ num_fluids = 1
15861590 alpha_rho_wrt_any = any (self .get (f'alpha_rho_wrt({ i } )' , 'F' ) == 'T' for i in range (1 , num_fluids + 1 ))
15871591 mom_wrt_any = any (self .get (f'mom_wrt({ i } )' , 'F' ) == 'T' for i in range (1 , 4 ))
15881592 vel_wrt_any = any (self .get (f'vel_wrt({ i } )' , 'F' ) == 'T' for i in range (1 , 4 ))
You can’t perform that action at this time.
0 commit comments