From e1af08c5d264d388e1a2cc6a770f1ced913c91fb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Atgeirr=20Fl=C3=B8=20Rasmussen?= Date: Wed, 17 Dec 2014 10:47:16 +0100 Subject: [PATCH] Add a generic (throwing) tpfa_loc_trans_compute_(). Without this, we may have link errors with CpGrid, since only an UnstructuredGrid specialization was provided. --- opm/autodiff/GeoProps.hpp | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/opm/autodiff/GeoProps.hpp b/opm/autodiff/GeoProps.hpp index f824b5113..4a20814a6 100644 --- a/opm/autodiff/GeoProps.hpp +++ b/opm/autodiff/GeoProps.hpp @@ -280,10 +280,18 @@ namespace Opm } } + template + 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_(const UnstructuredGrid &grid, + inline void DerivedGeology::tpfa_loc_trans_compute_(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)