mirror of
https://github.com/OPM/opm-simulators.git
synced 2025-01-27 18:06:26 -06:00
VFPInjProperties: optionally instantiate for float
This commit is contained in:
parent
aaf0e81027
commit
6a71f139b9
@ -125,30 +125,37 @@ EvalWell VFPInjProperties<Scalar>::bhp(const int table_id,
|
||||
return bhp;
|
||||
}
|
||||
|
||||
template class VFPInjProperties<double>;
|
||||
#define INSTANTIATE(T,...) \
|
||||
template __VA_ARGS__ \
|
||||
VFPInjProperties<T>::bhp(const int, \
|
||||
const __VA_ARGS__&, \
|
||||
const __VA_ARGS__&, \
|
||||
const __VA_ARGS__&, \
|
||||
const T) const;
|
||||
|
||||
#define INSTANCE(...) \
|
||||
template __VA_ARGS__ VFPInjProperties<double>::bhp<__VA_ARGS__>(const int, \
|
||||
const __VA_ARGS__&, \
|
||||
const __VA_ARGS__&, \
|
||||
const __VA_ARGS__&, \
|
||||
const double) const;
|
||||
#define INSTANTIATE_TYPE(T) \
|
||||
template class VFPInjProperties<T>; \
|
||||
INSTANTIATE(T,DenseAd::Evaluation<T, -1, 4u>) \
|
||||
INSTANTIATE(T,DenseAd::Evaluation<T, -1, 5u>) \
|
||||
INSTANTIATE(T,DenseAd::Evaluation<T, -1, 6u>) \
|
||||
INSTANTIATE(T,DenseAd::Evaluation<T, -1, 7u>) \
|
||||
INSTANTIATE(T,DenseAd::Evaluation<T, -1, 8u>) \
|
||||
INSTANTIATE(T,DenseAd::Evaluation<T, -1, 9u>) \
|
||||
INSTANTIATE(T,DenseAd::Evaluation<T, -1, 10u>) \
|
||||
INSTANTIATE(T,DenseAd::Evaluation<T, -1, 11u>) \
|
||||
INSTANTIATE(T,DenseAd::Evaluation<T, 3, 0u>) \
|
||||
INSTANTIATE(T,DenseAd::Evaluation<T, 4, 0u>) \
|
||||
INSTANTIATE(T,DenseAd::Evaluation<T, 5, 0u>) \
|
||||
INSTANTIATE(T,DenseAd::Evaluation<T, 6, 0u>) \
|
||||
INSTANTIATE(T,DenseAd::Evaluation<T, 7, 0u>) \
|
||||
INSTANTIATE(T,DenseAd::Evaluation<T, 8, 0u>) \
|
||||
INSTANTIATE(T,DenseAd::Evaluation<T, 9, 0u>) \
|
||||
INSTANTIATE(T,DenseAd::Evaluation<T, 10, 0u>)
|
||||
|
||||
INSTANCE(DenseAd::Evaluation<double, -1, 4u>)
|
||||
INSTANCE(DenseAd::Evaluation<double, -1, 5u>)
|
||||
INSTANCE(DenseAd::Evaluation<double, -1, 6u>)
|
||||
INSTANCE(DenseAd::Evaluation<double, -1, 7u>)
|
||||
INSTANCE(DenseAd::Evaluation<double, -1, 8u>)
|
||||
INSTANCE(DenseAd::Evaluation<double, -1, 9u>)
|
||||
INSTANCE(DenseAd::Evaluation<double, -1, 10u>)
|
||||
INSTANCE(DenseAd::Evaluation<double, -1, 11u>)
|
||||
INSTANCE(DenseAd::Evaluation<double, 3, 0u>)
|
||||
INSTANCE(DenseAd::Evaluation<double, 4, 0u>)
|
||||
INSTANCE(DenseAd::Evaluation<double, 5, 0u>)
|
||||
INSTANCE(DenseAd::Evaluation<double, 6, 0u>)
|
||||
INSTANCE(DenseAd::Evaluation<double, 7, 0u>)
|
||||
INSTANCE(DenseAd::Evaluation<double, 8, 0u>)
|
||||
INSTANCE(DenseAd::Evaluation<double, 9, 0u>)
|
||||
INSTANCE(DenseAd::Evaluation<double, 10, 0u>)
|
||||
INSTANTIATE_TYPE(double)
|
||||
|
||||
#if FLOW_INSTANTIATE_FLOAT
|
||||
INSTANTIATE_TYPE(float)
|
||||
#endif
|
||||
|
||||
} //Namespace Opm
|
||||
|
Loading…
Reference in New Issue
Block a user