mirror of
https://github.com/OPM/opm-simulators.git
synced 2025-01-16 15:01:55 -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()) {
|
||||
unsigned long buffer_size = buffer.size();
|
||||
|
||||
#ifdef HAVE_MPI
|
||||
unsigned long buffer_size = buffer.size();
|
||||
MPI_Bcast(&buffer_size, 1, MPI_UNSIGNED_LONG, collectToIORank_.ioRank, MPI_COMM_WORLD);
|
||||
if (!collectToIORank_.isIORank())
|
||||
buffer.resize( buffer_size );
|
||||
|
Loading…
Reference in New Issue
Block a user