mirror of
https://github.com/OPM/opm-simulators.git
synced 2026-10-25 15:10:09 -05:00
Adapt to ElementChunks now requiring partition argument.
This commit is contained in:
1 parent
24c3d49a9d
commit
8defaf94a2
2 files changed
+5
-3
No files matched your search
@@ -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;
|
||||
|
||||
Reference in new issue
Block a user