diff --git a/flow/flow_blackoil_alugrid.cpp b/flow/flow_blackoil_alugrid.cpp index 6432a2efc..f18f15865 100644 --- a/flow/flow_blackoil_alugrid.cpp +++ b/flow/flow_blackoil_alugrid.cpp @@ -17,9 +17,15 @@ along with OPM. If not, see . */ #include -// The default in dune-ALUGrird is "DISABLE_ALUGRID_SFC_ORDERING is false" -#undef DISABLE_ALUGRID_SFC_ORDERING -#undef USE_ALUGRID_SFC_ORDERING +// By default, dune-ALUGrid uses Space-Filling Curve (SFC) ordering +// for cells to optimize data access patterns for adaptive mesh refinements/coarsening. +// However, if you want to use Cartesian ordering, as is used in OPM, you +// can switch to it by defining the macro #define DISABLE_SFC_ORDERING 1. +// This will change the default cell order to Cartesian. +// Note that this option is not available for pre-built or installed versions of dune-ALUGrid. +// To enable changig to Cartesian ordering, you will need to rebuild dune-ALUGrid from source, ensuring +// the build configuration allows disabling SFC ordering from OPM. +// For more details, refer to the files gridfactory.hh and aluinline.hh located in the dune-alugrid/3d/ #include #include diff --git a/opm/simulators/flow/AluGridVanguard.hpp b/opm/simulators/flow/AluGridVanguard.hpp index 807455b8d..5646db1b4 100644 --- a/opm/simulators/flow/AluGridVanguard.hpp +++ b/opm/simulators/flow/AluGridVanguard.hpp @@ -325,8 +325,7 @@ protected: factory_ = std::make_unique(); grid_ = factory_->convert(*equilGrid_, cartesianCellId_, ordering_); - OpmLog::warning("Space Filling Curve Ordering (SFCO) is used"); - OpmLog::warning("Add '#define DISABLE_ALUGRID_SFC_ORDERING 1' to disable SFC reordering"); + OpmLog::warning("Space Filling Curve (SFC) ordering is enabled: see flow_blackoil_alugrid for more informations on disabling/enabling SFC reordering"); equilGridToGrid_.resize(ordering_.size()); for (std::size_t index = 0; index < ordering_.size(); ++index) { equilGridToGrid_[ordering_[index]] = index;