mirror of
https://github.com/OPM/opm-simulators.git
synced 2025-02-25 18:55:30 -06:00
BlackoilAquiferModel: use Scalar type
This commit is contained in:
@@ -362,7 +362,7 @@ void BlackoilAquiferModel<TypeTag>::computeConnectionAreaFraction() const
|
|||||||
|
|
||||||
maxAquID = this->simulator_.vanguard().grid().comm().max(maxAquID);
|
maxAquID = this->simulator_.vanguard().grid().comm().max(maxAquID);
|
||||||
|
|
||||||
auto totalConnArea = std::vector<double>(maxAquID, 0.0);
|
auto totalConnArea = std::vector<Scalar>(maxAquID, 0.0);
|
||||||
for (const auto& aquifer : this->aquifers) {
|
for (const auto& aquifer : this->aquifers) {
|
||||||
totalConnArea[aquifer->aquiferID() - 1] += aquifer->totalFaceArea();
|
totalConnArea[aquifer->aquiferID() - 1] += aquifer->totalFaceArea();
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user