2013-11-05 18:06:51 +01:00
|
|
|
/*
|
|
|
|
|
* File: EclipseDataDoctor.cpp
|
|
|
|
|
* Author: kflik
|
|
|
|
|
*
|
|
|
|
|
* Created on August 20, 2013, 1:19 PM
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
#include <iostream>
|
|
|
|
|
#include <opm/parser/eclipse/Parser/Parser.hpp>
|
|
|
|
|
#include <opm/parser/eclipse/Deck/Deck.hpp>
|
|
|
|
|
#include <opm/parser/eclipse/EclipseState/Schedule/Schedule.hpp>
|
|
|
|
|
|
|
|
|
|
|
2014-04-15 09:48:19 +02:00
|
|
|
int main(int /* argc */, char** argv) {
|
2013-11-05 18:06:51 +01:00
|
|
|
Opm::ParserPtr parser(new Opm::Parser());
|
|
|
|
|
std::string file = argv[1];
|
2014-01-10 14:48:13 +01:00
|
|
|
Opm::DeckConstPtr deck = parser->parseFile(file, false);
|
2013-11-05 18:06:51 +01:00
|
|
|
Opm::Schedule sched( deck );
|
|
|
|
|
|
|
|
|
|
std::cout << "Wells: " << sched.numWells() << std::endl;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
return 0;
|
|
|
|
|
}
|
|
|
|
|
|