mirror of
https://github.com/OPM/opm-simulators.git
synced 2025-02-25 18:55:30 -06:00
fixed: unused variable warning without MPI
This commit is contained in:
parent
3f89b95440
commit
76eab9e160
@ -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 );
|
||||||
|
Loading…
Reference in New Issue
Block a user