mirror of
https://github.com/OPM/opm-simulators.git
synced 2024-11-25 18:50:19 -06:00
Added exmaple file
This commit is contained in:
parent
4cd2d53029
commit
88d6a626e3
27
examples/wells_example.cpp
Normal file
27
examples/wells_example.cpp
Normal file
@ -0,0 +1,27 @@
|
||||
#include <iostream>
|
||||
#include <opm/core/eclipse/EclipseGridParser.hpp>
|
||||
#include <opm/core/utility/parameters/ParameterGroup.hpp>
|
||||
#include <opm/core/WellsManager.hpp>
|
||||
#include <opm/core/GridManager.hpp>
|
||||
|
||||
#include "opm/core/newwells.h"
|
||||
|
||||
int main(int argc, char** argv) {
|
||||
|
||||
using namespace Opm::parameter;
|
||||
using namespace Opm;
|
||||
ParameterGroup parameters( argc, argv, false );
|
||||
std::string file_name = parameters.getDefault<std::string>("inputdeck", "data.data");
|
||||
|
||||
// Read input file
|
||||
EclipseGridParser parser(file_name);
|
||||
std::cout << "Done!" << std::endl;
|
||||
// Setup grid
|
||||
GridManager grid(parser);
|
||||
|
||||
// Finally handle the wells
|
||||
WellsManager wells(parser, *grid.c_grid(), NULL);
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user