13 namespace Tempus_Unit_Test {
17 using Teuchos::rcp_const_cast;
18 using Teuchos::rcp_dynamic_cast;
29 te->setName(
"TestName");
34 te->getAbsTol(), std::numeric_limits<double>::epsilon() * 100.0, 1.0e-14);
43 TEST_COMPARE(te->indexToNextEvent(0), ==, te->getDefaultIndex());
44 TEST_COMPARE(te->indexOfNextEvent(0), ==, te->getDefaultIndex());
49 TEST_COMPARE(te->indexToNextEvent(1), ==, te->getDefaultIndex());
50 TEST_COMPARE(te->indexOfNextEvent(1), ==, te->getDefaultIndex());
60 auto pl = teb->getValidParameters();
63 TEST_COMPARE(pl->get<std::string>(
"Name"), ==,
"TimeEventBase");
66 std::ostringstream unusedParameters;
67 pl->unused(unusedParameters);
#define TEST_COMPARE(v1, comp, v2)
#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)
This class defines time events which can be used to "trigger" an action.