Split sunbeam.cpp
Split file in order to enhance c++ source file structure
This commit is contained in:
committed by
ReedMe
parent
79b9f66609
commit
8f89b598f4
23
sunbeam/group.cpp
Normal file
23
sunbeam/group.cpp
Normal 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 )
|
||||
;
|
||||
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user