Skip to content

Commit 1773588

Browse files
committed
Replaced the explicit iterators by auto to improve readability
1 parent 9c16769 commit 1773588

File tree

2 files changed

+64
-92
lines changed

2 files changed

+64
-92
lines changed

Common/include/geometry/CPhysicalGeometry.hpp

Lines changed: 19 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -506,20 +506,19 @@ class CPhysicalGeometry final : public CGeometry {
506506
*/
507507
void DetermineDonorElementsWallFunctions(CConfig* config);
508508

509-
#ifdef HAVE_MPI
510-
#ifdef HAVE_PARMETIS
511-
/*!
512-
* \brief Function, which converts the input the format for ParMETIS and calls
513-
* ParMETIS to determine the actual colors of the elements.
514-
* \param[in] adjacency - Adjacency information of the elements.
515-
* \param[in] vwgt - Weights of the vertices of the graph, which are the elements.
516-
* \param[in] adjwgt - Weights of the adjacencies of the graph.
517-
*/
518-
void DetermineFEMColorsViaParMETIS(vector<vector<unsigned long> > &adjacency,
519-
vector<passivedouble> &vwgt,
520-
vector<vector<passivedouble> > &adjwgt);
521-
#endif
522-
#endif
509+
#ifdef HAVE_MPI
510+
#ifdef HAVE_PARMETIS
511+
/*!
512+
* \brief Function, which converts the input the format for ParMETIS and calls
513+
* ParMETIS to determine the actual colors of the elements.
514+
* \param[in] adjacency - Adjacency information of the elements.
515+
* \param[in] vwgt - Weights of the vertices of the graph, which are the elements.
516+
* \param[in] adjwgt - Weights of the adjacencies of the graph.
517+
*/
518+
void DetermineFEMColorsViaParMETIS(vector<vector<unsigned long> >& adjacency, vector<passivedouble>& vwgt,
519+
vector<vector<passivedouble> >& adjwgt);
520+
#endif
521+
#endif
523522

524523
/*!
525524
* \brief Determine whether or not the Jacobians of the elements and faces
@@ -549,8 +548,7 @@ class CPhysicalGeometry final : public CGeometry {
549548
* \param[in] localFaces - Vector containing the local matching faces of the FEM grid.
550549
* \param[out] adjacency - Vector of vectors to store the adjacency.
551550
*/
552-
void DetermineGraphAdjacency(const vector<CFaceOfElement>& localFaces,
553-
vector<vector<unsigned long> >& adjacency);
551+
void DetermineGraphAdjacency(const vector<CFaceOfElement>& localFaces, vector<vector<unsigned long> >& adjacency);
554552

555553
/*!
556554
* \brief Function, which determines the matching faces of a FEM grid.
@@ -572,10 +570,11 @@ class CPhysicalGeometry final : public CGeometry {
572570
* \brief Function, which determines the owner of the internal faces, i.e. which element
573571
* is responsible for computing the fluxes through the face.
574572
* \param[in] localFaces - Vector, which contains the element faces of this rank.
575-
* \param[out] mapExternalElemIDToTimeLevel - Map from the external element ID's to their time level and number of DOFs.
573+
* \param[out] mapExternalElemIDToTimeLevel - Map from the external element ID's to their time level and number of
574+
* DOFs.
576575
*/
577-
void DetermineOwnershipInternalFaces(vector<CFaceOfElement> &localFaces,
578-
map<unsigned long, CUnsignedShort2T> &mapExternalElemIDToTimeLevel);
576+
void DetermineOwnershipInternalFaces(vector<CFaceOfElement>& localFaces,
577+
map<unsigned long, CUnsignedShort2T>& mapExternalElemIDToTimeLevel);
579578

580579
/*!
581580
* \brief Determine the neighboring information for periodic faces of a FEM grid.
@@ -599,7 +598,7 @@ class CPhysicalGeometry final : public CGeometry {
599598
* data structures of the local elements.
600599
* \param[in] localFaces - Vector, which contains the internal matching faces of this rank.
601600
*/
602-
void StoreFaceInfoInLocalElements(const vector<CFaceOfElement> &localFaces);
601+
void StoreFaceInfoInLocalElements(const vector<CFaceOfElement>& localFaces);
603602

604603
/*!
605604
* \brief Compute 3 grid quality metrics: orthogonality angle, dual cell aspect ratio, and dual cell volume ratio.

0 commit comments

Comments
 (0)