Added newline where natural.
This commit is contained in:
parent
d27e31ee84
commit
a2cfd9a525
@ -232,7 +232,7 @@ namespace Opm {
|
||||
void EclipseState::setMULTFLT(const DeckSection& section) {
|
||||
for (size_t index=0; index < section.count("MULTFLT"); index++) {
|
||||
const auto& faultsKeyword = section.getKeyword("MULTFLT" , index);
|
||||
OpmLog::info(OpmInputError::format("Applying {keyword} in {file} line {line}", faultsKeyword.location()));
|
||||
OpmLog::info(OpmInputError::format("\nApplying {keyword} in {file} line {line}", faultsKeyword.location()));
|
||||
InfoLogger logger("MULTFLT",3);
|
||||
for (auto iter = faultsKeyword.begin(); iter != faultsKeyword.end(); ++iter) {
|
||||
const auto& faultRecord = *iter;
|
||||
|
@ -328,7 +328,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));
|
||||
OpmLog::info(fmt::format("\nCreating grid from: {} ", fileName));
|
||||
|
||||
if (!egridfile.hasKey("GRIDHEAD")) {
|
||||
throw std::invalid_argument("file: " + fileName + " is not a valid egrid file, GRIDHEAD not found");
|
||||
@ -513,7 +513,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");
|
||||
OpmLog::info(fmt::format("\nCreating 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();
|
||||
@ -535,7 +535,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");
|
||||
OpmLog::info(fmt::format("\nCreating 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);
|
||||
@ -953,7 +953,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");
|
||||
OpmLog::info(fmt::format("\nCreating 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");
|
||||
@ -1084,16 +1084,16 @@ EclipseGrid::EclipseGrid(const Deck& deck, const int * actnum)
|
||||
std::vector<int> actnumVector;
|
||||
|
||||
if (deck.hasKeyword<ParserKeywords::ACTNUM>()) {
|
||||
const auto& actnumKeyword = deck.getKeyword<ParserKeywords::ACTNUM>();
|
||||
const auto& actnumKeyword = deck.getKeyword<ParserKeywords::ACTNUM>();
|
||||
actnumVector = actnumKeyword.getIntData();
|
||||
|
||||
if (actnumVector.size() != this->getCartesianSize())
|
||||
throw std::invalid_argument("ACTNUM vector has wrong size");
|
||||
|
||||
actnum = actnumVector.data();
|
||||
OpmLog::info("Creating cornerpoint grid from keywords ZCORN, COORD and ACTNUM");
|
||||
OpmLog::info(fmt::format("\nCreating cornerpoint grid from keywords ZCORN, COORD and ACTNUM"));
|
||||
} else
|
||||
OpmLog::info("Creating cornerpoint grid from keywords ZCORN and COORD");
|
||||
OpmLog::info(fmt::format("\nCreating cornerpoint grid from keywords ZCORN and COORD"));
|
||||
|
||||
initCornerPointGrid( coord , zcorn, actnum, nullptr );
|
||||
}
|
||||
|
@ -49,7 +49,7 @@ namespace Opm {
|
||||
|
||||
for (auto keyword_iter = faultKeywords.begin(); keyword_iter != faultKeywords.end(); ++keyword_iter) {
|
||||
const auto& faultsKeyword = *keyword_iter;
|
||||
OpmLog::info(OpmInputError::format("Loading faults from {keyword} in {file} line {line}", faultsKeyword->location()));
|
||||
OpmLog::info(OpmInputError::format("\nLoading faults from {keyword} in {file} line {line}", faultsKeyword->location()));
|
||||
|
||||
for (auto iter = faultsKeyword->begin(); iter != faultsKeyword->end(); ++iter) {
|
||||
const auto& faultRecord = *iter;
|
||||
|
@ -389,7 +389,7 @@ private:
|
||||
const auto& schedule_keyword = section.getKeyword<ParserKeywords::SCHEDULE>();
|
||||
const auto& location = schedule_keyword.location();
|
||||
current_file = location.filename;
|
||||
logger.info(fmt::format("Processing dynamic information from\n{} line {}", current_file, location.lineno));
|
||||
logger.info(fmt::format("\nProcessing dynamic information from\n{} line {}", current_file, location.lineno));
|
||||
if (restart_skip)
|
||||
logger.info(fmt::format("This is a restarted run - skipping until report step {} at {}", time_map.restart_offset(), Schedule::formatDate(time_map.restart_time())));
|
||||
|
||||
|
@ -413,7 +413,7 @@ void VFPProdTable::check(const DeckKeyword& keyword, const double table_scaling_
|
||||
const auto& location = keyword.location();
|
||||
OpmLog::warning(fmt::format("VFP table {0} has BHP versus THP not increasing in keyword VFPPROD.\n"
|
||||
"In {1} line {2}\n"
|
||||
"This may cause convergence issues due to switching between BHP and THP control.",
|
||||
"This may cause convergence issues due to switching between BHP and THP control.\n",
|
||||
m_table_num,
|
||||
location.filename,
|
||||
location.lineno));
|
||||
|
@ -51,7 +51,7 @@ TracerConfig::TracerConfig(const UnitSystem& unit_system, const Deck& deck)
|
||||
using TR = ParserKeywords::TRACER;
|
||||
if (deck.hasKeyword<TR>()) {
|
||||
const auto& keyword = deck.getKeyword<TR>();
|
||||
OpmLog::info( keyword.location().format("Initializing tracers from {keyword} in {file} line {line}") );
|
||||
OpmLog::info( keyword.location().format("\nInitializing tracers from {keyword} in {file} line {line}") );
|
||||
InfoLogger logger("Tracer tables", 3);
|
||||
for (const auto& record : keyword) {
|
||||
const auto& name = record.getItem<TR::NAME>().get<std::string>(0);
|
||||
|
Loading…
Reference in New Issue
Block a user