mirror of
https://github.com/OPM/opm-simulators.git
synced 2025-02-25 18:55:30 -06:00
Moved internal functions into anonymous namespace.
This commit is contained in:
parent
7c00c770b0
commit
7dcec8976b
@ -10,10 +10,10 @@
|
|||||||
namespace Opm
|
namespace Opm
|
||||||
{
|
{
|
||||||
|
|
||||||
WellsGroupInterface::WellsGroupInterface(const std::string& name,
|
WellsGroupInterface::WellsGroupInterface(const std::string& myname,
|
||||||
ProductionSpecification prod_spec,
|
ProductionSpecification prod_spec,
|
||||||
InjectionSpecification inje_spec)
|
InjectionSpecification inje_spec)
|
||||||
: name_(name),
|
: name_(myname),
|
||||||
production_specification_(prod_spec),
|
production_specification_(prod_spec),
|
||||||
injection_specification_(inje_spec)
|
injection_specification_(inje_spec)
|
||||||
{
|
{
|
||||||
@ -28,10 +28,10 @@ namespace Opm
|
|||||||
return name_;
|
return name_;
|
||||||
}
|
}
|
||||||
|
|
||||||
WellsGroup::WellsGroup(const std::string& name,
|
WellsGroup::WellsGroup(const std::string& myname,
|
||||||
ProductionSpecification prod_spec,
|
ProductionSpecification prod_spec,
|
||||||
InjectionSpecification inj_spec)
|
InjectionSpecification inj_spec)
|
||||||
: WellsGroupInterface(name, prod_spec, inj_spec)
|
: WellsGroupInterface(myname, prod_spec, inj_spec)
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -62,10 +62,10 @@ namespace Opm
|
|||||||
children_.push_back(child);
|
children_.push_back(child);
|
||||||
}
|
}
|
||||||
|
|
||||||
WellNode::WellNode(const std::string& name,
|
WellNode::WellNode(const std::string& myname,
|
||||||
ProductionSpecification prod_spec,
|
ProductionSpecification prod_spec,
|
||||||
InjectionSpecification inj_spec)
|
InjectionSpecification inj_spec)
|
||||||
: WellsGroupInterface(name, prod_spec, inj_spec)
|
: WellsGroupInterface(myname, prod_spec, inj_spec)
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -84,6 +84,9 @@ namespace Opm
|
|||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
namespace
|
||||||
|
{
|
||||||
|
|
||||||
surface_component toSurfaceComponent(std::string type)
|
surface_component toSurfaceComponent(std::string type)
|
||||||
{
|
{
|
||||||
if (type == "OIL") {
|
if (type == "OIL") {
|
||||||
@ -177,6 +180,7 @@ namespace Opm
|
|||||||
|
|
||||||
THROW("Unknown type " << type << ", could not convert to ControlMode.");
|
THROW("Unknown type " << type << ", could not convert to ControlMode.");
|
||||||
}
|
}
|
||||||
|
} // anonymous namespace
|
||||||
|
|
||||||
std::tr1::shared_ptr<WellsGroupInterface> createWellsGroup(std::string name, const EclipseGridParser& deck)
|
std::tr1::shared_ptr<WellsGroupInterface> createWellsGroup(std::string name, const EclipseGridParser& deck)
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user