mirror of
https://github.com/OPM/opm-simulators.git
synced 2025-02-25 18:55:30 -06:00
Use old style traits class approach to check for face tag support.
Old version failed due to a gcc compiler bug https://gcc.gnu.org/bugzilla/show_bug.cgi?id=77446 with error: "non-constant condition for static assertion"
This commit is contained in:
@@ -26,7 +26,8 @@ BlackoilAquiferModel<TypeTag>::BlackoilAquiferModel(Simulator& simulator)
|
||||
: simulator_(simulator)
|
||||
{
|
||||
// Grid needs to support Facetag
|
||||
assert(supportsFaceTag(simulator.vanguard().grid()));
|
||||
using Grid = std::remove_const_t<std::remove_reference_t<decltype(simulator.vanguard().grid())>>;
|
||||
static_assert(SupportsFaceTag<Grid>::value, "Grid has to support assumptions about face tag.");
|
||||
|
||||
init();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user