Improve formatting.

This commit is contained in:
Atgeirr Flø Rasmussen 2012-04-11 10:49:45 +02:00
parent 263642a98e
commit b8238927da

View File

@ -10,9 +10,11 @@
namespace Opm namespace Opm
{ {
WellsGroupInterface::WellsGroupInterface(const std::string& name, ProductionSpecification prod_spec, WellsGroupInterface::WellsGroupInterface(const std::string& name,
ProductionSpecification prod_spec,
InjectionSpecification inje_spec) InjectionSpecification inje_spec)
: name_(name), production_specification_(prod_spec), : name_(name),
production_specification_(prod_spec),
injection_specification_(inje_spec) injection_specification_(inje_spec)
{ {
} }
@ -26,13 +28,15 @@ namespace Opm
return name_; return name_;
} }
WellsGroup::WellsGroup(const std::string& name, ProductionSpecification prod_spec, WellsGroup::WellsGroup(const std::string& name,
ProductionSpecification prod_spec,
InjectionSpecification inj_spec) InjectionSpecification inj_spec)
: WellsGroupInterface(name, prod_spec, inj_spec) : WellsGroupInterface(name, prod_spec, inj_spec)
{ {
} }
bool WellsGroupInterface::isLeafNode() const { bool WellsGroupInterface::isLeafNode() const
{
return false; return false;
} }
@ -53,11 +57,13 @@ namespace Opm
} }
} }
void WellsGroup::addChild(std::tr1::shared_ptr<WellsGroupInterface> child) { void WellsGroup::addChild(std::tr1::shared_ptr<WellsGroupInterface> child)
{
children_.push_back(child); children_.push_back(child);
} }
WellNode::WellNode(const std::string& name, ProductionSpecification prod_spec, WellNode::WellNode(const std::string& name,
ProductionSpecification prod_spec,
InjectionSpecification inj_spec) InjectionSpecification inj_spec)
: WellsGroupInterface(name, prod_spec, inj_spec) : WellsGroupInterface(name, prod_spec, inj_spec)
{ {
@ -73,7 +79,8 @@ namespace Opm
} }
bool WellNode::isLeafNode() const { bool WellNode::isLeafNode() const
{
return true; return true;
} }
@ -254,6 +261,5 @@ namespace Opm
} }
return return_value; return return_value;
} }
} }