Skip to content
Snippets Groups Projects
Commit 897965cb authored by Jean-Baptiste Keck's avatar Jean-Baptiste Keck
Browse files

add diffusion substepping parameter to the example interface

parent 9406c018
No related branches found
No related tags found
1 merge request!16MPI operators
Pipeline #24516 failed
......@@ -576,10 +576,14 @@ class HysopArgParser(argparse.ArgumentParser):
method.add_argument('-vdm', '--vorticity-diffusion-mode', type=str,
default='spectral', dest='vorticity_diffusion_mode',
help='Enforce either spectral or directional diffusion with finite differences for vorticity. Vorticity is a special case for diffusion because vorticity diffusion can be computed at the same time as the Poisson operator which recovers the velocity. Spectral diffusion of vorticity when divergence-free field projection is enabled is virtually free. The default value is spectral diffusion mode.')
method.add_argument('-edst', '--enable-diffusion-substepping',
dest='enable_diffusion_substepping', action='store_true',
help='Do not restrict timestep because of finite difference directional diffusion CFL but enforce substepping inside the operator depending on current timestep.')
return method
def _check_method_args(self, args):
self._check_default(args, 'enable_diffusion_substepping', bool, allow_none=False)
self._check_default(args, ('compute_granularity', 'fd_order', 'strang_order',
'reprojection_frequency'), int, allow_none=False)
self._check_default(args, ('time_integrator', 'remesh_kernel', 'interpolation_filter',
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment