Add messages about grid creation
This commit is contained in:
parent
36e03cf6b9
commit
32ac90cb5e
@ -26,6 +26,8 @@
|
||||
#include <tuple>
|
||||
#include <functional>
|
||||
|
||||
#include <fmt/format.h>
|
||||
|
||||
#include <opm/common/OpmLog/OpmLog.hpp>
|
||||
#include <opm/common/utility/numeric/calculateCellVol.hpp>
|
||||
|
||||
@ -209,7 +211,6 @@ EclipseGrid::EclipseGrid(const Deck& deck, const int * actnum)
|
||||
m_multzMode(PinchMode::ModeEnum::TOP),
|
||||
m_pinchGapMode(PinchMode::ModeEnum::GAP)
|
||||
{
|
||||
OpmLog::info("Creating grid");
|
||||
if (deck.hasKeyword("GDFILE")){
|
||||
|
||||
if (deck.hasKeyword("ACTNUM")){
|
||||
@ -325,6 +326,7 @@ EclipseGrid::EclipseGrid(const Deck& deck, const int * actnum)
|
||||
}
|
||||
|
||||
void EclipseGrid::initGridFromEGridFile(Opm::EclIO::EclFile& egridfile, std::string fileName){
|
||||
OpmLog::info(fmt::format("Creating grid from: {} ", fileName));
|
||||
|
||||
if (!egridfile.hasKey("GRIDHEAD")) {
|
||||
throw std::invalid_argument("file: " + fileName + " is not a valid egrid file, GRIDHEAD not found");
|
||||
@ -509,7 +511,7 @@ EclipseGrid::EclipseGrid(const Deck& deck, const int * actnum)
|
||||
}
|
||||
|
||||
void EclipseGrid::initDVDEPTHZGrid(const Deck& deck) {
|
||||
|
||||
OpmLog::info("Creating grid from keywords DXV, DYV, DZV and DEPTHZ");
|
||||
const std::vector<double>& DXV = deck.getKeyword<ParserKeywords::DXV>().getSIDoubleData();
|
||||
const std::vector<double>& DYV = deck.getKeyword<ParserKeywords::DYV>().getSIDoubleData();
|
||||
const std::vector<double>& DZV = deck.getKeyword<ParserKeywords::DZV>().getSIDoubleData();
|
||||
@ -531,6 +533,7 @@ EclipseGrid::EclipseGrid(const Deck& deck, const int * actnum)
|
||||
}
|
||||
|
||||
void EclipseGrid::initDTOPSGrid(const Deck& deck) {
|
||||
OpmLog::info("Creating grid from keywords DX, DY, DZ and TOPS");
|
||||
|
||||
std::vector<double> DX = EclipseGrid::createDVector( this->getNXYZ(), 0 , "DX" , "DXV" , deck);
|
||||
std::vector<double> DY = EclipseGrid::createDVector( this->getNXYZ(), 1 , "DY" , "DYV" , deck);
|
||||
@ -943,6 +946,7 @@ EclipseGrid::EclipseGrid(const Deck& deck, const int * actnum)
|
||||
const std::vector<double>& dthetav = deck.getKeyword<ParserKeywords::DTHETAV>().getSIDoubleData();
|
||||
const std::vector<double>& dzv = deck.getKeyword<ParserKeywords::DZV>().getSIDoubleData();
|
||||
const std::vector<double>& tops = deck.getKeyword<ParserKeywords::TOPS>().getSIDoubleData();
|
||||
OpmLog::info("Creating cylindrical grid from keywords DRV, DTHETAV, DZV and TOPS");
|
||||
|
||||
if (drv.size() != this->getNX())
|
||||
throw std::invalid_argument("DRV keyword should have exactly " + std::to_string( this->getNX() ) + " elements");
|
||||
@ -1079,7 +1083,9 @@ EclipseGrid::EclipseGrid(const Deck& deck, const int * actnum)
|
||||
throw std::invalid_argument("ACTNUM vector has wrong size");
|
||||
|
||||
actnum = actnumVector.data();
|
||||
}
|
||||
OpmLog::info("Creating cornerpoint grid from keywords ZCORN, COORD and ACTNUM");
|
||||
} else
|
||||
OpmLog::info("Creating cornerpoint grid from keywords ZCORN and COORD");
|
||||
|
||||
initCornerPointGrid( coord , zcorn, actnum, nullptr );
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user