Added method to query for number of components.

This commit is contained in:
Joakim Hove
2016-02-28 23:04:30 +01:00
parent 32dbe00516
commit 84a827e847
3 changed files with 15 additions and 0 deletions

View File

@@ -55,9 +55,11 @@ BOOST_AUTO_TEST_CASE(TestRegisterDefaults) {
{
auto pressure = container.getCellData("PRESSURE");
BOOST_CHECK_EQUAL( pressure.size() , 1000U );
BOOST_CHECK_EQUAL( container.numCellDataComponents( "PRESSURE") , 1U);
auto sat = container.getCellData("SATURATION");
BOOST_CHECK_EQUAL( sat.size() , 1000U*2 );
BOOST_CHECK_EQUAL( container.numCellDataComponents( "SATURATION") , 2U);
}
{