this is just the result of ``` find -iname "*.[ch]pp" | xargs sed -i "s/ *$//" find opm/parser/share/keywords -type f | xargs sed -i "s/ *$//" ``` so if it causes conflicts with other patches, the others should get priority. The rationale behind this patch is that some people tell their editor to remove white space which leads to larger than necessary patches...
26 lines
572 B
C++
26 lines
572 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;
|
|
}
|
|
|