Split sunbeam.cpp

Split file in order to enhance c++ source file structure
This commit is contained in:
Jens Gåsemyr Magnus
2017-08-31 13:49:09 +02:00
committed by ReedMe
parent 79b9f66609
commit 8f89b598f4
21 changed files with 746 additions and 403 deletions

23
sunbeam/group.cpp Normal file
View File

@@ -0,0 +1,23 @@
#include <opm/parser/eclipse/EclipseState/Schedule/Group.hpp>
#include "group.hpp"
namespace py = boost::python;
using namespace Opm;
namespace group {
py::list wellnames( const Group& g, size_t timestep ) {
return iterable_to_pylist( g.getWells( timestep ) );
}
void export_Group() {
py::class_< Group >( "Group", py::no_init )
.add_property( "name", mkcopy( &Group::name ) )
.def( "_wellnames", &wellnames )
;
}
}