Skip to content

Commit bd5999f

Browse files
committed
Result of running pre-commit
1 parent 53207ab commit bd5999f

3 files changed

Lines changed: 16 additions & 8 deletions

File tree

Common/src/fem/fem_geometry_structure.cpp

Lines changed: 12 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -566,8 +566,10 @@ CMeshFEM::CMeshFEM(CGeometry* geometry, CConfig* config) {
566566
the elements with constant and non-constant Jacobians are
567567
considered the same. */
568568
if (JacConstant) {
569-
const auto orderExactStraight = static_cast<unsigned short>(ceil(nPolySol * config->GetQuadrature_Factor_Straight()));
570-
const auto orderExactCurved = static_cast<unsigned short>(ceil(nPolySol * config->GetQuadrature_Factor_Curved()));
569+
const auto orderExactStraight =
570+
static_cast<unsigned short>(ceil(nPolySol * config->GetQuadrature_Factor_Straight()));
571+
const auto orderExactCurved =
572+
static_cast<unsigned short>(ceil(nPolySol * config->GetQuadrature_Factor_Curved()));
571573
if (orderExactStraight == orderExactCurved) JacConstant = false;
572574
}
573575

@@ -2455,12 +2457,16 @@ void CMeshFEM_DG::CreateFaces(CConfig* config) {
24552457
is set to false. Hence it is only needed to carry out this check for faces
24562458
with a constant Jacobian. This is done to reduce the number of standard elements. */
24572459
if (thisFace.JacFaceIsConsideredConstant) {
2458-
auto orderExactStraight = static_cast<unsigned short>(ceil(thisFace.nPolyGrid0 * config->GetQuadrature_Factor_Straight()));
2459-
auto orderExactCurved = static_cast<unsigned short>(ceil(thisFace.nPolyGrid0 * config->GetQuadrature_Factor_Curved()));
2460+
auto orderExactStraight =
2461+
static_cast<unsigned short>(ceil(thisFace.nPolyGrid0 * config->GetQuadrature_Factor_Straight()));
2462+
auto orderExactCurved =
2463+
static_cast<unsigned short>(ceil(thisFace.nPolyGrid0 * config->GetQuadrature_Factor_Curved()));
24602464

24612465
if (orderExactStraight == orderExactCurved) {
2462-
orderExactStraight = static_cast<unsigned short>(ceil(thisFace.nPolySol0 * config->GetQuadrature_Factor_Straight()));
2463-
orderExactCurved = static_cast<unsigned short>(ceil(thisFace.nPolySol0 * config->GetQuadrature_Factor_Curved()));
2466+
orderExactStraight =
2467+
static_cast<unsigned short>(ceil(thisFace.nPolySol0 * config->GetQuadrature_Factor_Straight()));
2468+
orderExactCurved =
2469+
static_cast<unsigned short>(ceil(thisFace.nPolySol0 * config->GetQuadrature_Factor_Curved()));
24642470
if (orderExactStraight == orderExactCurved) thisFace.JacFaceIsConsideredConstant = false;
24652471
}
24662472
}

Common/src/fem/geometry_structure_fem_part.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -637,7 +637,8 @@ void CPhysicalGeometry::SetColorFEMGrid_Parallel(CConfig* config) {
637637
vector<unsigned long> sendBufFace(9 * nFacesLocComm);
638638
vector<unsigned long> counter(size);
639639
counter[0] = 0;
640-
for (unsigned long i = 1; i < static_cast<unsigned long>(size); ++i) counter[i] = counter[i - 1] + 9 * nFacesComm[i - 1];
640+
for (unsigned long i = 1; i < static_cast<unsigned long>(size); ++i)
641+
counter[i] = counter[i - 1] + 9 * nFacesComm[i - 1];
641642

642643
for (unsigned long i = 0; i < nFacesLocComm; ++i) {
643644
unsigned long rankFace = localFacesComm[i].elemID1;

Common/src/geometry/CPhysicalGeometry.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1990,7 +1990,8 @@ void CPhysicalGeometry::DistributeMarkerTags(CConfig* config, CGeometry* geometr
19901990

19911991
/*--- Broadcast the string names of the variables. ---*/
19921992

1993-
SU2_MPI::Bcast(mpi_str_buf, static_cast<int>(nMarker_Global) * MAX_STRING_SIZE, MPI_CHAR, MASTER_NODE, SU2_MPI::GetComm());
1993+
SU2_MPI::Bcast(mpi_str_buf, static_cast<int>(nMarker_Global) * MAX_STRING_SIZE, MPI_CHAR, MASTER_NODE,
1994+
SU2_MPI::GetComm());
19941995

19951996
/*--- Now parse the string names and load into our marker tag vector.
19961997
We also need to set the values of all markers into the config. ---*/

0 commit comments

Comments
 (0)