From c8d0939d1210e3ede48fe3a191b21874483efacd Mon Sep 17 00:00:00 2001 From: Kai Bao Date: Fri, 29 Aug 2025 11:53:58 +0200 Subject: [PATCH] some cleaning up mostly to add the end-of-file newline character back. --- opm/simulators/wells/MultisegmentWellPrimaryVariables.cpp | 1 - opm/simulators/wells/RateConverter.cpp | 2 +- opm/simulators/wells/RateConverter.hpp | 2 +- opm/simulators/wells/TargetCalculator.cpp | 2 +- opm/simulators/wells/WellAssemble.cpp | 2 +- opm/simulators/wells/WellAssemble.hpp | 2 +- opm/simulators/wells/WellBhpThpCalculator.cpp | 2 +- opm/simulators/wells/WellBhpThpCalculator.hpp | 2 +- opm/simulators/wells/WellGroupControls.hpp | 2 +- 9 files changed, 8 insertions(+), 9 deletions(-) diff --git a/opm/simulators/wells/MultisegmentWellPrimaryVariables.cpp b/opm/simulators/wells/MultisegmentWellPrimaryVariables.cpp index 1793612096..9e3b1dcbf8 100644 --- a/opm/simulators/wells/MultisegmentWellPrimaryVariables.cpp +++ b/opm/simulators/wells/MultisegmentWellPrimaryVariables.cpp @@ -383,7 +383,6 @@ copyToWellState(const MultisegmentWellGeneric& mswell, // 5) Local condition phase viscosities. if (FluidSystem::phaseIsActive(FluidSystem::oilPhaseIdx)) { - // const int oil_pos = FluidSystem::canonicalToActivePhaseIdx(FluidSystem::oilPhaseIdx); segments.phase_viscosity[seg * well_.numPhases() + oil_pos] = FluidSystem::oilPvt().viscosity(pvtReg, temperature, segment_pressure[seg], Rs); } diff --git a/opm/simulators/wells/RateConverter.cpp b/opm/simulators/wells/RateConverter.cpp index 832e394bed..fb50203e04 100644 --- a/opm/simulators/wells/RateConverter.cpp +++ b/opm/simulators/wells/RateConverter.cpp @@ -424,4 +424,4 @@ INSTANTIATE_TYPE(float) #endif } // namespace RateConverter -} // namespace Opm \ No newline at end of file +} // namespace Opm diff --git a/opm/simulators/wells/RateConverter.hpp b/opm/simulators/wells/RateConverter.hpp index b7116cad00..4965dd5063 100644 --- a/opm/simulators/wells/RateConverter.hpp +++ b/opm/simulators/wells/RateConverter.hpp @@ -420,4 +420,4 @@ namespace Opm { } // namespace RateConverter } // namespace Opm -#endif /* OPM_RATECONVERTER_HPP_HEADER_INCLUDED */ \ No newline at end of file +#endif /* OPM_RATECONVERTER_HPP_HEADER_INCLUDED */ diff --git a/opm/simulators/wells/TargetCalculator.cpp b/opm/simulators/wells/TargetCalculator.cpp index e1123d8fbe..62f3af3f1b 100644 --- a/opm/simulators/wells/TargetCalculator.cpp +++ b/opm/simulators/wells/TargetCalculator.cpp @@ -307,4 +307,4 @@ INSTANTIATE_TYPE(double) INSTANTIATE_TYPE(float) #endif -} // namespace Opm::WGHelpers \ No newline at end of file +} // namespace Opm::WGHelpers diff --git a/opm/simulators/wells/WellAssemble.cpp b/opm/simulators/wells/WellAssemble.cpp index 3014313e6f..1624fc8083 100644 --- a/opm/simulators/wells/WellAssemble.cpp +++ b/opm/simulators/wells/WellAssemble.cpp @@ -342,4 +342,4 @@ INSTANTIATE_TYPE(double) INSTANTIATE_TYPE(float) #endif -} // namespace Opm \ No newline at end of file +} // namespace Opm diff --git a/opm/simulators/wells/WellAssemble.hpp b/opm/simulators/wells/WellAssemble.hpp index 865f732f8d..74dabb3b5e 100644 --- a/opm/simulators/wells/WellAssemble.hpp +++ b/opm/simulators/wells/WellAssemble.hpp @@ -85,4 +85,4 @@ private: } -#endif // OPM_WELL_ASSEMBLE_HEADER_INCLUDED \ No newline at end of file +#endif // OPM_WELL_ASSEMBLE_HEADER_INCLUDED diff --git a/opm/simulators/wells/WellBhpThpCalculator.cpp b/opm/simulators/wells/WellBhpThpCalculator.cpp index 45565e779d..04c3e5e167 100644 --- a/opm/simulators/wells/WellBhpThpCalculator.cpp +++ b/opm/simulators/wells/WellBhpThpCalculator.cpp @@ -1105,4 +1105,4 @@ INSTANTIATE_TYPE(double) INSTANTIATE_TYPE(float) #endif -} // namespace Opm \ No newline at end of file +} // namespace Opm diff --git a/opm/simulators/wells/WellBhpThpCalculator.hpp b/opm/simulators/wells/WellBhpThpCalculator.hpp index 9eb7129f60..816d030d26 100644 --- a/opm/simulators/wells/WellBhpThpCalculator.hpp +++ b/opm/simulators/wells/WellBhpThpCalculator.hpp @@ -183,4 +183,4 @@ private: } -#endif // OPM_WELL_BHP_THP_CALCULATOR_HEADER_INCLUDED \ No newline at end of file +#endif // OPM_WELL_BHP_THP_CALCULATOR_HEADER_INCLUDED diff --git a/opm/simulators/wells/WellGroupControls.hpp b/opm/simulators/wells/WellGroupControls.hpp index 282460125f..492830a8db 100644 --- a/opm/simulators/wells/WellGroupControls.hpp +++ b/opm/simulators/wells/WellGroupControls.hpp @@ -118,4 +118,4 @@ private: } -#endif // OPM_WELL_GROUP_CONTROLS_HEADER_INCLUDED \ No newline at end of file +#endif // OPM_WELL_GROUP_CONTROLS_HEADER_INCLUDED