From 68d5acc645d8deb7543d2a19429908bd13890230 Mon Sep 17 00:00:00 2001 From: Sharan Roongta Date: Tue, 2 Jan 2024 14:46:35 +0100 Subject: [PATCH] PETSc options can be defined for every field solver --- examples/config/numerics.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/config/numerics.yaml b/examples/config/numerics.yaml index cdc487589..882638a57 100644 --- a/examples/config/numerics.yaml +++ b/examples/config/numerics.yaml @@ -25,6 +25,7 @@ solver: eps_abs_P: 1.0e3 # absolute tolerance for fulfillment of stress BC eps_rel_P: 1.0e-3 # relative tolerance for fulfillment of stress BC update_gamma: false # update Gamma-operator with current dPdF (not possible if FFT: memory_efficient == true) + PETSc_options: -snes_type ngmres -snes_ngmres_anderson # PETSc solver options FFT: memory_efficient: true # precalculate Gamma-operator (81 doubles per point) @@ -32,7 +33,6 @@ solver: derivative: continuous # approximation used for derivatives in Fourier space {continuous, central_difference, FWBW_difference} FFTW_plan_mode: FFTW_MEASURE # planning-rigor flags, see manual at https://www.fftw.org/fftw3_doc/Planner-Flags.html FFTW_timelimit: -1.0 # time limit of plan creation for FFTW, see manual on www.fftw.org. (-1.0: disable time limit) - PETSc_options: -snes_type ngmres -snes_ngmres_anderson # PETSc solver options alpha: 1.0 # polarization scheme parameter 0.0 < alpha < 2.0 (1.0: AL scheme, 2.0: accelerated scheme) beta: 1.0 # polarization scheme parameter 0.0 < beta < 2.0 (1.0: AL scheme, 2.0: accelerated scheme) eps_abs_curl(F): 1.0e-10 # absolute tolerance for fulfillment of strain compatibility