mirror of
https://github.com/OPM/opm-simulators.git
synced 2025-02-25 18:55:30 -06:00
MultisegmentWellEquations: optionally instantiate for float
This commit is contained in:
parent
fa84eb65c7
commit
6f7660905e
@ -397,27 +397,34 @@ extractCPRPressureMatrix(PressureMatrix& jacobian,
|
||||
}
|
||||
}
|
||||
|
||||
#define INSTANCE(numWellEq, numEq) \
|
||||
template class MultisegmentWellEquations<double,numWellEq,numEq>; \
|
||||
template void MultisegmentWellEquations<double,numWellEq,numEq>:: \
|
||||
extract(Linear::IstlSparseMatrixAdapter<MatrixBlock<double,numEq,numEq>>&) const; \
|
||||
template void MultisegmentWellEquations<double,numWellEq,numEq>:: \
|
||||
extractCPRPressureMatrix(Dune::BCRSMatrix<MatrixBlock<double,1,1>>&, \
|
||||
const MultisegmentWellEquations<double,numWellEq,numEq>::BVector&, \
|
||||
const int, \
|
||||
const bool, \
|
||||
const WellInterfaceGeneric<double>&, \
|
||||
const int, \
|
||||
const WellState<double>&) const;
|
||||
#define INSTANTIATE(T, numWellEq, numEq) \
|
||||
template class MultisegmentWellEquations<T,numWellEq,numEq>; \
|
||||
template void MultisegmentWellEquations<T,numWellEq,numEq>:: \
|
||||
extract(Linear::IstlSparseMatrixAdapter<MatrixBlock<T,numEq,numEq>>&) const; \
|
||||
template void MultisegmentWellEquations<T,numWellEq,numEq>:: \
|
||||
extractCPRPressureMatrix(Dune::BCRSMatrix<MatrixBlock<T,1,1>>&, \
|
||||
const MultisegmentWellEquations<T,numWellEq,numEq>::BVector&, \
|
||||
const int, \
|
||||
const bool, \
|
||||
const WellInterfaceGeneric<T>&, \
|
||||
const int, \
|
||||
const WellState<T>&) const;
|
||||
|
||||
INSTANCE(2,1)
|
||||
INSTANCE(2,2)
|
||||
INSTANCE(2,6)
|
||||
INSTANCE(3,2)
|
||||
INSTANCE(3,3)
|
||||
INSTANCE(3,4)
|
||||
INSTANCE(4,3)
|
||||
INSTANCE(4,4)
|
||||
INSTANCE(4,5)
|
||||
#define INSTANTIATE_TYPE(T) \
|
||||
INSTANTIATE(T,2,1) \
|
||||
INSTANTIATE(T,2,2) \
|
||||
INSTANTIATE(T,2,6) \
|
||||
INSTANTIATE(T,3,2) \
|
||||
INSTANTIATE(T,3,3) \
|
||||
INSTANTIATE(T,3,4) \
|
||||
INSTANTIATE(T,4,3) \
|
||||
INSTANTIATE(T,4,4) \
|
||||
INSTANTIATE(T,4,5)
|
||||
|
||||
INSTANTIATE_TYPE(double)
|
||||
|
||||
#if FLOW_INSTANTIATE_FLOAT
|
||||
INSTANTIATE_TYPE(float)
|
||||
#endif
|
||||
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user