From b8238927dacc02350aa2ecd8470e2746c9ae2101 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Atgeirr=20Fl=C3=B8=20Rasmussen?= Date: Wed, 11 Apr 2012 10:49:45 +0200 Subject: [PATCH] Improve formatting. --- opm/core/WellsGroup.cpp | 38 ++++++++++++++++++++++---------------- 1 file changed, 22 insertions(+), 16 deletions(-) diff --git a/opm/core/WellsGroup.cpp b/opm/core/WellsGroup.cpp index 17fa8a4de..8293a019c 100644 --- a/opm/core/WellsGroup.cpp +++ b/opm/core/WellsGroup.cpp @@ -10,10 +10,12 @@ namespace Opm { - WellsGroupInterface::WellsGroupInterface(const std::string& name, ProductionSpecification prod_spec, - InjectionSpecification inje_spec) - : name_(name), production_specification_(prod_spec), - injection_specification_(inje_spec) + WellsGroupInterface::WellsGroupInterface(const std::string& name, + ProductionSpecification prod_spec, + InjectionSpecification inje_spec) + : name_(name), + production_specification_(prod_spec), + injection_specification_(inje_spec) { } @@ -26,13 +28,15 @@ namespace Opm return name_; } - WellsGroup::WellsGroup(const std::string& name, ProductionSpecification prod_spec, - InjectionSpecification inj_spec) - : WellsGroupInterface(name, prod_spec, inj_spec) + WellsGroup::WellsGroup(const std::string& name, + ProductionSpecification prod_spec, + InjectionSpecification inj_spec) + : WellsGroupInterface(name, prod_spec, inj_spec) { } - bool WellsGroupInterface::isLeafNode() const { + bool WellsGroupInterface::isLeafNode() const + { return false; } @@ -53,13 +57,15 @@ namespace Opm } } - void WellsGroup::addChild(std::tr1::shared_ptr child) { + void WellsGroup::addChild(std::tr1::shared_ptr child) + { children_.push_back(child); } - WellNode::WellNode(const std::string& name, ProductionSpecification prod_spec, - InjectionSpecification inj_spec) - : WellsGroupInterface(name, prod_spec, inj_spec) + WellNode::WellNode(const std::string& name, + ProductionSpecification prod_spec, + InjectionSpecification inj_spec) + : WellsGroupInterface(name, prod_spec, inj_spec) { } @@ -73,7 +79,8 @@ namespace Opm } - bool WellNode::isLeafNode() const { + bool WellNode::isLeafNode() const + { return true; } @@ -252,8 +259,7 @@ namespace Opm return_value.reset(new WellsGroup(name, production_specification, injection_specification)); } - + return return_value; - } -} \ No newline at end of file +}