# HG changeset patch # User paugier <pierre.augier@univ-grenoble-alpes.fr> # Date 1593424261 -7200 # Mon Jun 29 11:51:01 2020 +0200 # Node ID a74f6a2eeda8b09c5f46c087eac7e5bcc68804ef # Parent 4f3ceaec3a284adeb16e119f8f4cdd4061393a1b examples/time_stepping/3d: short_name_type_run containing cubic diff --git a/doc/examples/time_stepping/3d/run_simul.py b/doc/examples/time_stepping/3d/run_simul.py --- a/doc/examples/time_stepping/3d/run_simul.py +++ b/doc/examples/time_stepping/3d/run_simul.py @@ -107,9 +107,12 @@ params = Simul.create_default_params() - params.short_name_type_run = ( - f"{args.type_time_scheme}_trunc{args.coef_dealiasing:.3f}" - ) + if args.truncation_shape == "cubic": + str_trunc_shape = "_cubic_" + else: + str_trunc_shape = "" + + params.short_name_type_run = f"{args.type_time_scheme}_trunc{str_trunc_shape}{args.coef_dealiasing:.3f}" if args.nb_pairs != 1: params.short_name_type_run += f"_nb_pairs{args.nb_pairs}"