cleanup and removing wrong instructions

This commit is contained in:
Elyes Ahmed 2024-09-26 10:27:13 +02:00
parent 6c2e957df0
commit 265c7b8520
2 changed files with 10 additions and 5 deletions

View File

@ -17,9 +17,15 @@
along with OPM. If not, see <http://www.gnu.org/licenses/>.
*/
#include <config.h>
// 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 <dune/alugrid/grid.hh>
#include <opm/simulators/flow/Main.hpp>

View File

@ -325,8 +325,7 @@ protected:
factory_ = std::make_unique<Factory>();
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;