diff --git a/opm/autodiff/RedistributeDataHandles.hpp b/opm/autodiff/RedistributeDataHandles.hpp index 0e3ba6146..3a7b94f29 100644 --- a/opm/autodiff/RedistributeDataHandles.hpp +++ b/opm/autodiff/RedistributeDataHandles.hpp @@ -358,7 +358,7 @@ void distributeGridAndData( Dune::CpGrid& grid, typedef Dune::CpGrid::ParallelIndexSet IndexSet; typedef IndexSet::IndexPair Pair; const IndexSet& local_indices = grid.getCellIndexSet(); - for(auto index : local_indices) + for ( auto index : local_indices ) { distributed_material_law_manager->materialLawParamsPointer(index.local()) = material_law_manager->materialLawParamsPointer(index.global());