コード例 #1
0
 def _CreateScheme(self):
     if self.settings["add_flux_correction"].GetBool():
         time_scheme = SW.FluxCorrectedShallowWaterScheme(
             self.settings["time_integration_order"].GetInt())
         if self.settings["shock_stabilization_factor"].GetDouble() > 0.0:
             KM.Logger.PrintWarning(
                 self.__class__.__name__,
                 "Detected shock stabilization with flux correction, please, disable on of them."
             )
     else:
         time_scheme = SW.ShallowWaterResidualBasedBDFScheme(
             self.settings["time_integration_order"].GetInt())
     return time_scheme
コード例 #2
0
 def _CreateScheme(self):
     time_scheme = SW.FluxCorrectedShallowWaterScheme(
         self.settings["time_integration_order"].GetInt())
     return time_scheme