Only collect to globalData for mpi

This commit is contained in:
Tor Harald Sandve 2018-01-09 13:08:05 +01:00
parent 1969c3711d
commit abd3271f1c

View File

@ -148,7 +148,8 @@ public:
// collect all data to I/O rank and assign to sol
Opm::data::Solution localCellData = fip;
eclOutputModule_.assignToSolution(localCellData);
collectToIORank_.collect(localCellData);
if (collectToIORank_.isParallel())
collectToIORank_.collect(localCellData);
// write output on I/O rank
if (collectToIORank_.isIORank()) {