Changes in the log class:
1. Moved to from eclipse/Parser -> eclipse/Log 2. Renamed ParserLog -> OpmLog
This commit is contained in:
@@ -97,8 +97,8 @@ static DeckPtr createDeckTOP() {
|
||||
|
||||
BOOST_AUTO_TEST_CASE(GetPOROTOPBased) {
|
||||
DeckPtr deck = createDeckTOP();
|
||||
ParserLogPtr parserLog(new ParserLog());
|
||||
EclipseState state(deck, parserLog);
|
||||
LoggerPtr logger(new Logger());
|
||||
EclipseState state(deck, logger);
|
||||
|
||||
std::shared_ptr<GridProperty<double> > poro = state.getDoubleGridProperty( "PORO" );
|
||||
std::shared_ptr<GridProperty<double> > permx = state.getDoubleGridProperty( "PERMX" );
|
||||
@@ -224,12 +224,12 @@ BOOST_AUTO_TEST_CASE(IntProperties) {
|
||||
|
||||
BOOST_AUTO_TEST_CASE(PropertiesNotSupportedThrows) {
|
||||
DeckPtr deck = createDeck();
|
||||
ParserLogPtr parserLog(new ParserLog());
|
||||
LoggerPtr logger(new Logger());
|
||||
EclipseState state(deck);
|
||||
DeckKeywordConstPtr swat = deck->getKeyword("SWAT");
|
||||
BOOST_CHECK_EQUAL( false , state.supportsGridProperty("SWAT"));
|
||||
state.loadGridPropertyFromDeckKeyword(std::make_shared<const Box>(10,10,10), swat, parserLog);
|
||||
BOOST_CHECK(parserLog->numErrors() > 0);
|
||||
state.loadGridPropertyFromDeckKeyword(std::make_shared<const Box>(10,10,10), swat, logger);
|
||||
BOOST_CHECK(logger->numErrors() > 0);
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user