mirror of
https://github.com/OPM/opm-simulators.git
synced 2026-07-29 18:47:55 -05:00
fixed: unused variable warning without MPI
This commit is contained in:
+1
-2
@@ -294,9 +294,8 @@ public:
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (collectToIORank_.isParallel()) {
|
if (collectToIORank_.isParallel()) {
|
||||||
unsigned long buffer_size = buffer.size();
|
|
||||||
|
|
||||||
#ifdef HAVE_MPI
|
#ifdef HAVE_MPI
|
||||||
|
unsigned long buffer_size = buffer.size();
|
||||||
MPI_Bcast(&buffer_size, 1, MPI_UNSIGNED_LONG, collectToIORank_.ioRank, MPI_COMM_WORLD);
|
MPI_Bcast(&buffer_size, 1, MPI_UNSIGNED_LONG, collectToIORank_.ioRank, MPI_COMM_WORLD);
|
||||||
if (!collectToIORank_.isIORank())
|
if (!collectToIORank_.isIORank())
|
||||||
buffer.resize( buffer_size );
|
buffer.resize( buffer_size );
|
||||||
|
|||||||
Reference in New Issue
Block a user