escript
Revision_
|
#include <Options.h>
Public Member Functions | |
Options () | |
Options (const boost::python::object &options) | |
constructor that fills values from an escript SolverBuddy instance More... | |
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... | |
void | updateEscriptDiagnostics (boost::python::object &options) const |
updates SolverBuddy diagnostics from this More... | |
Static Public Member Functions | |
static int | mapEscriptOption (int escriptOption) |
returns the corresponding paso option code for an escript option code More... | |
static const char * | name (int key) |
static int | getPackage (int solver, int package, bool symmetry, const escript::JMPI &mpi_info) |
static int | getSolver (int solver, int package, bool symmetry, const escript::JMPI &mpi_info) |
returns the solver to be used with given combination More... | |
Public Attributes | |
int | method |
int | package |
bool | symmetric |
bool | hermitian |
double | tolerance |
double | absolute_tolerance |
double | inner_tolerance |
bool | adapt_inner_tolerance |
bool | verbose |
bool | reordering |
int | preconditioner |
dim_t | iter_max |
dim_t | inner_iter_max |
double | drop_tolerance |
double | drop_storage |
index_t | truncation |
index_t | restart |
int | sweeps |
bool | accept_failed_convergence |
double | relaxation_factor |
bool | use_local_preconditioner |
dim_t | refinements |
int | ode_solver |
dim_t | num_iter |
dim_t | num_level |
dim_t | num_inner_iter |
double | time |
double | set_up_time |
double | coarsening_selection_time |
double | coarsening_matrix_time |
double | net_time |
double | residual_norm |
bool | converged |
double | preconditioner_size |
bool | time_step_backtracking_used |
double | coarse_level_sparsity |
dim_t | num_coarse_unknowns |
|
inline |
References getPackage(), getSolver(), mapEscriptOption(), name(), package, setDefaults(), show(), showDiagnostics(), and updateEscriptDiagnostics().
paso::Options::Options | ( | const boost::python::object & | options | ) |
constructor that fills values from an escript SolverBuddy instance
|
static |
References PASO_DEFAULT, PASO_DIRECT, PASO_MKL, PASO_PASO, PASO_TRILINOS, and PASO_UMFPACK.
Referenced by paso::SystemMatrix::getSystemMatrixTypeId(), and Options().
|
static |
returns the solver to be used with given combination
References 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, and PASO_UMFPACK.
Referenced by Options(), and paso::Solver().
|
static |
returns the corresponding paso option code for an escript option code
References PASO_BACKWARD_EULER, PASO_BICGSTAB, PASO_CGS, PASO_CHOLEVSKY, PASO_CR, PASO_CRANK_NICOLSON, PASO_DEFAULT, PASO_DEFAULT_REORDERING, PASO_DIRECT, PASO_GAUSS_SEIDEL, PASO_GMRES, 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_PCG, PASO_PRES20, PASO_REC_ILU, PASO_RILU, PASO_TFQMR, PASO_TRILINOS, PASO_UMFPACK, escript::SO_DEFAULT, escript::SO_METHOD_BICGSTAB, escript::SO_METHOD_CGS, escript::SO_METHOD_CHOLEVSKY, escript::SO_METHOD_CR, escript::SO_METHOD_DIRECT, escript::SO_METHOD_GMRES, escript::SO_METHOD_ITERATIVE, escript::SO_METHOD_MINRES, escript::SO_METHOD_NONLINEAR_GMRES, escript::SO_METHOD_PCG, escript::SO_METHOD_PRES20, escript::SO_METHOD_TFQMR, escript::SO_ODESOLVER_BACKWARD_EULER, escript::SO_ODESOLVER_CRANK_NICOLSON, escript::SO_ODESOLVER_LINEAR_CRANK_NICOLSON, escript::SO_PACKAGE_MKL, escript::SO_PACKAGE_PASO, escript::SO_PACKAGE_TRILINOS, escript::SO_PACKAGE_UMFPACK, escript::SO_PRECONDITIONER_GAUSS_SEIDEL, escript::SO_PRECONDITIONER_ILU0, escript::SO_PRECONDITIONER_ILUT, escript::SO_PRECONDITIONER_JACOBI, escript::SO_PRECONDITIONER_NONE, escript::SO_PRECONDITIONER_REC_ILU, escript::SO_PRECONDITIONER_RILU, escript::SO_REORDERING_DEFAULT, escript::SO_REORDERING_MINIMUM_FILL_IN, escript::SO_REORDERING_NESTED_DISSECTION, and escript::SO_REORDERING_NONE.
Referenced by paso::SystemMatrix::getSystemMatrixTypeId(), and Options().
|
static |
References PASO_BACKWARD_EULER, PASO_BICGSTAB, PASO_CGS, PASO_CHOLEVSKY, PASO_CR, PASO_CRANK_NICOLSON, PASO_DEFAULT, PASO_DEFAULT_REORDERING, PASO_DIRECT, PASO_GAUSS_SEIDEL, PASO_GMRES, 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_PCG, PASO_PRES20, PASO_REC_ILU, PASO_RILU, PASO_TFQMR, PASO_TRILINOS, and PASO_UMFPACK.
void paso::Options::setDefaults | ( | ) |
sets the default values for solver options
References absolute_tolerance, accept_failed_convergence, adapt_inner_tolerance, coarse_level_sparsity, coarsening_matrix_time, coarsening_selection_time, converged, drop_storage, drop_tolerance, hermitian, inner_iter_max, inner_tolerance, method, net_time, num_coarse_unknowns, num_inner_iter, num_iter, num_level, PASO_DEFAULT, PASO_JACOBI, PASO_LINEAR_CRANK_NICOLSON, PASO_NO_REORDERING, preconditioner_size, refinements, relaxation_factor, reordering, residual_norm, restart, set_up_time, sweeps, symmetric, time, time_step_backtracking_used, tolerance, truncation, and use_local_preconditioner.
Referenced by 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().
void paso::Options::updateEscriptDiagnostics | ( | boost::python::object & | options | ) | const |
updates SolverBuddy diagnostics from this
References coarse_level_sparsity, converged, net_time, num_coarse_unknowns, num_inner_iter, num_iter, num_level, residual_norm, SET, set_up_time, time, and time_step_backtracking_used.
Referenced by Options(), paso::TransportProblem::setToSolution(), and paso::SystemMatrix::setToSolution().
double paso::Options::absolute_tolerance |
Referenced by setDefaults(), paso::Solver_NewtonGMRES(), and paso::FCT_Solver::updateNL().
bool paso::Options::accept_failed_convergence |
Referenced by setDefaults(), and paso::SystemMatrix::solve().
bool paso::Options::adapt_inner_tolerance |
Referenced by setDefaults(), and paso::Solver_NewtonGMRES().
double paso::Options::coarse_level_sparsity |
Referenced by setDefaults(), and updateEscriptDiagnostics().
double paso::Options::coarsening_matrix_time |
Referenced by setDefaults(), and showDiagnostics().
double paso::Options::coarsening_selection_time |
Referenced by setDefaults(), and showDiagnostics().
bool paso::Options::converged |
Referenced by setDefaults(), showDiagnostics(), paso::SystemMatrix::solve(), paso::Solver(), and updateEscriptDiagnostics().
double paso::Options::drop_storage |
Referenced by setDefaults().
double paso::Options::drop_tolerance |
Referenced by setDefaults().
bool paso::Options::hermitian |
Referenced by setDefaults().
dim_t paso::Options::inner_iter_max |
Referenced by setDefaults(), and paso::Solver_NewtonGMRES().
double paso::Options::inner_tolerance |
Referenced by setDefaults(), and paso::Solver_NewtonGMRES().
dim_t paso::Options::iter_max |
Referenced by paso::Solver(), paso::Solver_NewtonGMRES(), and paso::FCT_Solver::updateNL().
int paso::Options::method |
Referenced by setDefaults(), show(), and paso::Solver().
double paso::Options::net_time |
Referenced by setDefaults(), showDiagnostics(), paso::Solver(), and updateEscriptDiagnostics().
dim_t paso::Options::num_coarse_unknowns |
Referenced by setDefaults(), and updateEscriptDiagnostics().
dim_t paso::Options::num_inner_iter |
Referenced by setDefaults(), showDiagnostics(), paso::Solver(), and updateEscriptDiagnostics().
dim_t paso::Options::num_iter |
dim_t paso::Options::num_level |
Referenced by setDefaults(), showDiagnostics(), paso::Solver(), and updateEscriptDiagnostics().
int paso::Options::ode_solver |
Referenced by paso::FCT_Solver::FCT_Solver(), and paso::TransportProblem::solve().
int paso::Options::preconditioner |
Referenced by paso::FCT_Solver::initialize(), and paso::Preconditioner_alloc().
double paso::Options::preconditioner_size |
Referenced by setDefaults(), and showDiagnostics().
dim_t paso::Options::refinements |
Referenced by setDefaults(), and paso::SystemMatrix::solve().
double paso::Options::relaxation_factor |
Referenced by setDefaults().
bool paso::Options::reordering |
Referenced by setDefaults(), and paso::SystemMatrix::solve().
double paso::Options::residual_norm |
Referenced by setDefaults(), showDiagnostics(), paso::SystemMatrix::solve(), paso::Solver(), and updateEscriptDiagnostics().
index_t paso::Options::restart |
Referenced by setDefaults(), and paso::Solver().
double paso::Options::set_up_time |
Referenced by setDefaults(), showDiagnostics(), paso::SystemMatrix::solve(), paso::Solver(), and updateEscriptDiagnostics().
int paso::Options::sweeps |
Referenced by paso::FCT_Solver::initialize(), paso::Preconditioner_alloc(), and setDefaults().
bool paso::Options::symmetric |
Referenced by setDefaults(), and paso::Solver().
double paso::Options::time |
Referenced by setDefaults(), showDiagnostics(), paso::SystemMatrix::solve(), paso::Solver(), and updateEscriptDiagnostics().
bool paso::Options::time_step_backtracking_used |
Referenced by setDefaults(), showDiagnostics(), paso::TransportProblem::solve(), and updateEscriptDiagnostics().
double paso::Options::tolerance |
index_t paso::Options::truncation |
Referenced by setDefaults(), and paso::Solver().
bool paso::Options::use_local_preconditioner |
Referenced by paso::FCT_Solver::initialize(), paso::Preconditioner_alloc(), and setDefaults().
bool paso::Options::verbose |