Merge pull request #808 from atgeirr/fix-warning

Suppress a warning in serial mode.
This commit is contained in:
Bård Skaflestad 2015-05-27 12:49:46 +02:00
commit 4545ab5b31

View File

@ -93,9 +93,9 @@ namespace Opm
protected: protected:
template <class Iterator> template <class Iterator>
double euclidianNormSquared( Iterator it, const Iterator end, double euclidianNormSquared( Iterator it, const Iterator end, int num_components = 1 ) const
int num_components=1 ) const
{ {
static_cast<void>(num_components); // Suppress warning in the serial case.
#if HAVE_MPI #if HAVE_MPI
if ( parallel_information_.type() == typeid(ParallelISTLInformation) ) if ( parallel_information_.type() == typeid(ParallelISTLInformation) )
{ {