Files
opm-common/opm/parser/eclipse/Applications/Schedule.cpp
Andreas Lauser 9a09fa29af rename Parser::parse to Parser::parseFile and add Parser::parseData
Parser::parseData is quite useful for unit tests to prevent them
spilling files to everything. Also, what was formerly
Parser::parseFile has been renamed to Parser::parseStream and slightly
modified to not be specific for std::ifstream.
2014-01-10 14:51:56 +01:00

26 lines
575 B
C++

/*
* 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>
int main(int argc, char** argv) {
Opm::ParserPtr parser(new Opm::Parser());
std::string file = argv[1];
Opm::DeckConstPtr deck = parser->parseFile(file, false);
Opm::Schedule sched( deck );
std::cout << "Wells: " << sched.numWells() << std::endl;
return 0;
}