Skip to content

Commit

Permalink
Fix readability-const-return-type in headers. (Exawind#588)
Browse files Browse the repository at this point in the history
  • Loading branch information
jrood-nrel authored Mar 12, 2022
1 parent 544f81c commit a41e516
Show file tree
Hide file tree
Showing 66 changed files with 66 additions and 66 deletions.
2 changes: 1 addition & 1 deletion amr-wind/core/MeshMap.H
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ class CFDSim;
class MeshMap : public Factory<MeshMap>
{
public:
static const std::string base_identifier() { return "MeshMap"; }
static std::string base_identifier() { return "MeshMap"; }

~MeshMap() override = default;

Expand Down
2 changes: 1 addition & 1 deletion amr-wind/core/Physics.H
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ public:
class Physics : public Factory<Physics, CFDSim&>
{
public:
static const std::string base_identifier() { return "Physics"; }
static std::string base_identifier() { return "Physics"; }

~Physics() override = default;

Expand Down
2 changes: 1 addition & 1 deletion amr-wind/core/ViewField.H
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ public:
ViewField(ViewField&&) = default;
ViewField& operator=(ViewField&&) = default;

inline const std::string name() const { return m_src.name() + "view"; }
inline std::string name() const { return m_src.name() + "view"; }

//! Number of components in this subview
inline int num_comp() const { return m_ncomp; }
Expand Down
2 changes: 1 addition & 1 deletion amr-wind/equation_systems/SourceTerm.H
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ namespace pde {
class SourceTerm : public Factory<SourceTerm, const CFDSim&>
{
public:
static const std::string base_identifier() { return "SourceTerm"; }
static std::string base_identifier() { return "SourceTerm"; }

~SourceTerm() override = default;

Expand Down
2 changes: 1 addition & 1 deletion amr-wind/equation_systems/density/DensitySource.H
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ namespace pde {
class DensitySource : public Factory<DensitySource, const CFDSim&>
{
public:
static const std::string base_identifier() { return "DensitySource"; }
static std::string base_identifier() { return "DensitySource"; }

~DensitySource() override = default;

Expand Down
2 changes: 1 addition & 1 deletion amr-wind/equation_systems/icns/MomentumSource.H
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ namespace pde {
class MomentumSource : public Factory<MomentumSource, const CFDSim&>
{
public:
static const std::string base_identifier() { return "MomentumSource"; }
static std::string base_identifier() { return "MomentumSource"; }

~MomentumSource() override = default;

Expand Down
2 changes: 1 addition & 1 deletion amr-wind/equation_systems/icns/source_terms/ABLForcing.H
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ namespace icns {
class ABLForcing : public MomentumSource::Register<ABLForcing>
{
public:
static const std::string identifier() { return "ABLForcing"; }
static std::string identifier() { return "ABLForcing"; }

explicit ABLForcing(const CFDSim& sim);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ namespace icns {
class ABLMeanBoussinesq : public MomentumSource::Register<ABLMeanBoussinesq>
{
public:
static const std::string identifier() { return "ABLMeanBoussinesq"; }
static std::string identifier() { return "ABLMeanBoussinesq"; }

explicit ABLMeanBoussinesq(const CFDSim& sim);

Expand Down
2 changes: 1 addition & 1 deletion amr-wind/equation_systems/icns/source_terms/BodyForce.H
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ namespace icns {
class BodyForce : public MomentumSource::Register<BodyForce>
{
public:
static const std::string identifier() { return "BodyForce"; }
static std::string identifier() { return "BodyForce"; }

explicit BodyForce(const CFDSim&);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ namespace icns {
class BoussinesqBuoyancy : public MomentumSource::Register<BoussinesqBuoyancy>
{
public:
static const std::string identifier() { return "BoussinesqBuoyancy"; }
static std::string identifier() { return "BoussinesqBuoyancy"; }

explicit BoussinesqBuoyancy(const CFDSim& sim);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ namespace icns {
class CoriolisForcing : public MomentumSource::Register<CoriolisForcing>
{
public:
static const std::string identifier() { return "CoriolisForcing"; }
static std::string identifier() { return "CoriolisForcing"; }

explicit CoriolisForcing(const CFDSim&);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ namespace icns {
class DensityBuoyancy : public MomentumSource::Register<DensityBuoyancy>
{
public:
static const std::string identifier() { return "DensityBuoyancy"; }
static std::string identifier() { return "DensityBuoyancy"; }

explicit DensityBuoyancy(const CFDSim& sim);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ namespace icns {
class GeostrophicForcing : public MomentumSource::Register<GeostrophicForcing>
{
public:
static const std::string identifier() { return "GeostrophicForcing"; }
static std::string identifier() { return "GeostrophicForcing"; }

explicit GeostrophicForcing(const CFDSim&);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ namespace icns {
class GravityForcing : public MomentumSource::Register<GravityForcing>
{
public:
static const std::string identifier() { return "GravityForcing"; }
static std::string identifier() { return "GravityForcing"; }

explicit GravityForcing(const CFDSim& sim);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ namespace icns {
class SynthTurbForcing : public MomentumSource::Register<SynthTurbForcing>
{
public:
static const std::string identifier() { return "SynthTurbForcing"; }
static std::string identifier() { return "SynthTurbForcing"; }

explicit SynthTurbForcing(const CFDSim&);

Expand Down
2 changes: 1 addition & 1 deletion amr-wind/equation_systems/sdr/SDRSource.H
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ namespace pde {
class SDRSource : public Factory<SDRSource, const CFDSim&>
{
public:
static const std::string base_identifier() { return "SDRSource"; }
static std::string base_identifier() { return "SDRSource"; }

~SDRSource() override = default;

Expand Down
2 changes: 1 addition & 1 deletion amr-wind/equation_systems/sdr/source_terms/SDRSrc.H
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ namespace tke {
class SDRSrc : public SDRSource::Register<SDRSrc>
{
public:
static const std::string identifier() { return "SDRSrc"; }
static std::string identifier() { return "SDRSrc"; }

explicit SDRSrc(const CFDSim&);

Expand Down
2 changes: 1 addition & 1 deletion amr-wind/equation_systems/temperature/TemperatureSource.H
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ namespace pde {
class TemperatureSource : public Factory<TemperatureSource, const CFDSim&>
{
public:
static const std::string base_identifier() { return "TemperatureSource"; }
static std::string base_identifier() { return "TemperatureSource"; }

~TemperatureSource() override = default;

Expand Down
2 changes: 1 addition & 1 deletion amr-wind/equation_systems/tke/TKESource.H
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ namespace pde {
class TKESource : public Factory<TKESource, const CFDSim&>
{
public:
static const std::string base_identifier() { return "TKESource"; }
static std::string base_identifier() { return "TKESource"; }

~TKESource() override = default;

Expand Down
2 changes: 1 addition & 1 deletion amr-wind/equation_systems/tke/source_terms/KsgsM84Src.H
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ namespace tke {
class KsgsM84Src : public TKESource::Register<KsgsM84Src>
{
public:
static const std::string identifier() { return "KsgsM84Src"; }
static std::string identifier() { return "KsgsM84Src"; }

explicit KsgsM84Src(const CFDSim&);

Expand Down
2 changes: 1 addition & 1 deletion amr-wind/equation_systems/tke/source_terms/KwSSTSrc.H
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ namespace tke {
class KwSSTSrc : public TKESource::Register<KwSSTSrc>
{
public:
static const std::string identifier() { return "KwSSTSrc"; }
static std::string identifier() { return "KwSSTSrc"; }

explicit KwSSTSrc(const CFDSim&);

Expand Down
2 changes: 1 addition & 1 deletion amr-wind/immersed_boundary/IB.H
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ class ImmersedBoundaryModel;
class IB : public Physics::Register<IB>
{
public:
static const std::string identifier() { return "IB"; }
static std::string identifier() { return "IB"; }

explicit IB(CFDSim&);

Expand Down
2 changes: 1 addition & 1 deletion amr-wind/immersed_boundary/bluff_body/Box.H
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ struct Box : public BluffBodyType
using MetaType = BoxData;
using DataType = IBDataHolder<Box>;

static const std::string identifier() { return "Box"; }
static std::string identifier() { return "Box"; }
};

} // namespace ib
Expand Down
2 changes: 1 addition & 1 deletion amr-wind/immersed_boundary/bluff_body/Cylinder.H
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ struct Cylinder : public BluffBodyType
using MetaType = CylinderData;
using DataType = IBDataHolder<Cylinder>;

static const std::string identifier() { return "Cylinder"; }
static std::string identifier() { return "Cylinder"; }
};

} // namespace ib
Expand Down
2 changes: 1 addition & 1 deletion amr-wind/immersed_boundary/bluff_body/Sphere.H
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ struct Sphere : public BluffBodyType
using MetaType = SphereData;
using DataType = IBDataHolder<Sphere>;

static const std::string identifier() { return "Sphere"; }
static std::string identifier() { return "Sphere"; }
};

} // namespace ib
Expand Down
2 changes: 1 addition & 1 deletion amr-wind/mesh_mapping_models/ChannelFlowMap.H
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ namespace channel_map {
class ChannelFlowMap : public MeshMap::Register<ChannelFlowMap>
{
public:
static const std::string identifier() { return "ChannelFlowMap"; }
static std::string identifier() { return "ChannelFlowMap"; }

explicit ChannelFlowMap();

Expand Down
2 changes: 1 addition & 1 deletion amr-wind/mesh_mapping_models/ConstantMap.H
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ namespace const_map {
class ConstantMap : public MeshMap::Register<ConstantMap>
{
public:
static const std::string identifier() { return "ConstantMap"; }
static std::string identifier() { return "ConstantMap"; }

explicit ConstantMap();

Expand Down
2 changes: 1 addition & 1 deletion amr-wind/physics/BoussinesqBubble.H
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ namespace amr_wind {
class BoussinesqBubble : public Physics::Register<BoussinesqBubble>
{
public:
static const std::string identifier() { return "BoussinesqBubble"; }
static std::string identifier() { return "BoussinesqBubble"; }

explicit BoussinesqBubble(CFDSim& sim);

Expand Down
2 changes: 1 addition & 1 deletion amr-wind/physics/ChannelFlow.H
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ namespace channel_flow {
class ChannelFlow : public Physics::Register<ChannelFlow>
{
public:
static const std::string identifier() { return "ChannelFlow"; }
static std::string identifier() { return "ChannelFlow"; }

explicit ChannelFlow(CFDSim& sim);

Expand Down
2 changes: 1 addition & 1 deletion amr-wind/physics/ConvectingTaylorVortex.H
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ struct GpzExact
class ConvectingTaylorVortex : public Physics::Register<ConvectingTaylorVortex>
{
public:
static const std::string identifier() { return "ConvectingTaylorVortex"; }
static std::string identifier() { return "ConvectingTaylorVortex"; }

explicit ConvectingTaylorVortex(const CFDSim& sim);

Expand Down
2 changes: 1 addition & 1 deletion amr-wind/physics/EkmanSpiral.H
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ namespace amr_wind {
class EkmanSpiral : public Physics::Register<EkmanSpiral>
{
public:
static const std::string identifier() { return "EkmanSpiral"; }
static std::string identifier() { return "EkmanSpiral"; }

explicit EkmanSpiral(const CFDSim& sim);

Expand Down
2 changes: 1 addition & 1 deletion amr-wind/physics/FreeStream.H
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ namespace amr_wind {
class FreeStream : public Physics::Register<FreeStream>
{
public:
static const std::string identifier() { return "FreeStream"; }
static std::string identifier() { return "FreeStream"; }

explicit FreeStream(const CFDSim& sim);

Expand Down
2 changes: 1 addition & 1 deletion amr-wind/physics/HybridRANSLESABL.H
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ namespace hybrid_rans_les_abl {
class HybridRANSLESABL : public Physics::Register<HybridRANSLESABL>
{
public:
static const std::string identifier() { return "HybridRANSLESABL"; }
static std::string identifier() { return "HybridRANSLESABL"; }

explicit HybridRANSLESABL(const CFDSim& sim);

Expand Down
2 changes: 1 addition & 1 deletion amr-wind/physics/RayleighTaylor.H
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ namespace amr_wind {
class RayleighTaylor : public Physics::Register<RayleighTaylor>
{
public:
static const std::string identifier() { return "RayleighTaylor"; }
static std::string identifier() { return "RayleighTaylor"; }

explicit RayleighTaylor(const CFDSim& sim);

Expand Down
2 changes: 1 addition & 1 deletion amr-wind/physics/SyntheticTurbulence.H
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,7 @@ struct InterpWeights
class SyntheticTurbulence : public Physics::Register<SyntheticTurbulence>
{
public:
static const std::string identifier() { return "SyntheticTurbulence"; }
static std::string identifier() { return "SyntheticTurbulence"; }

explicit SyntheticTurbulence(const CFDSim& sim);

Expand Down
2 changes: 1 addition & 1 deletion amr-wind/physics/TaylorGreenVortex.H
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ namespace amr_wind {
class TaylorGreenVortex : public Physics::Register<TaylorGreenVortex>
{
public:
static const std::string identifier() { return "TaylorGreenVortex"; }
static std::string identifier() { return "TaylorGreenVortex"; }

explicit TaylorGreenVortex(const CFDSim& sim);

Expand Down
2 changes: 1 addition & 1 deletion amr-wind/physics/VortexRing.H
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ namespace amr_wind {
class VortexRing : public Physics::Register<VortexRing>
{
public:
static const std::string identifier() { return "VortexRing"; }
static std::string identifier() { return "VortexRing"; }

explicit VortexRing(const CFDSim& sim);

Expand Down
2 changes: 1 addition & 1 deletion amr-wind/physics/multiphase/DamBreak.H
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ namespace amr_wind {
class DamBreak : public Physics::Register<DamBreak>
{
public:
static const std::string identifier() { return "DamBreak"; }
static std::string identifier() { return "DamBreak"; }

explicit DamBreak(CFDSim& sim);

Expand Down
2 changes: 1 addition & 1 deletion amr-wind/physics/multiphase/MultiPhase.H
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ enum class InterfaceCapturingMethod {
class MultiPhase : public Physics::Register<MultiPhase>
{
public:
static const std::string identifier() { return "MultiPhase"; }
static std::string identifier() { return "MultiPhase"; }

explicit MultiPhase(CFDSim& sim);

Expand Down
2 changes: 1 addition & 1 deletion amr-wind/physics/multiphase/RainDrop.H
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ class RainDrop : public Physics::Register<RainDrop>
static_assert(AMREX_SPACEDIM == 3, "RainDrop requires 3 dimensional mesh");

public:
static const std::string identifier() { return "RainDrop"; }
static std::string identifier() { return "RainDrop"; }

explicit RainDrop(CFDSim& sim);

Expand Down
2 changes: 1 addition & 1 deletion amr-wind/physics/multiphase/SloshingTank.H
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ namespace amr_wind {
class SloshingTank : public Physics::Register<SloshingTank>
{
public:
static const std::string identifier() { return "SloshingTank"; }
static std::string identifier() { return "SloshingTank"; }

explicit SloshingTank(CFDSim& sim);

Expand Down
2 changes: 1 addition & 1 deletion amr-wind/physics/multiphase/VortexPatch.H
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ class VortexPatch : public Physics::Register<VortexPatch>
AMREX_SPACEDIM == 3, "VortexPatch requires 3 dimensional mesh");

public:
static const std::string identifier() { return "VortexPatch"; }
static std::string identifier() { return "VortexPatch"; }

explicit VortexPatch(CFDSim& sim);

Expand Down
2 changes: 1 addition & 1 deletion amr-wind/physics/multiphase/ZalesakDisk.H
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ class ZalesakDisk : public Physics::Register<ZalesakDisk>
AMREX_SPACEDIM == 3, "ZalesakDisk requires 3 dimensional mesh");

public:
static const std::string identifier() { return "ZalesakDisk"; }
static std::string identifier() { return "ZalesakDisk"; }

explicit ZalesakDisk(CFDSim& sim);

Expand Down
2 changes: 1 addition & 1 deletion amr-wind/physics/multiphase/wave_basin/NWB.H
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ namespace amr_wind {
class NWB : public Physics::Register<NWB>
{
public:
static const std::string identifier() { return "NWB"; }
static std::string identifier() { return "NWB"; }

explicit NWB(CFDSim& sim);

Expand Down
Loading

0 comments on commit a41e516

Please sign in to comment.