mirror of
https://github.com/OPM/opm-simulators.git
synced 2026-10-13 17:32:03 -05:00
Split Grid Distribution Out to Helper Functions
Mostly to reduce the number of nested scopes in doLoadBalance_() and to make the data flow a little easier to track for human readers. While here, also use down-casts to pointer instead of references. Doing so replaces try/catch blocks with simpler if/else blocks. Reimplement face transmissibility calculation/extraction loop in terms of helper functions elements() and intersections().
This commit is contained in:
1 parent
4e5745bf4a
commit
7537d7ab95
3 files changed
+317
-179
No files matched your search
@@ -180,7 +180,7 @@ protected:
|
||||
globalTrans_->update(false);
|
||||
}
|
||||
|
||||
double getTransmissibility(unsigned I, unsigned J) override
|
||||
double getTransmissibility(unsigned I, unsigned J) const override
|
||||
{
|
||||
return globalTrans_->transmissibility(I,J);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user