26 lines
571 B
C++
26 lines
571 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->parse(file, false);
|
|
Opm::Schedule sched( deck );
|
|
|
|
std::cout << "Wells: " << sched.numWells() << std::endl;
|
|
|
|
|
|
return 0;
|
|
}
|
|
|