Make function in header file inline.

This commit is contained in:
Atgeirr Flø Rasmussen 2014-04-15 19:47:04 +02:00
parent bfd3246d33
commit f0692b14e9

View File

@ -22,7 +22,7 @@ double faceArea(const Dune::CpGrid&, int);
namespace namespace
{ {
#ifdef HAVE_DUNE_CORNERPOINT #ifdef HAVE_DUNE_CORNERPOINT
const double* multiplyFaceNormalWithArea(const Dune::CpGrid& grid, int face_index, const double* in) inline const double* multiplyFaceNormalWithArea(const Dune::CpGrid& grid, int face_index, const double* in)
{ {
int d=Opm::UgGridHelpers::dimensions(grid); int d=Opm::UgGridHelpers::dimensions(grid);
double* out=new double[d]; double* out=new double[d];