mirror of
https://github.com/OPM/opm-simulators.git
synced 2025-02-25 18:55:30 -06:00
Transmissibility: add a cache for centroids and use this in update()
The loops repeatedly calls distanceVector which recalculates the centroid for a cell. This is not a trivial calculation
This commit is contained in:
@@ -284,6 +284,7 @@ protected:
|
||||
const CartesianIndexMapper& cartMapper_;
|
||||
const Grid& grid_;
|
||||
std::function<std::array<double,dimWorld>(int)> centroids_;
|
||||
std::vector<std::array<double,dimWorld>> centroids_cache_;
|
||||
Scalar transmissibilityThreshold_;
|
||||
std::map<std::pair<unsigned, unsigned>, Scalar> transBoundary_;
|
||||
std::map<std::pair<unsigned, unsigned>, Scalar> thermalHalfTransBoundary_;
|
||||
|
||||
Reference in New Issue
Block a user