fixed: unused variable warning without MPI

This commit is contained in:
Arne Morten Kvarving 2019-06-19 11:57:56 +02:00
parent 3f89b95440
commit 76eab9e160

View File

@ -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 );