Adapt to ElementChunks now requiring partition argument.

This commit is contained in:
Atgeirr Flø Rasmussen committed 2025-02-21 11:14:16 +01:00
1 parent 24c3d49a9d
commit 8defaf94a2
2 files changed
+5 -3

No files matched your search

+4 -2
View File
@@ -74,7 +74,9 @@ class FIBlackOilModel : public BlackOilModel<TypeTag>
public:
explicit FIBlackOilModel(Simulator& simulator)
: BlackOilModel<TypeTag>(simulator)
, element_chunks_(this->gridView_, ThreadManager::maxThreads())
, element_chunks_(this->gridView_,
Dune::Partitions::all,
ThreadManager::maxThreads())
{
}
@@ -194,7 +196,7 @@ public:
}
protected:
ElementChunks<GridView> element_chunks_;
ElementChunks<GridView, Dune::Partitions::All> element_chunks_;
};
} // namespace Opm
#endif // FI_BLACK_OIL_MODEL_HPP
@@ -313,7 +313,7 @@ update(bool global, const TransUpdateQuantities update_quantities,
#ifdef _OPENMP
#pragma omp parallel for
#endif
for (const auto& chunk : ElementChunks(gridView_, num_threads)) {
for (const auto& chunk : ElementChunks(gridView_, Dune::Partitions::all, num_threads)) {
for (const auto& elem : chunk) {
FaceInfo inside;
FaceInfo outside;