Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion src/reduced_basis/rb_parameters.C
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,8 @@ RBParameters::RBParameters() :
{
}

RBParameters::RBParameters(const std::map<std::string, Real> & parameter_map)
RBParameters::RBParameters(const std::map<std::string, Real> & parameter_map) :
_n_steps(1)
{
// Backwards compatible support for constructing an RBParameters
// object from a map<string, Real>. We store a single entry in each
Expand Down
4 changes: 4 additions & 0 deletions tests/utils/rb_parameters_test.C
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,10 @@ public:
CPPUNIT_ASSERT_EQUAL(params.get_value("a"), 1.);
CPPUNIT_ASSERT_EQUAL(params.get_value("b"), 2.);
CPPUNIT_ASSERT_EQUAL(params.get_value("c"), 3.);

// Test that RBParameters objects constructed with the old
// constructor have the correct number of steps.
CPPUNIT_ASSERT_EQUAL(params.n_steps(), 1u);
}

void testIterators()
Expand Down