Turn mapping events off on coarse levels
- We basically will go from here:
peano::MappingSpecification exahype::mappings::XYZ::enterCellSpecification(int level) const { return peano::MappingSpecification( peano::MappingSpecification::WholeTree, peano::MappingSpecification::RunConcurrentlyOnFineGrid,true); }
peano::MappingSpecification exahype::mappings::XYZ::enterCellSpecification(int level) const { if (level < exahype::solvers::getCoarsestMeshLevelOfAllSolvers()) { return peano::MappingSpecification( peano::MappingSpecification::Nop, peano::MappingSpecification::RunConcurrentlyOnFineGrid,true); } return peano::MappingSpecification( peano::MappingSpecification::WholeTree, peano::MappingSpecification::RunConcurrentlyOnFineGrid,true); }
- Second, we should set the alterState bool only to true in mappings where this is necessary, i.e., where we perform reductions or use temporary variables.