mirror of
https://github.com/OPM/opm-simulators.git
synced 2025-02-25 18:55:30 -06:00
Add a generic (throwing) tpfa_loc_trans_compute_().
Without this, we may have link errors with CpGrid, since only an UnstructuredGrid specialization was provided.
This commit is contained in:
parent
012485e139
commit
e1af08c5d2
@ -280,10 +280,18 @@ namespace Opm
|
||||
}
|
||||
}
|
||||
|
||||
template <class GridType>
|
||||
inline void DerivedGeology::tpfa_loc_trans_compute_(const GridType& /* grid */,
|
||||
const double* /* perm */,
|
||||
Vector& /* hTrans */)
|
||||
{
|
||||
OPM_THROW(std::logic_error, "No generic implementation exists for tpfa_loc_trans_compute_().");
|
||||
}
|
||||
|
||||
template <>
|
||||
inline void DerivedGeology::tpfa_loc_trans_compute_<UnstructuredGrid>(const UnstructuredGrid &grid,
|
||||
inline void DerivedGeology::tpfa_loc_trans_compute_<UnstructuredGrid>(const UnstructuredGrid& grid,
|
||||
const double* perm,
|
||||
Vector &hTrans){
|
||||
Vector& hTrans){
|
||||
|
||||
// Using Local coordinate system for the transmissibility calculations
|
||||
// hTrans(cellFaceIdx) = K(cellNo,j) * sum( C(:,i) .* N(:,j), 2) / sum(C.*C, 2)
|
||||
|
Loading…
Reference in New Issue
Block a user