fix whitespace at eol

and some brace placements
This commit is contained in:
Arne Morten Kvarving
2023-03-24 14:56:23 +01:00
parent 3ea6f714db
commit 5f28175603
7 changed files with 33 additions and 31 deletions
+7 -5
View File
@@ -857,7 +857,6 @@ public:
} }
} }
/*! /*!
* \brief Capture connection fluxes, particularly to account for inter-region flows. * \brief Capture connection fluxes, particularly to account for inter-region flows.
* *
@@ -1003,12 +1002,14 @@ public:
} }
} }
void updateFluidInPlace(const ElementContext& elemCtx){ void updateFluidInPlace(const ElementContext& elemCtx)
{
for (unsigned dofIdx = 0; dofIdx < elemCtx.numPrimaryDof(/*timeIdx=*/0); ++dofIdx) { for (unsigned dofIdx = 0; dofIdx < elemCtx.numPrimaryDof(/*timeIdx=*/0); ++dofIdx) {
updateFluidInPlace_(elemCtx, dofIdx); updateFluidInPlace_(elemCtx, dofIdx);
} }
} }
void updateFluidInPlace(unsigned globalDofIdx,const IntensiveQuantities& intQuants, double totVolume){ void updateFluidInPlace(unsigned globalDofIdx,const IntensiveQuantities& intQuants, double totVolume)
{
this->updateFluidInPlace_(globalDofIdx, intQuants, totVolume); this->updateFluidInPlace_(globalDofIdx, intQuants, totVolume);
} }
private: private:
@@ -1022,7 +1023,8 @@ private:
return candidate == parallelWells.end() || *candidate != value; return candidate == parallelWells.end() || *candidate != value;
} }
void updateFluidInPlace_(const ElementContext& elemCtx, unsigned dofIdx){ void updateFluidInPlace_(const ElementContext& elemCtx, unsigned dofIdx)
{
const auto& intQuants = elemCtx.intensiveQuantities(dofIdx, /*timeIdx=*/0); const auto& intQuants = elemCtx.intensiveQuantities(dofIdx, /*timeIdx=*/0);
unsigned globalDofIdx = elemCtx.globalSpaceIndex(dofIdx, /*timeIdx=*/0); unsigned globalDofIdx = elemCtx.globalSpaceIndex(dofIdx, /*timeIdx=*/0);
const auto totVolume = elemCtx.simulator().model().dofTotalVolume(globalDofIdx); const auto totVolume = elemCtx.simulator().model().dofTotalVolume(globalDofIdx);
@@ -1295,7 +1297,7 @@ private:
} }
const Simulator& simulator_; const Simulator& simulator_;
}; };
} // namespace Opm } // namespace Opm
+2 -2
View File
@@ -105,6 +105,6 @@ namespace Details {
template std::pair<double,double> cellZMinMax(const Dune::cpgrid::Entity<0>& element); template std::pair<double,double> cellZMinMax(const Dune::cpgrid::Entity<0>& element);
} }
}
} // namespace EQUIL } // namespace EQUIL
// namespace Opm } // namespace Opm