Skip to content

Commit

Permalink
Merge pull request OPM#987 from qilicun/refactor-relpermDiagnostics
Browse files Browse the repository at this point in the history
Refactor relperm diagnostics using OpmLog functionalities.
  • Loading branch information
atgeirr committed Apr 4, 2016
2 parents 092d7c4 + c5925c4 commit 9558e15
Show file tree
Hide file tree
Showing 5 changed files with 82 additions and 99 deletions.
6 changes: 5 additions & 1 deletion examples/diagnose_relperm.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,8 @@
#include <opm/parser/eclipse/Parser/ParseContext.hpp>
#include <opm/parser/eclipse/Parser/Parser.hpp>
#include <opm/parser/eclipse/Deck/Deck.hpp>
#include <opm/common/OpmLog/OpmLog.hpp>
#include <opm/common/OpmLog/EclipsePRTLog.hpp>

#include <boost/filesystem.hpp>
#include <boost/algorithm/string/case_conv.hpp>
Expand Down Expand Up @@ -88,9 +90,11 @@ try
}

std::string logFile = baseName + ".SATFUNCLOG";
std::shared_ptr<EclipsePRTLog> prtLog = std::make_shared<EclipsePRTLog>(logFile, Log::DefaultMessageTypes);
OpmLog::addBackend( "ECLIPSEPRTLOG" , prtLog );
Opm::time::StopWatch timer;
timer.start();
RelpermDiagnostics diagnostic(logFile);
RelpermDiagnostics diagnostic;
diagnostic.diagnosis(eclState, deck, grid);
timer.stop();
double tt = timer.secsSinceStart();
Expand Down
Loading

0 comments on commit 9558e15

Please sign in to comment.