Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F64666799
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, May 28, 13:43
Size
1 KB
Mime Type
text/x-c
Expires
Thu, May 30, 13:43 (1 d, 23 h)
Engine
blob
Format
Raw Data
Handle
17941491
Attached To
rSPECMICP SpecMiCP / ReactMiCP
parabolic_structs.hpp
View Options
#ifndef SPECMICP_DFPMSOLVER_PARABOLICSTRUCTS_HPP
#define SPECMICP_DFPMSOLVER_PARABOLICSTRUCTS_HPP
#include "driver_structs.hpp"
namespace
specmicp
{
namespace
dfpmsolver
{
enum
class
ParabolicLinesearch
{
Bactracking
,
// Bactracking linesearch
Strang
// Strang Linesearch
};
enum
class
ParabolicLinesearchReturnCode
{
NotSupposedToHappen
,
MaximumIterations
,
LambdaTooSmall
,
Divergence
,
Success
};
//! \brief Options of a parabolic driver
//!
struct
ParabolicDriverOptions:
public
DriverOptions
{
scalar_t
alpha
;
//!< Implicit/Cranck-Nicholson parameter
ParabolicLinesearch
linesearch
;
//!< The linesearch to use
int
quasi_newton
;
//!< Number of iterations without reforming the jacobian
ParabolicDriverOptions
()
:
DriverOptions
(),
alpha
(
1.0
),
linesearch
(
ParabolicLinesearch
::
Bactracking
),
quasi_newton
(
1
)
{}
};
//! \brief Return codes
enum
class
ParabolicDriverReturnCode
{
LinesearchFailed
=
-
5
,
//!< Linesearch has failed (usually indicates a bad system)
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