escript  Revision_
SolverOptions.h
Go to the documentation of this file.
1 
2 /******************************************************************************
3 *
4 * Copyright (c) 2003-2020 by The University of Queensland
5 * http://www.uq.edu.au
6 *
7 * Primary Business: Queensland, Australia
8 * Licensed under the Apache License, version 2.0
9 * http://www.apache.org/licenses/LICENSE-2.0
10 *
11 * Development until 2012 by Earth Systems Science Computational Center (ESSCC)
12 * Development 2012-2013 by School of Earth Sciences
13 * Development from 2014-2017 by Centre for Geoscience Computing (GeoComp)
14 * Development from 2019 by School of Earth and Environmental Sciences
15 **
16 *****************************************************************************/
17 
18 #ifndef __ESCRIPT_SOLVEROPTIONS_H__
19 #define __ESCRIPT_SOLVEROPTIONS_H__
20 
21 #include <boost/python/dict.hpp>
22 #include <boost/python/object.hpp>
23 #include "system_dep.h"
24 
25 namespace escript {
26 
82 {
84 
85  // Solver targets
88 
89  // Solver packages
95 
96  // Solver methods
117 
118  // Preconditioners
127 
128  // ODE solvers
132 
133  // Interpolation methods
137 
142 };
143 
145 inline bool isDirectSolver(const SolverOptions& method)
146 {
147  switch (method) {
148  case SO_METHOD_DIRECT:
153  return true;
154  default:
155  break;
156  }
157  return false;
158 }
159 
161 {
162 public:
163  SolverBuddy();
164  ~SolverBuddy();
165 
169  std::string getSummary() const;
170 
176  const char* getName(int key) const;
177 
184  void resetDiagnostics(bool all=false);
185 
194  void updateDiagnosticsPy(const std::string& key,
195  const boost::python::object& value);
196 
197  void updateDiagnostics(const std::string& key, bool value);
198  void updateDiagnostics(const std::string& key, int value);
199  void updateDiagnostics(const std::string& key, double value);
200 
229  double getDiagnostics(const std::string name) const;
230 
238  bool hasConverged() const;
239 
254  void setPreconditioner(int preconditioner);
255 
259  SolverOptions getPreconditioner() const;
260 
281  void setSolverMethod(int method);
282 
286  SolverOptions getSolverMethod() const;
287 
300  void setPackage(int package);
301 
305  SolverOptions getPackage() const;
306 
316  void setReordering(int ordering);
317 
322  SolverOptions getReordering() const;
323 
331  void setRestart(int restart);
332 
337  int getRestart() const;
338 
343  int _getRestartForC() const;
344 
350  void setTruncation(int truncation);
351 
356  int getTruncation() const;
357 
363  void setInnerIterMax(int iter_max);
364 
368  int getInnerIterMax() const;
369 
375  void setIterMax(int iter_max);
376 
380  int getIterMax() const;
381 
388  void setNumSweeps(int sweeps);
389 
394  int getNumSweeps() const;
395 
401  void setTolerance(double rtol);
402 
406  double getTolerance() const;
407 
413  void setAbsoluteTolerance(double atol);
414 
418  double getAbsoluteTolerance() const;
419 
426  void setInnerTolerance(double rtol);
427 
431  double getInnerTolerance() const;
432 
438  void setDropTolerance(double drop_tol);
439 
443  double getDropTolerance() const;
444 
452  void setDropStorage(double drop);
453 
457  double getDropStorage() const;
458 
466  void setRelaxationFactor(double factor);
467 
472  double getRelaxationFactor() const;
473 
479  bool isComplex() const;
480 
486  void setComplex(bool complex);
487 
493  bool isSymmetric() const;
494 
499  void setSymmetryOn();
500 
504  void setSymmetryOff();
505 
511  void setSymmetry(bool symmetry);
512 
518  bool isHermitian() const;
519 
524  void setHermitianOn();
525 
529  void setHermitianOff();
530 
536  void setHermitian(bool hermitian);
537 
543  bool isVerbose() const;
544 
548  void setVerbosityOn();
549 
553  void setVerbosityOff();
554 
560  void setVerbosity(bool verbose);
561 
569  bool adaptInnerTolerance() const;
570 
574  void setInnerToleranceAdaptionOn();
575 
579  void setInnerToleranceAdaptionOff();
580 
586  void setInnerToleranceAdaption(bool adaption);
587 
598  bool acceptConvergenceFailure() const;
599 
603  void setAcceptanceConvergenceFailureOn();
604 
608  void setAcceptanceConvergenceFailureOff();
609 
616  void setAcceptanceConvergenceFailure(bool acceptance);
617 
624  bool useLocalPreconditioner() const;
625 
629  void setLocalPreconditionerOn();
630 
634  void setLocalPreconditionerOff();
635 
642  void setLocalPreconditioner(bool local);
643 
650  void setNumRefinements(int refinements);
651 
656  int getNumRefinements() const;
657 
665  void setODESolver(int solver);
666 
670  SolverOptions getODESolver() const;
671 
681  void setTrilinosParameter(const std::string& name,
682  const boost::python::object& value);
683 
688  boost::python::dict getTrilinosParameters() const;
689 
693  void setDim(int dim);
694 
698  int getDim();
699 
703  bool using_default_method() const;
704 
705 
706 protected:
707  boost::python::dict trilinosParams;
708 
715  int sweeps;
716  double tolerance;
720  double drop_storage;
721  int iter_max;
724  int restart; //0 will have to be None in python, will get tricky
726  bool symmetric;
727  bool hermitian;
728  bool verbose;
731  double relaxation;
734  int dim; // Dimension of the problem, either 2 or 3. Used internally
735 
736  int num_iter;
739  double time;
740  double set_up_time;
741  double net_time;
743  bool converged;
750  double cum_time;
752  double cum_net_time;
753 
755 };
756 
757 typedef boost::shared_ptr<SolverBuddy> SB_ptr;
758 
759 } // namespace escript
760 
761 #endif // __ESCRIPT_SOLVEROPTIONS_H__
762 
escript::SolverBuddy::setAcceptanceConvergenceFailure
void setAcceptanceConvergenceFailure(bool acceptance)
Definition: SolverOptions.cpp:796
escript::SO_INTERPOLATION_CLASSIC_WITH_FF_COUPLING
@ SO_INTERPOLATION_CLASSIC_WITH_FF_COUPLING
Definition: SolverOptions.h:135
escript::SolverBuddy::getDropTolerance
double getDropTolerance() const
Definition: SolverOptions.cpp:650
escript::SolverOptions
SolverOptions
Definition: SolverOptions.h:82
escript::SO_REORDERING_NONE
@ SO_REORDERING_NONE
Definition: SolverOptions.h:141
ESCRIPT_DLL_API
#define ESCRIPT_DLL_API
Definition: escriptcore/src/system_dep.h:30
escript::SolverBuddy::iter_max
int iter_max
Definition: SolverOptions.h:721
escript::SolverBuddy
Definition: SolverOptions.h:161
PASO_ONE
#define PASO_ONE
Definition: Paso.h:68
escript::SolverBuddy::setInnerToleranceAdaptionOff
void setInnerToleranceAdaptionOff()
Definition: SolverOptions.cpp:768
escript::SolverBuddy::setDropStorage
void setDropStorage(double drop)
Definition: SolverOptions.cpp:655
escript::SolverBuddy::reordering
SolverOptions reordering
Definition: SolverOptions.h:714
escript::SO_METHOD_GMRES
@ SO_METHOD_GMRES
Definition: SolverOptions.h:107
escript::SolverBuddy::set_up_time
double set_up_time
Definition: SolverOptions.h:740
escript::SolverBuddy::accept_convergence_failure
bool accept_convergence_failure
Definition: SolverOptions.h:730
escript::SolverBuddy::hasConverged
bool hasConverged() const
Definition: SolverOptions.cpp:331
escript::SolverBuddy::getDiagnostics
double getDiagnostics(const std::string name) const
Definition: SolverOptions.cpp:311
escript::SolverBuddy::useLocalPreconditioner
bool useLocalPreconditioner() const
Definition: SolverOptions.cpp:804
escript::SolverBuddy::updateDiagnostics
void updateDiagnostics(const std::string &key, bool value)
Definition: SolverOptions.cpp:209
escript::SO_METHOD_DIRECT_TRILINOS
@ SO_METHOD_DIRECT_TRILINOS
Definition: SolverOptions.h:106
escript::SO_METHOD_HRZ_LUMPING
@ SO_METHOD_HRZ_LUMPING
Definition: SolverOptions.h:108
escript::SolverBuddy::getDim
int getDim()
Definition: SolverOptions.cpp:878
escript::SolverBuddy::setTruncation
void setTruncation(int truncation)
Definition: SolverOptions.cpp:559
escript::SolverBuddy::inner_iter_max
int inner_iter_max
Definition: SolverOptions.h:722
escript::SO_METHOD_LSQR
@ SO_METHOD_LSQR
Definition: SolverOptions.h:110
escript::SolverBuddy::setVerbosityOff
void setVerbosityOff()
Definition: SolverOptions.cpp:745
escript::SolverBuddy::getTolerance
double getTolerance() const
Definition: SolverOptions.cpp:614
escript::SolverBuddy::sweeps
int sweeps
Definition: SolverOptions.h:715
escript::SO_METHOD_DIRECT_SUPERLU
@ SO_METHOD_DIRECT_SUPERLU
Definition: SolverOptions.h:105
escript::SolverBuddy::target
SolverOptions target
Definition: SolverOptions.h:709
escript::SolverBuddy::drop_storage
double drop_storage
Definition: SolverOptions.h:720
escript::SO_METHOD_DIRECT
@ SO_METHOD_DIRECT
Definition: SolverOptions.h:102
escript::SolverBuddy::getSummary
std::string getSummary() const
Definition: SolverOptions.cpp:79
escript::SolverBuddy::time
double time
Definition: SolverOptions.h:739
escript::SolverBuddy::getAbsoluteTolerance
double getAbsoluteTolerance() const
Definition: SolverOptions.cpp:626
escript::SolverBuddy::num_coarse_unknowns
int num_coarse_unknowns
Definition: SolverOptions.h:747
escript::SO_ODESOLVER_BACKWARD_EULER
@ SO_ODESOLVER_BACKWARD_EULER
Definition: SolverOptions.h:129
escript::SolverBuddy::setAcceptanceConvergenceFailureOn
void setAcceptanceConvergenceFailureOn()
Definition: SolverOptions.cpp:786
paso::LinearSystem::n
dim_t n
Definition: Functions.h:59
escript::SolverBuddy::getTruncation
int getTruncation() const
Definition: SolverOptions.cpp:566
escript::SolverBuddy::symmetric
bool symmetric
Definition: SolverOptions.h:726
escript::SO_PRECONDITIONER_ILU0
@ SO_PRECONDITIONER_ILU0
Definition: SolverOptions.h:121
escript::SolverBuddy::~SolverBuddy
~SolverBuddy()
Definition: SolverOptions.cpp:74
escript::SolverBuddy::getPackage
SolverOptions getPackage() const
Definition: SolverOptions.cpp:513
escript::SolverBuddy::resetDiagnostics
void resetDiagnostics(bool all=false)
Definition: SolverOptions.cpp:186
escript::SolverBuddy::getNumSweeps
int getNumSweeps() const
Definition: SolverOptions.cpp:602
escript::SolverBuddy::setReordering
void setReordering(int ordering)
Definition: SolverOptions.cpp:518
escript::symmetric
void symmetric(const VEC &in, const DataTypes::ShapeType &inShape, typename VEC::size_type inOffset, VEC &ev, const DataTypes::ShapeType &evShape, typename VEC::size_type evOffset)
computes a symmetric matrix from your square matrix A: (A + transpose(A)) / 2
Definition: DataVectorOps.h:103
escript::SolverBuddy::time_step_backtracking_used
bool time_step_backtracking_used
Definition: SolverOptions.h:745
escript::SolverBuddy::setSymmetryOn
void setSymmetryOn()
Definition: SolverOptions.cpp:694
escript::SolverBuddy::num_iter
int num_iter
Definition: SolverOptions.h:736
escript::SolverBuddy::getSolverMethod
SolverOptions getSolverMethod() const
Definition: SolverOptions.cpp:441
escript::SolverBuddy::absolute_tolerance
double absolute_tolerance
Definition: SolverOptions.h:717
convert
bool convert(bp::object bpo, R &result)
Definition: SolverOptions.cpp:30
escript::SolverBuddy::cum_time
double cum_time
Definition: SolverOptions.h:750
escript::SolverBuddy::getNumRefinements
int getNumRefinements() const
Definition: SolverOptions.cpp:834
escript::SolverBuddy::num_inner_iter
int num_inner_iter
Definition: SolverOptions.h:738
escript::SolverBuddy::setRestart
void setRestart(int restart)
Definition: SolverOptions.cpp:538
escript::SO_ODESOLVER_LINEAR_CRANK_NICOLSON
@ SO_ODESOLVER_LINEAR_CRANK_NICOLSON
Definition: SolverOptions.h:131
escript::SolverBuddy::use_local_preconditioner
bool use_local_preconditioner
Definition: SolverOptions.h:732
escript::SolverBuddy::setSymmetryOff
void setSymmetryOff()
Definition: SolverOptions.cpp:699
escript::SO_PRECONDITIONER_REC_ILU
@ SO_PRECONDITIONER_REC_ILU
Definition: SolverOptions.h:125
escript::SO_REORDERING_MINIMUM_FILL_IN
@ SO_REORDERING_MINIMUM_FILL_IN
Definition: SolverOptions.h:139
escript::SB_ptr
boost::shared_ptr< SolverBuddy > SB_ptr
Definition: SolverOptions.h:757
escript::SolverBuddy::hermitian
bool hermitian
Definition: SolverOptions.h:727
paso::LinearSystem::tmp
double * tmp
Definition: Functions.h:57
escript::SO_PRECONDITIONER_ILUT
@ SO_PRECONDITIONER_ILUT
Definition: SolverOptions.h:122
escript::SolverBuddy::isHermitian
bool isHermitian() const
Definition: SolverOptions.cpp:712
escript::SolverBuddy::isComplex
bool isComplex() const
Definition: SolverOptions.cpp:679
escript::SolverBuddy::setHermitianOn
void setHermitianOn()
Definition: SolverOptions.cpp:717
escript::SolverBuddy::num_level
int num_level
Definition: SolverOptions.h:737
escript::SolverBuddy::updateDiagnosticsPy
void updateDiagnosticsPy(const std::string &key, const boost::python::object &value)
Definition: SolverOptions.cpp:252
escript::SolverBuddy::preconditioner
SolverOptions preconditioner
Definition: SolverOptions.h:712
escript::SO_METHOD_NONLINEAR_GMRES
@ SO_METHOD_NONLINEAR_GMRES
Definition: SolverOptions.h:112
escript::SolverBuddy::verbose
bool verbose
Definition: SolverOptions.h:728
escript::SO_INTERPOLATION_DIRECT
@ SO_INTERPOLATION_DIRECT
Definition: SolverOptions.h:136
escript::SolverBuddy::setIterMax
void setIterMax(int iter_max)
Definition: SolverOptions.cpp:583
escript::SolverBuddy::setNumSweeps
void setNumSweeps(int sweeps)
Definition: SolverOptions.cpp:595
escript::SolverBuddy::setNumRefinements
void setNumRefinements(int refinements)
Definition: SolverOptions.cpp:827
paso::SystemMatrix_ptr
boost::shared_ptr< SystemMatrix< T > > SystemMatrix_ptr
Definition: SystemMatrix.h:42
escript::SolverBuddy::setDim
void setDim(int dim)
Definition: SolverOptions.cpp:871
escript::SolverBuddy::setAbsoluteTolerance
void setAbsoluteTolerance(double atol)
Definition: SolverOptions.cpp:619
escript::SolverBuddy::setLocalPreconditioner
void setLocalPreconditioner(bool local)
Definition: SolverOptions.cpp:819
escript::SolverBuddy::isVerbose
bool isVerbose() const
Definition: SolverOptions.cpp:735
escript::SolverBuddy::refinements
int refinements
Definition: SolverOptions.h:733
escript::SolverBuddy::restart
int restart
Definition: SolverOptions.h:724
escript::SO_PACKAGE_PASO
@ SO_PACKAGE_PASO
Definition: SolverOptions.h:91
Solver.h
paso::util::copy
void copy(dim_t N, double *out, const double *in)
out = in
Definition: PasoUtil.h:88
escript::SolverBuddy::setRelaxationFactor
void setRelaxationFactor(double factor)
Definition: SolverOptions.cpp:667
escript::SO_PACKAGE_MUMPS
@ SO_PACKAGE_MUMPS
Definition: SolverOptions.h:94
escript::SolverBuddy::net_time
double net_time
Definition: SolverOptions.h:741
escript::SolverBuddy::ode_solver
SolverOptions ode_solver
Definition: SolverOptions.h:713
escript::SolverBuddy::adapt_inner_tolerance
bool adapt_inner_tolerance
Definition: SolverOptions.h:729
escript::hermitian
void hermitian(const DataTypes::CplxVectorType &in, const DataTypes::ShapeType &inShape, DataTypes::CplxVectorType::size_type inOffset, DataTypes::CplxVectorType &ev, const DataTypes::ShapeType &evShape, DataTypes::CplxVectorType::size_type evOffset)
computes an hermitian matrix from your square matrix A: (A + adjoint(A)) / 2
Definition: DataVectorOps.cpp:916
paso::Function
Definition: Functions.h:29
escript::SO_REORDERING_DEFAULT
@ SO_REORDERING_DEFAULT
Definition: SolverOptions.h:138
escript::SolverBuddy::acceptConvergenceFailure
bool acceptConvergenceFailure() const
Definition: SolverOptions.cpp:781
escript::SolverBuddy::setComplex
void setComplex(bool complex)
Definition: SolverOptions.cpp:684
escript::SolverBuddy::relaxation
double relaxation
Definition: SolverOptions.h:731
escript::SolverBuddy::drop_tolerance
double drop_tolerance
Definition: SolverOptions.h:719
escript::SolverBuddy::package
SolverOptions package
Definition: SolverOptions.h:710
escript::SolverBuddy::getRelaxationFactor
double getRelaxationFactor() const
Definition: SolverOptions.cpp:674
escript::SolverBuddy::getInnerIterMax
int getInnerIterMax() const
Definition: SolverOptions.cpp:578
paso::SolverResult
SolverResult
Definition: Paso.h:44
escript::SolverBuddy::getInnerTolerance
double getInnerTolerance() const
Definition: SolverOptions.cpp:638
escript::SolverBuddy::setTolerance
void setTolerance(double rtol)
Definition: SolverOptions.cpp:607
escript::SolverBuddy::_getRestartForC
int _getRestartForC() const
Definition: SolverOptions.cpp:551
escript::SO_ODESOLVER_CRANK_NICOLSON
@ SO_ODESOLVER_CRANK_NICOLSON
Definition: SolverOptions.h:130
paso::LinearSystem::~LinearSystem
virtual ~LinearSystem()
Definition: Solver_Function.cpp:36
escript::SolverBuddy::method
SolverOptions method
Definition: SolverOptions.h:711
escript::SolverBuddy::getName
const char * getName(int key) const
Definition: SolverOptions.cpp:123
escript::SO_METHOD_CGS
@ SO_METHOD_CGS
Definition: SolverOptions.h:99
SolverOptions.h
escript::SolverBuddy::preconditioner_size
int preconditioner_size
Definition: SolverOptions.h:744
escript::SO_METHOD_CGLS
@ SO_METHOD_CGLS
Definition: SolverOptions.h:98
escript::SolverBuddy::dim
int dim
Definition: SolverOptions.h:734
escript::SolverBuddy::trilinosParams
boost::python::dict trilinosParams
Definition: SolverOptions.h:707
escript::SolverBuddy::setPackage
void setPackage(int package)
Definition: SolverOptions.cpp:446
escript::SolverBuddy::inner_tolerance
double inner_tolerance
Definition: SolverOptions.h:718
escript::SolverBuddy::getIterMax
int getIterMax() const
Definition: SolverOptions.cpp:590
escript::SO_METHOD_ROWSUM_LUMPING
@ SO_METHOD_ROWSUM_LUMPING
Definition: SolverOptions.h:115
escript::SO_PRECONDITIONER_AMG
@ SO_PRECONDITIONER_AMG
Definition: SolverOptions.h:119
escript::SolverBuddy::truncation
int truncation
Definition: SolverOptions.h:723
escript::SO_METHOD_ITERATIVE
@ SO_METHOD_ITERATIVE
Definition: SolverOptions.h:109
escript::SolverBuddy::setInnerToleranceAdaption
void setInnerToleranceAdaption(bool adaption)
Definition: SolverOptions.cpp:773
escript::SolverBuddy::tolerance
double tolerance
Definition: SolverOptions.h:716
escript::SolverBuddy::using_default_method
bool using_default_method() const
Definition: SolverOptions.cpp:883
escript::SolverBuddy::getReordering
SolverOptions getReordering() const
Definition: SolverOptions.cpp:533
escript::SolverBuddy::isSymmetric
bool isSymmetric() const
Definition: SolverOptions.cpp:689
paso::LinearSystem::mat
SystemMatrix_ptr< double > mat
Definition: Functions.h:56
escript::SO_REORDERING_NESTED_DISSECTION
@ SO_REORDERING_NESTED_DISSECTION
Definition: SolverOptions.h:140
escript::SO_METHOD_BICGSTAB
@ SO_METHOD_BICGSTAB
Definition: SolverOptions.h:97
escript::SolverBuddy::getPreconditioner
SolverOptions getPreconditioner() const
Definition: SolverOptions.cpp:358
escript::isDirectSolver
bool isDirectSolver(const SolverOptions &method)
returns true if the passed solver method refers to a direct solver type
Definition: SolverOptions.h:145
escript::SolverBuddy::setHermitianOff
void setHermitianOff()
Definition: SolverOptions.cpp:722
escript::SolverBuddy::SolverBuddy
SolverBuddy()
Definition: SolverOptions.cpp:40
escript::SolverBuddy::setInnerIterMax
void setInnerIterMax(int iter_max)
Definition: SolverOptions.cpp:571
escript::SolverBuddy::setInnerToleranceAdaptionOn
void setInnerToleranceAdaptionOn()
Definition: SolverOptions.cpp:763
paso::LinearSystem::call
virtual SolverResult call(double *value, const double *arg, Performance *pp)
sets value=F(arg)
Definition: Solver_Function.cpp:44
escript::SO_TARGET_CPU
@ SO_TARGET_CPU
Definition: SolverOptions.h:86
escript::SO_METHOD_MINRES
@ SO_METHOD_MINRES
Definition: SolverOptions.h:111
paso::LinearSystem::b
double * b
Definition: Functions.h:58
escript::SolverBuddy::setVerbosityOn
void setVerbosityOn()
Definition: SolverOptions.cpp:740
EsysException.h
escript::SO_METHOD_DIRECT_PARDISO
@ SO_METHOD_DIRECT_PARDISO
Definition: SolverOptions.h:104
escript::SolverBuddy::setSolverMethod
void setSolverMethod(int method)
Definition: SolverOptions.cpp:363
escript
Definition: AbstractContinuousDomain.cpp:23
escript::SO_METHOD_CR
@ SO_METHOD_CR
Definition: SolverOptions.h:101
escript::SolverBuddy::setPreconditioner
void setPreconditioner(int preconditioner)
Definition: SolverOptions.cpp:336
escript::SO_METHOD_DIRECT_MUMPS
@ SO_METHOD_DIRECT_MUMPS
Definition: SolverOptions.h:103
escript::SolverBuddy::setSymmetry
void setSymmetry(bool symmetry)
Definition: SolverOptions.cpp:704
escript::SO_PRECONDITIONER_GAUSS_SEIDEL
@ SO_PRECONDITIONER_GAUSS_SEIDEL
Definition: SolverOptions.h:120
escript::SO_DEFAULT
@ SO_DEFAULT
Definition: SolverOptions.h:83
PasoUtil.h
escript::SO_PRECONDITIONER_NONE
@ SO_PRECONDITIONER_NONE
Definition: SolverOptions.h:124
escript::SolverBuddy::is_complex
bool is_complex
Definition: SolverOptions.h:725
escript::SolverBuddy::setDropTolerance
void setDropTolerance(double drop_tol)
Definition: SolverOptions.cpp:643
escript::SolverBuddy::cum_set_up_time
double cum_set_up_time
Definition: SolverOptions.h:751
escript::SolverBuddy::setVerbosity
void setVerbosity(bool verbose)
Definition: SolverOptions.cpp:750
escript::SolverBuddy::setODESolver
void setODESolver(int solver)
Definition: SolverOptions.cpp:839
escript::SolverBuddy::coarse_level_sparsity
double coarse_level_sparsity
Definition: SolverOptions.h:746
escript::SolverBuddy::setHermitian
void setHermitian(bool hermitian)
Definition: SolverOptions.cpp:727
Functions.h
escript::SolverBuddy::setAcceptanceConvergenceFailureOff
void setAcceptanceConvergenceFailureOff()
Definition: SolverOptions.cpp:791
escript::SolverBuddy::setInnerTolerance
void setInnerTolerance(double rtol)
Definition: SolverOptions.cpp:631
escript::SO_TARGET_GPU
@ SO_TARGET_GPU
Definition: SolverOptions.h:87
escript::SO_PRECONDITIONER_RILU
@ SO_PRECONDITIONER_RILU
Definition: SolverOptions.h:126
escript::SO_PACKAGE_TRILINOS
@ SO_PACKAGE_TRILINOS
Definition: SolverOptions.h:92
escript::SolverBuddy::setTrilinosParameter
void setTrilinosParameter(const std::string &name, const boost::python::object &value)
Definition: SolverOptions.cpp:858
system_dep.h
escript::SolverBuddy::adaptInnerTolerance
bool adaptInnerTolerance() const
Definition: SolverOptions.cpp:758
paso
Definition: BiCGStab.cpp:25
escript::SO_PACKAGE_MKL
@ SO_PACKAGE_MKL
Definition: SolverOptions.h:90
escript::SO_PRECONDITIONER_JACOBI
@ SO_PRECONDITIONER_JACOBI
Definition: SolverOptions.h:123
escript::SolverBuddy::residual_norm
double residual_norm
Definition: SolverOptions.h:742
escript::SolverBuddy::setLocalPreconditionerOn
void setLocalPreconditionerOn()
Definition: SolverOptions.cpp:809
escript::SO_METHOD_PRES20
@ SO_METHOD_PRES20
Definition: SolverOptions.h:114
paso::NoError
@ NoError
Definition: Paso.h:45
escript::SolverBuddy::getDropStorage
double getDropStorage() const
Definition: SolverOptions.cpp:662
escript::SO_PACKAGE_UMFPACK
@ SO_PACKAGE_UMFPACK
Definition: SolverOptions.h:93
escript::SolverBuddy::setLocalPreconditionerOff
void setLocalPreconditionerOff()
Definition: SolverOptions.cpp:814
escript::SO_METHOD_TFQMR
@ SO_METHOD_TFQMR
Definition: SolverOptions.h:116
escript::SolverBuddy::converged
bool converged
Definition: SolverOptions.h:743
escript::SO_METHOD_PCG
@ SO_METHOD_PCG
Definition: SolverOptions.h:113
escript::ValueError
An exception class that signals an invalid argument value.
Definition: EsysException.h:100
escript::SolverBuddy::cum_num_iter
int cum_num_iter
Definition: SolverOptions.h:749
escript::SolverBuddy::getTrilinosParameters
boost::python::dict getTrilinosParameters() const
Definition: SolverOptions.cpp:866
paso::Options
Definition: Options.h:80
paso::Performance
Definition: performance.h:56
escript::SolverBuddy::getODESolver
SolverOptions getODESolver() const
Definition: SolverOptions.cpp:853
paso::LinearSystem::LinearSystem
LinearSystem(SystemMatrix_ptr< double > A, double *b, Options *options)
Definition: Solver_Function.cpp:26
escript::SolverBuddy::cum_net_time
double cum_net_time
Definition: SolverOptions.h:752
escript::SO_METHOD_CHOLEVSKY
@ SO_METHOD_CHOLEVSKY
Definition: SolverOptions.h:100
escript::SolverBuddy::getRestart
int getRestart() const
Definition: SolverOptions.cpp:546
escript::SolverBuddy::cum_num_inner_iter
int cum_num_inner_iter
Definition: SolverOptions.h:748
escript::SolverBuddy::using_default_solver_method
bool using_default_solver_method
Definition: SolverOptions.h:754
escript::SO_INTERPOLATION_CLASSIC
@ SO_INTERPOLATION_CLASSIC
Definition: SolverOptions.h:134