Merge pull request #808 from atgeirr/fix-warning
Suppress a warning in serial mode.
This commit is contained in:
commit
4545ab5b31
@ -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) )
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user