Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F84813339
options.hpp
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Subscribers
None
File Metadata
Details
File Info
Storage
Attached
Created
Wed, Sep 25, 01:00
Size
1 KB
Mime Type
text/x-c
Expires
Fri, Sep 27, 01:00 (2 d)
Engine
blob
Format
Raw Data
Handle
21090600
Attached To
rSPECMICP SpecMiCP / ReactMiCP
options.hpp
View Options
#ifndef SPECMICP_REACTMICP_SATURATED_DIFFUSION_OPTIONS_HPP
#define SPECMICP_REACTMICP_SATURATED_DIFFUSION_OPTIONS_HPP
namespace specmicp {
namespace reactmicp {
namespace systems {
namespace siasaturated {
//! \brief Return codes for the SIASaturatedReactiveTransportSolver
enum class SIASaturatedReactiveTransportSolverReturnCode {
LolThatsNotSuposedToHappen = -30, //!< Well, have fun debugging that...
// Transport error codes
ErrorInTransport = -20, //!< Error in the transport solver
MaxIterationsInTransport = -21, //!< Maximum iterations reached in the transport solver
StationaryPointsInTransport = -22, //!< Stationnary points in the transport solver
// Speciation error codes
ErrorInSpeciation = -10, //!< Error in the speciation solver
MaxIterationsInSpeciation = -11, //!< Maximum iterations reached in the speciation solver
StationaryPointsInSpeciation = -12, //!< Stationnary points in the speciation solver
// Coupling algorithm
MaxIterations = -1, //!< Maximum iterations of the coupling solver
StationaryPoints = -2, //!< Stationary points reached in the coupling solver
// The good ones
NotConvergedYet = 0, //!< Problem is not converged yet
Success = 1 //!< The problem is succesfully solved
};
//! \brief Options for the SIASaturatedReactiveTransportSolver
struct SIASaturatedReactiveTransportSolverOptions
{
int max_iterations;
double residual_tolerance_transport;
double residual_tolerance_speciation;
SIASaturatedReactiveTransportSolverOptions():
max_iterations(50),
residual_tolerance_transport(1e-4),
residual_tolerance_speciation(1e-9)
{}
};
} // end namespace siasaturated
} // end namespace systems
} // end namespace reactmicp
} // end namespace specmicp
#endif // SPECMICP_REACTMICP_SATURATED_DIFFUSION_OPTIONS_HPP
Event Timeline
Log In to Comment