mirror of
https://github.com/OPM/opm-simulators.git
synced 2025-02-25 18:55:30 -06:00
Get compressed to cartesian mapping and depths from the vanguard
This commit is contained in:
@@ -18,7 +18,6 @@
|
||||
along with OPM. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
#include <opm/grid/utility/cartesianToCompressed.hpp>
|
||||
namespace Opm
|
||||
{
|
||||
|
||||
@@ -170,20 +169,15 @@ BlackoilAquiferModel<TypeTag>::init()
|
||||
throw std::runtime_error("Aquifers currently do not work in parallel.");
|
||||
|
||||
// Get all the carter tracy aquifer properties data and put it in aquifers vector
|
||||
const int number_of_cells = simulator_.gridView().size(0);
|
||||
|
||||
cartesian_to_compressed_ = cartesianToCompressed(number_of_cells,
|
||||
this->simulator_.vanguard().grid().globalCell().data());
|
||||
|
||||
const auto& connections = aquifer.connections();
|
||||
for (const auto& aq : aquifer.ct()) {
|
||||
aquifers_CarterTracy.emplace_back(connections[aq.aquiferID],
|
||||
cartesian_to_compressed_, this->simulator_, aq);
|
||||
this->simulator_, aq);
|
||||
}
|
||||
|
||||
for (const auto& aq : aquifer.fetp()) {
|
||||
aquifers_Fetkovich.emplace_back(connections[aq.aquiferID],
|
||||
cartesian_to_compressed_, this->simulator_, aq);
|
||||
this->simulator_, aq);
|
||||
}
|
||||
}
|
||||
template <typename TypeTag>
|
||||
|
||||
Reference in New Issue
Block a user