9 #ifndef Tempus_SolutionStateMetaData_impl_hpp
10 #define Tempus_SolutionStateMetaData_impl_hpp
12 #include "Tempus_config.hpp"
17 template<
class Scalar>
27 nConsecutiveFailures_(0),
30 outputScreen_ (false),
32 isInterpolated_(false),
36 template<
class Scalar>
41 const Scalar errorAbs,
42 const Scalar errorRel,
45 const int nRunningFailures,
46 const int nConsecutiveFailures,
47 const Status solutionStatus,
49 const bool outputScreen,
51 const bool isInterpolated,
52 const Scalar accuracy)
59 nFailures_ (nFailures),
60 nRunningFailures_(nRunningFailures),
61 nConsecutiveFailures_(nConsecutiveFailures),
62 solutionStatus_(solutionStatus),
64 outputScreen_ (outputScreen),
66 isInterpolated_(isInterpolated),
70 template<
class Scalar>
75 errorAbs_ (ssmd.errorAbs_),
76 errorRel_ (ssmd.errorRel_),
78 nFailures_ (ssmd.nFailures_),
79 nRunningFailures_(ssmd.nRunningFailures_),
80 nConsecutiveFailures_(ssmd.nConsecutiveFailures_),
81 solutionStatus_(ssmd.solutionStatus_),
82 output_ (ssmd.output_),
83 outputScreen_ (ssmd.outputScreen_),
84 isSynced_ (ssmd.isSynced_),
85 isInterpolated_(ssmd.isInterpolated_),
86 accuracy_ (ssmd.accuracy_)
90 template<
class Scalar>
93 Teuchos::RCP<SolutionStateMetaData<Scalar> > md =
103 nConsecutiveFailures_,
115 template<
class Scalar>
120 iStep_ = ssmd->iStep_;
122 errorAbs_ = ssmd->errorAbs_;
123 errorRel_ = ssmd->errorRel_;
124 order_ = ssmd->order_;
125 nFailures_ = ssmd->nFailures_;
126 nRunningFailures_= ssmd->nRunningFailures_;
127 nConsecutiveFailures_ = ssmd->nConsecutiveFailures_;
128 solutionStatus_ = ssmd->solutionStatus_;
129 output_ = ssmd->output_;
130 outputScreen_ = ssmd->outputScreen_;
131 isSynced_ = ssmd->isSynced_;
132 isInterpolated_ = ssmd->isInterpolated_;
133 accuracy_ = ssmd->accuracy_;
137 template<
class Scalar>
140 std::string name =
"Tempus::SolutionStateMetaData";
145 template<
class Scalar>
147 Teuchos::FancyOStream &out,
148 const Teuchos::EVerbosityLevel verbLevel)
const
150 if (verbLevel == Teuchos::VERB_EXTREME) {
151 out << description() <<
"::describe:" << std::endl
152 <<
"time = " << time_ << std::endl
153 <<
"iStep = " << iStep_ << std::endl
154 <<
"dt = " << dt_ << std::endl
155 <<
"errorAbs = " << errorAbs_ << std::endl
156 <<
"errorRel = " << errorRel_ << std::endl
157 <<
"order = " << order_ << std::endl
158 <<
"nFailures = " << nFailures_ << std::endl
159 <<
"nRunningFailures= " << nRunningFailures_<< std::endl
160 <<
"nConsecutiveFailures = " << nConsecutiveFailures_ << std::endl
161 <<
"solutionStatus = " <<
toString(solutionStatus_) << std::endl
162 <<
"output = " << output_ << std::endl
163 <<
"outputScreen = " << outputScreen_ << std::endl
164 <<
"isSynced = " << isSynced_ << std::endl
165 <<
"isInterpolated = " << isInterpolated_ << std::endl
166 <<
"accuracy = " << accuracy_ << std::endl;
171 #endif // Tempus_SolutionStateMetaData_impl_hpp
const std::string toString(const Status status)
Convert Status to string.
Status
Status for the Integrator, the Stepper and the SolutionState.