escript
Revision_
|
#include <Options.h>
Public Member Functions | |
Options () | |
void | setDefaults () |
sets the default values for solver options More... | |
void | show () const |
prints current option values More... | |
void | showDiagnostics () const |
prints diagnostic data More... | |
Static Public Member Functions | |
static const char * | name (int key) |
static int | getPackage (int solver, int package, bool symmetry, const esysUtils::JMPI &mpi_info) |
static int | getSolver (int solver, int package, bool symmetry, const esysUtils::JMPI &mpi_info) |
returns the solver to be used with given combination More... | |
|
inline |
References getPackage(), getSolver(), name(), package, setDefaults(), show(), and showDiagnostics().
|
static |
References Esys_setError(), PASO_DEFAULT, PASO_DIRECT, PASO_MKL, PASO_PASO, PASO_PASTIX, PASO_TRILINOS, PASO_UMFPACK, and VALUE_ERROR.
Referenced by paso::SystemMatrix::getSystemMatrixTypeId(), and Options().
|
static |
returns the solver to be used with given combination
References Esys_setError(), PASO_BICGSTAB, PASO_CHOLEVSKY, PASO_DEFAULT, PASO_DIRECT, PASO_GMRES, PASO_MINRES, PASO_MKL, PASO_NONLINEAR_GMRES, PASO_PASO, PASO_PCG, PASO_PRES20, PASO_TFQMR, PASO_TRILINOS, PASO_UMFPACK, and VALUE_ERROR.
Referenced by Options(), and paso::Solver().
|
static |
References PASO_AGGREGATION_COARSENING, PASO_AMG, PASO_AMLI, PASO_BACKWARD_EULER, PASO_BICGSTAB, PASO_BOOMERAMG, PASO_CGS, PASO_CHOLEVSKY, PASO_CIJP_COARSENING, PASO_CIJP_FIXED_RANDOM_COARSENING, PASO_CR, PASO_CRANK_NICOLSON, PASO_DEFAULT, PASO_DEFAULT_REORDERING, PASO_DIRECT, PASO_FALGOUT_COARSENING, PASO_GAUSS_SEIDEL, PASO_GMRES, PASO_HMIS_COARSENING, PASO_ILU0, PASO_ILUT, PASO_ITERATIVE, PASO_JACOBI, PASO_LINEAR_CRANK_NICOLSON, PASO_MINIMUM_FILL_IN, PASO_MINRES, PASO_MKL, PASO_NESTED_DISSECTION, PASO_NO_PRECONDITIONER, PASO_NO_REORDERING, PASO_NONLINEAR_GMRES, PASO_PASO, PASO_PASTIX, PASO_PCG, PASO_PMIS_COARSENING, PASO_PRES20, PASO_REC_ILU, PASO_RILU, PASO_RUGE_STUEBEN_COARSENING, PASO_STANDARD_COARSENING, PASO_SUPER_LU, PASO_TFQMR, PASO_TRILINOS, PASO_UMFPACK, and PASO_YAIR_SHAPIRA_COARSENING.
void paso::Options::setDefaults | ( | ) |
sets the default values for solver options
References absolute_tolerance, accept_failed_convergence, adapt_inner_tolerance, coarse_level_sparsity, coarse_matrix_refinements, coarsening_matrix_time, coarsening_method, coarsening_selection_time, coarsening_threshold, converged, cycle_type, diagonal_dominance_threshold, drop_storage, drop_tolerance, inner_iter_max, inner_tolerance, interpolation_method, iter_max, level_max, method, min_coarse_matrix_size, min_coarse_sparsity, net_time, num_coarse_unknowns, num_inner_iter, num_iter, num_level, ode_solver, PASO_DEFAULT, PASO_DIRECT_INTERPOLATION, PASO_GS, PASO_JACOBI, PASO_LINEAR_CRANK_NICOLSON, PASO_NO_REORDERING, post_sweeps, pre_sweeps, preconditioner, preconditioner_size, refinements, relaxation_factor, reordering, residual_norm, restart, set_up_time, smoother, sweeps, symmetric, time, time_step_backtracking_used, tolerance, truncation, use_local_preconditioner, usePanel, and verbose.
Referenced by paso::SystemMatrixAdapter::escriptToPasoOptions(), and Options().
void paso::Options::show | ( | ) | const |
void paso::Options::showDiagnostics | ( | ) | const |
prints diagnostic data
References coarsening_matrix_time, coarsening_selection_time, converged, net_time, num_inner_iter, num_iter, num_level, preconditioner_size, residual_norm, set_up_time, time, and time_step_backtracking_used.
Referenced by Options().
double paso::Options::absolute_tolerance |
bool paso::Options::accept_failed_convergence |
Referenced by paso::SystemMatrixAdapter::escriptToPasoOptions(), setDefaults(), and paso::solve().
bool paso::Options::adapt_inner_tolerance |
Referenced by paso::SystemMatrixAdapter::escriptToPasoOptions(), setDefaults(), and paso::Solver_NewtonGMRES().
double paso::Options::coarse_level_sparsity |
Referenced by paso::Preconditioner_AMG_Root_alloc(), and setDefaults().
dim_t paso::Options::coarse_matrix_refinements |
double paso::Options::coarsening_matrix_time |
Referenced by setDefaults(), and showDiagnostics().
index_t paso::Options::coarsening_method |
double paso::Options::coarsening_selection_time |
Referenced by paso::Preconditioner_AMG_alloc(), paso::Preconditioner_LocalAMG_alloc(), setDefaults(), and showDiagnostics().
double paso::Options::coarsening_threshold |
bool paso::Options::converged |
Referenced by setDefaults(), showDiagnostics(), paso::solve(), and paso::Solver().
int paso::Options::cycle_type |
Referenced by paso::Preconditioner_BoomerAMG_alloc(), and setDefaults().
double paso::Options::diagonal_dominance_threshold |
double paso::Options::drop_storage |
Referenced by paso::SystemMatrixAdapter::escriptToPasoOptions(), and setDefaults().
double paso::Options::drop_tolerance |
Referenced by paso::SystemMatrixAdapter::escriptToPasoOptions(), and setDefaults().
dim_t paso::Options::inner_iter_max |
Referenced by paso::SystemMatrixAdapter::escriptToPasoOptions(), setDefaults(), and paso::Solver_NewtonGMRES().
double paso::Options::inner_tolerance |
Referenced by paso::SystemMatrixAdapter::escriptToPasoOptions(), setDefaults(), and paso::Solver_NewtonGMRES().
int paso::Options::interpolation_method |
dim_t paso::Options::iter_max |
int paso::Options::level_max |
int paso::Options::method |
Referenced by paso::SystemMatrixAdapter::escriptToPasoOptions(), setDefaults(), show(), and paso::Solver().
dim_t paso::Options::min_coarse_matrix_size |
double paso::Options::min_coarse_sparsity |
double paso::Options::net_time |
Referenced by setDefaults(), showDiagnostics(), and paso::Solver().
dim_t paso::Options::num_coarse_unknowns |
Referenced by paso::Preconditioner_AMG_Root_alloc(), and setDefaults().
dim_t paso::Options::num_inner_iter |
Referenced by setDefaults(), showDiagnostics(), and paso::Solver().
dim_t paso::Options::num_iter |
Referenced by setDefaults(), showDiagnostics(), paso::solve(), paso::TransportProblem::solve(), paso::Solver(), and paso::FCT_Solver::updateNL().
dim_t paso::Options::num_level |
Referenced by paso::Preconditioner_AMG_Root_alloc(), setDefaults(), showDiagnostics(), and paso::Solver().
int paso::Options::ode_solver |
int paso::Options::package |
Referenced by paso::SystemMatrixAdapter::escriptToPasoOptions(), Options(), and show().
int paso::Options::post_sweeps |
int paso::Options::pre_sweeps |
int paso::Options::preconditioner |
double paso::Options::preconditioner_size |
Referenced by setDefaults(), and showDiagnostics().
dim_t paso::Options::refinements |
Referenced by paso::SystemMatrixAdapter::escriptToPasoOptions(), setDefaults(), and paso::solve().
double paso::Options::relaxation_factor |
Referenced by paso::SystemMatrixAdapter::escriptToPasoOptions(), and setDefaults().
bool paso::Options::reordering |
double paso::Options::residual_norm |
Referenced by setDefaults(), showDiagnostics(), paso::solve(), and paso::Solver().
index_t paso::Options::restart |
Referenced by paso::SystemMatrixAdapter::escriptToPasoOptions(), setDefaults(), and paso::Solver().
double paso::Options::set_up_time |
Referenced by setDefaults(), showDiagnostics(), paso::solve(), and paso::Solver().
int paso::Options::smoother |
int paso::Options::sweeps |
bool paso::Options::symmetric |
Referenced by paso::SystemMatrixAdapter::escriptToPasoOptions(), setDefaults(), and paso::Solver().
double paso::Options::time |
Referenced by setDefaults(), showDiagnostics(), paso::solve(), and paso::Solver().
bool paso::Options::time_step_backtracking_used |
Referenced by setDefaults(), showDiagnostics(), and paso::TransportProblem::solve().
double paso::Options::tolerance |
index_t paso::Options::truncation |
Referenced by paso::SystemMatrixAdapter::escriptToPasoOptions(), setDefaults(), and paso::Solver().
bool paso::Options::use_local_preconditioner |
bool paso::Options::usePanel |
bool paso::Options::verbose |
Referenced by paso::SystemMatrixAdapter::escriptToPasoOptions(), paso::FCT_Solver::initialize(), paso::Preconditioner_alloc(), paso::Preconditioner_AMG_alloc(), paso::Preconditioner_AMG_Root_alloc(), paso::Preconditioner_BoomerAMG_alloc(), paso::Preconditioner_LocalAMG_alloc(), setDefaults(), show(), paso::solve(), paso::TransportProblem::solve(), paso::Solver(), paso::Solver_NewtonGMRES(), paso::FCT_Solver::updateLCN(), and paso::FCT_Solver::updateNL().