diff --git a/opm/simulators/flow/RSTConv.cpp b/opm/simulators/flow/RSTConv.cpp index 316863b65..af72bd143 100644 --- a/opm/simulators/flow/RSTConv.cpp +++ b/opm/simulators/flow/RSTConv.cpp @@ -113,19 +113,26 @@ void RSTConv::gatherAndAccumulate(const std::vector& lIdx, } } -template -using BFV = Dune::BlockVector>; +template +using BFV = Dune::BlockVector>; -#define INSTANCE(SIZE) \ - template void RSTConv::update>(const BFV&); \ - template void RSTConv::gatherAndAccumulate>(const std::vector&, \ - const BFV&, int); +#define INSTANTIATE(T,SIZE) \ + template void RSTConv::update(const BFV&); \ + template void RSTConv::gatherAndAccumulate(const std::vector&, \ + const BFV&, int); -INSTANCE(1) -INSTANCE(2) -INSTANCE(3) -INSTANCE(4) -INSTANCE(5) -INSTANCE(6) +#define INSTANTIATE_TYPE(T) \ + INSTANTIATE(T,1) \ + INSTANTIATE(T,2) \ + INSTANTIATE(T,3) \ + INSTANTIATE(T,4) \ + INSTANTIATE(T,5) \ + INSTANTIATE(T,6) + +INSTANTIATE_TYPE(double) + +#if FLOW_INSTANTIATE_FLOAT +INSTANTIATE_TYPE(float) +#endif } // namespace Opm