Skip to content
Snippets Groups Projects
Commit 62efd1f1 authored by Philipp Suffa's avatar Philipp Suffa
Browse files

Small check, if psm_config is defined when creating psm update rule

parent 544b7055
No related branches found
No related tags found
1 merge request!187Optmizations for kernel generation for the partially saturated cells method
Pipeline #78559 passed
......@@ -871,6 +871,9 @@ def create_lb_method(lbm_config=None, **params):
def create_psm_update_rule(lbm_config, lbm_optimisation):
if lbm_config.psm_config is None:
raise ValueError("Specify a PSM Config in the LBM Config, when creating a psm update rule")
config_without_particles = copy.deepcopy(lbm_config)
config_without_particles.psm_config.max_particles_per_cell = 0
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment