Set Hypre AMG parameters to Jutul default

This commit is contained in:
jakobtorben 2024-11-06 16:16:54 +01:00
parent 10f7a85532
commit 84193fa53d

View File

@ -59,12 +59,13 @@ public:
// Set some default parameters
HYPRE_BoomerAMGSetPrintLevel(solver_, 0); // Reduce output
HYPRE_BoomerAMGSetOldDefault(solver_); // Falgout coarsening with modified classical interpolation
HYPRE_BoomerAMGSetRelaxType(solver_, 3); // G-S/Jacobi hybrid relaxation
HYPRE_BoomerAMGSetRelaxOrder(solver_, 1); // Uses C/F relaxation
HYPRE_BoomerAMGSetNumSweeps(solver_, 1); // Sweeps on each level
HYPRE_BoomerAMGSetMaxLevels(solver_, 20); // Maximum number of levels
HYPRE_BoomerAMGSetTol(solver_, 1e-7); // Convergence tolerance
HYPRE_BoomerAMGSetCoarsenType(solver_, 10); // HMIS coarsening
HYPRE_BoomerAMGSetStrongThreshold(solver_, 0.5); // Strength threshold for 3D
HYPRE_BoomerAMGSetAggNumLevels(solver_, 1); // Aggressive coarsening on first level
HYPRE_BoomerAMGSetAggTruncFactor(solver_, 0.3); // Remove weak connections
HYPRE_BoomerAMGSetInterpType(solver_, 6); // ext+i interpolation
HYPRE_BoomerAMGSetMaxLevels(solver_, 15); // Maximum number of levels
HYPRE_BoomerAMGSetTol(solver_, 0.1); // Convergence tolerance
// Create the vectors