Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F83590716
parabolic_structs.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
Tue, Sep 17, 23:59
Size
1 KB
Mime Type
text/x-c
Expires
Thu, Sep 19, 23:59 (2 d)
Engine
blob
Format
Raw Data
Handle
20863572
Attached To
rSPECMICP SpecMiCP / ReactMiCP
parabolic_structs.hpp
View Options
#ifndef SPECMICP_DFPMSOLVER_PARABOLCSTRUCTS_HPP
#define SPECMICP_DFPMSOLVER_PARABOLICSTRUCTS_HPP
#include "driver_structs.hpp"
namespace specmicp {
namespace dfpmsolver {
//! \brief Options of a parabolic driver
//!
struct ParabolicDriverOptions: public DriverOptions
{
double alpha; //!< Implicit/Cranck-Nicholson parameter
ParabolicDriverOptions():
DriverOptions(),
alpha(1.0)
{}
};
//! \brief Return codes
enum class ParabolicDriverReturnCode
{
MaxIterations = -4, //!< Maximum number of iterations reached
MaxStepTakenTooManyTimes = -3, //!< Maximum step taken too many times (divergence)
ErrorLinearSystem = -2, //!< Error when solving the linear system
StationaryPoint = -1, //!< Stationnary points are detected
NotConvergedYet = 0, //!< Problem is not converged
ResidualMinimized = 1, //!< The residual is minimized (Success)
ErrorMinimized = 2 //!< Error is minimized (may be good)
};
//! \brief Performance of the parabolic driver
struct ParabolicDriverPerformance: public DriverPerformance
{
ParabolicDriverReturnCode return_code;
};
} // end namespace dfpmsolver
} // end namespace specmicp
#endif // SPECMICP_DFPMSOLVER_PARABOLICSTRUCTS_HPP
Event Timeline
Log In to Comment