12 #include "Thyra_DefaultSpmdVectorSpace.hpp"
15 #include "Tempus_Stepper_ErrorNorm.hpp"
17 #include "../TestModels/DahlquistTestModel.hpp"
19 namespace Tempus_Unit_Test {
27 Thyra::defaultSpmdVectorSpace<double>(N);
28 auto x = Thyra::createMember(xSpace);
29 auto xNext = Thyra::createMember(xSpace);
30 auto eVec = Thyra::createMember(xSpace);
32 auto tol = Tempus::numericalTol<double>();
35 Thyra::assign(x.ptr(), 0.0);
36 Thyra::assign(xNext.ptr(), 0.0);
37 Thyra::assign(eVec.ptr(), 0.0);
38 double rmsNorm = eNorm->computeWRMSNorm(x, xNext, eVec);
41 Thyra::assign(x.ptr(), 1.0);
42 Thyra::assign(xNext.ptr(), 1.0 + tol);
43 Thyra::assign(eVec.ptr(), tol);
44 rmsNorm = eNorm->computeWRMSNorm(x, xNext, eVec);
53 Thyra::defaultSpmdVectorSpace<double>(3);
54 auto x = Thyra::createMember(xSpace);
56 auto tol = Tempus::numericalTol<double>();
59 Thyra::assign(x.ptr(), 0.0);
60 double norm = eNorm->errorNorm(x);
63 Thyra::assign(x.ptr(), 1.0);
64 norm = eNorm->errorNorm(x);
#define TEST_FLOATING_EQUALITY(v1, v2, tol)
TEUCHOS_DEPRECATED RCP< T > rcp(T *p, Dealloc_T dealloc, bool owns_mem)
TEUCHOS_UNIT_TEST(BackwardEuler, Default_Construction)
Stepper_ErrorNorm provides error norm calcualtions for variable time stepping.