diff --git a/opm/autodiff/ParallelDebugOutput.hpp b/opm/autodiff/ParallelDebugOutput.hpp index 4624724b8..1085418ea 100644 --- a/opm/autodiff/ParallelDebugOutput.hpp +++ b/opm/autodiff/ParallelDebugOutput.hpp @@ -368,10 +368,10 @@ namespace Opm if( isIORank ) { // add missing data to global state - for (const auto& pair : localState.cellData()) { - const std::string& key = pair.first; + for (const auto& pair : localState.cellData()) { + const std::string& key = pair.first; if (!globalState_.hasCellData( key )) { - globalState_.registerCellData( key , localState.numCellDataComponents( key )); + globalState_.registerCellData( key , localState.numCellDataComponents( key )); } } @@ -432,7 +432,7 @@ namespace Opm for( size_t i=0; i