Skip to content
Snippets Groups Projects
Commit dc94e096 authored by Pierre Augier's avatar Pierre Augier
Browse files

Try spherical truncation for examples/time_stepping/3d/run_simul.py

parent 570cab1c
No related branches found
No related tags found
1 merge request!156Topic/default/phaseshift3d
......@@ -130,7 +130,8 @@
params.oper.nx = params.oper.ny = params.oper.nz = args.nx
params.oper.Lx = params.oper.Ly = params.oper.Lz = 2 * np.pi * L
params.oper.coef_dealiasing = args.coef_dealiasing
if args.coef_dealiasing > 2 / 3:
params.oper.truncation_shape = "spherical"
if args.coef_dealiasing > np.sqrt(2) * 2 / 3:
params.oper.truncation_shape = "no_multiple_aliases"
if mpi.nb_proc > 1:
......
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