TargetCalculator: drop indent for namespace

This commit is contained in:
Arne Morten Kvarving 2024-02-19 11:41:06 +01:00
parent d6fc7cc4f6
commit 9a42b70f20

View File

@ -28,21 +28,19 @@
#include <string> #include <string>
#include <vector> #include <vector>
namespace Opm namespace Opm {
{
class DeferredLogger; class DeferredLogger;
template<class Scalar> class GroupState; template<class Scalar> class GroupState;
struct PhaseUsage; struct PhaseUsage;
namespace WellGroupHelpers namespace WellGroupHelpers {
{
/// Based on a group control mode, extract or calculate rates, and /// Based on a group control mode, extract or calculate rates, and
/// provide other conveniences. /// provide other conveniences.
class TargetCalculator class TargetCalculator
{ {
public: public:
TargetCalculator(const Group::ProductionCMode cmode, TargetCalculator(const Group::ProductionCMode cmode,
const PhaseUsage& pu, const PhaseUsage& pu,
const std::vector<double>& resv_coeff, const std::vector<double>& resv_coeff,
@ -64,7 +62,7 @@ namespace WellGroupHelpers
GuideRateModel::Target guideTargetMode() const; GuideRateModel::Target guideTargetMode() const;
private: private:
Group::ProductionCMode cmode_; Group::ProductionCMode cmode_;
const PhaseUsage& pu_; const PhaseUsage& pu_;
const std::vector<double>& resv_coeff_; const std::vector<double>& resv_coeff_;
@ -72,13 +70,13 @@ namespace WellGroupHelpers
const std::string& group_name_; const std::string& group_name_;
const GroupState<double>& group_state_; const GroupState<double>& group_state_;
bool use_gpmaint_; bool use_gpmaint_;
}; };
/// Based on a group control mode, extract or calculate rates, and /// Based on a group control mode, extract or calculate rates, and
/// provide other conveniences. /// provide other conveniences.
class InjectionTargetCalculator class InjectionTargetCalculator
{ {
public: public:
InjectionTargetCalculator(const Group::InjectionCMode& cmode, InjectionTargetCalculator(const Group::InjectionCMode& cmode,
const PhaseUsage& pu, const PhaseUsage& pu,
const std::vector<double>& resv_coeff, const std::vector<double>& resv_coeff,
@ -99,7 +97,7 @@ namespace WellGroupHelpers
GuideRateModel::Target guideTargetMode() const; GuideRateModel::Target guideTargetMode() const;
private: private:
Group::InjectionCMode cmode_; Group::InjectionCMode cmode_;
const PhaseUsage& pu_; const PhaseUsage& pu_;
const std::vector<double>& resv_coeff_; const std::vector<double>& resv_coeff_;
@ -109,7 +107,8 @@ namespace WellGroupHelpers
bool use_gpmaint_; bool use_gpmaint_;
int pos_; int pos_;
GuideRateModel::Target target_; GuideRateModel::Target target_;
}; };
} // namespace WellGroupHelpers } // namespace WellGroupHelpers
} // namespace Opm } // namespace Opm