changed: hide the templated 'has' and 'get' interfaces in FieldPropsManager

motivation: an upcoming parallel frontend to the field props manager.
templated functions cannot be virtualized, and thus having these exposed
would give a great chance of confusing the users in the downstream
code, where properties would be caught from the (potentially) empty
backend instead of from the frontend.
This commit is contained in:
Arne Morten Kvarving
2020-01-27 15:29:43 +01:00
parent eed3c290b3
commit ae10af208f
17 changed files with 139 additions and 142 deletions

View File

@@ -296,10 +296,10 @@ BOOST_AUTO_TEST_CASE(MULTREGT_COPY_MULTNUM) {
Opm::EclipseGrid eg(deck);
Opm::FieldPropsManager fp(deck, eg, tm);
BOOST_CHECK_NO_THROW(fp.has<int>("FLUXNUM"));
BOOST_CHECK_NO_THROW(fp.has<int>("MULTNUM"));
const auto& fdata = fp.get_global<int>("FLUXNUM");
const auto& mdata = fp.get_global<int>("MULTNUM");
BOOST_CHECK_NO_THROW(fp.has_int("FLUXNUM"));
BOOST_CHECK_NO_THROW(fp.has_int("MULTNUM"));
const auto& fdata = fp.get_global_int("FLUXNUM");
const auto& mdata = fp.get_global_int("MULTNUM");
std::vector<int> data = { 1, 2, 1, 2, 3, 4, 3, 4 };
for (auto i = 0; i < 2 * 2 * 2; i++) {