9 #ifndef Tempus_SolutionStateMetaData_impl_hpp
10 #define Tempus_SolutionStateMetaData_impl_hpp
16 template<
class Scalar>
26 nConsecutiveFailures_(0),
32 computeNorms_ (false),
35 outputScreen_ (false),
37 isInterpolated_(false),
41 template<
class Scalar>
46 const Scalar errorAbs,
47 const Scalar errorRel,
50 const int nRunningFailures,
51 const int nConsecutiveFailures,
55 const Scalar dxNormL2Rel,
56 const Scalar dxNormL2Abs,
57 const bool computeNorms,
58 const Status solutionStatus,
60 const bool outputScreen,
62 const bool isInterpolated,
63 const Scalar accuracy)
70 nFailures_ (nFailures),
71 nRunningFailures_(nRunningFailures),
72 nConsecutiveFailures_(nConsecutiveFailures),
76 dxNormL2Rel_ (dxNormL2Rel),
77 dxNormL2Abs_ (dxNormL2Abs),
78 computeNorms_ (computeNorms),
79 solutionStatus_(solutionStatus),
81 outputScreen_ (outputScreen),
83 isInterpolated_(isInterpolated),
87 template<
class Scalar>
92 errorAbs_ (ssmd.errorAbs_),
93 errorRel_ (ssmd.errorRel_),
95 nFailures_ (ssmd.nFailures_),
96 nRunningFailures_(ssmd.nRunningFailures_),
97 nConsecutiveFailures_(ssmd.nConsecutiveFailures_),
98 tolRel_ (ssmd.tolRel_),
99 tolAbs_ (ssmd.tolAbs_),
100 dxNormL2Rel_ (ssmd.dxNormL2Rel_),
101 dxNormL2Abs_ (ssmd.dxNormL2Abs_),
102 computeNorms_ (ssmd.computeNorms_),
103 solutionStatus_(ssmd.solutionStatus_),
104 output_ (ssmd.output_),
105 outputScreen_ (ssmd.outputScreen_),
106 isSynced_ (ssmd.isSynced_),
107 isInterpolated_(ssmd.isInterpolated_),
108 accuracy_ (ssmd.accuracy_)
112 template<
class Scalar>
125 nConsecutiveFailures_,
143 template<
class Scalar>
148 iStep_ = ssmd->iStep_;
150 errorAbs_ = ssmd->errorAbs_;
151 errorRel_ = ssmd->errorRel_;
152 order_ = ssmd->order_;
153 nFailures_ = ssmd->nFailures_;
154 nRunningFailures_= ssmd->nRunningFailures_;
155 nConsecutiveFailures_ = ssmd->nConsecutiveFailures_;
156 tolRel_ = ssmd->tolRel_,
157 tolAbs_ = ssmd->tolAbs_,
158 xNormL2_ = ssmd->xNormL2_,
159 dxNormL2Rel_ = ssmd->dxNormL2Rel_,
160 dxNormL2Abs_ = ssmd->dxNormL2Abs_,
161 computeNorms_ = ssmd->computeNorms_,
162 solutionStatus_ = ssmd->solutionStatus_;
163 output_ = ssmd->output_;
164 outputScreen_ = ssmd->outputScreen_;
165 isSynced_ = ssmd->isSynced_;
166 isInterpolated_ = ssmd->isInterpolated_;
167 accuracy_ = ssmd->accuracy_;
171 template<
class Scalar>
174 std::string name =
"Tempus::SolutionStateMetaData";
179 template<
class Scalar>
185 auto l_out = Teuchos::fancyOStream( out.
getOStream() );
186 l_out->setOutputToRootOnly(0);
187 *l_out << description() <<
"::describe:" << std::endl
188 <<
"time = " << time_ << std::endl
189 <<
"iStep = " << iStep_ << std::endl
190 <<
"dt = " << dt_ << std::endl
191 <<
"errorAbs = " << errorAbs_ << std::endl
192 <<
"errorRel = " << errorRel_ << std::endl
193 <<
"order = " << order_ << std::endl
194 <<
"nFailures = " << nFailures_ << std::endl
195 <<
"nRunningFailures = " << nRunningFailures_<< std::endl
196 <<
"nConsecutiveFailures = " << nConsecutiveFailures_ << std::endl
197 <<
"tolRel = " << tolRel_ << std::endl
198 <<
"tolAbs = " << tolAbs_ << std::endl
199 <<
"xNormL2 = " << xNormL2_ << std::endl
200 <<
"dxNormL2Rel = " << dxNormL2Rel_ << std::endl
201 <<
"dxNormL2Abs = " << dxNormL2Abs_ << std::endl
202 <<
"computeNorms = " << computeNorms_ << std::endl
203 <<
"solutionStatus = " <<
toString(solutionStatus_) << std::endl
204 <<
"output = " << output_ << std::endl
205 <<
"outputScreen = " << outputScreen_ << std::endl
206 <<
"isSynced = " << isSynced_ << std::endl
207 <<
"isInterpolated = " << isInterpolated_ << std::endl
208 <<
"accuracy = " << accuracy_ << std::endl;
213 #endif // Tempus_SolutionStateMetaData_impl_hpp
const std::string toString(const Status status)
Convert Status to string.
TEUCHOS_DEPRECATED RCP< T > rcp(T *p, Dealloc_T dealloc, bool owns_mem)
Status
Status for the Integrator, the Stepper and the SolutionState.
RCP< std::basic_ostream< char_type, traits_type > > getOStream()