14 namespace Tempus_Unit_Test {
18 using Teuchos::rcp_const_cast;
19 using Teuchos::rcp_dynamic_cast;
30 te->setName(
"TestName");
35 te->getAbsTol(), std::numeric_limits<double>::epsilon() * 100.0, 1.0e-14);
44 TEST_COMPARE(te->indexToNextEvent(0), ==, te->getDefaultIndex());
45 TEST_COMPARE(te->indexOfNextEvent(0), ==, te->getDefaultIndex());
50 TEST_COMPARE(te->indexToNextEvent(1), ==, te->getDefaultIndex());
51 TEST_COMPARE(te->indexOfNextEvent(1), ==, te->getDefaultIndex());
61 auto pl = teb->getValidParameters();
64 TEST_COMPARE(pl->get<std::string>(
"Name"), ==,
"TimeEventBase");
67 std::ostringstream unusedParameters;
68 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.