Skip to content

Commit 5adf619

Browse files
[pre-commit.ci lite] apply automatic fixes
1 parent 5db5557 commit 5adf619

32 files changed

+79
-79
lines changed

arch/gpu_base.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -237,7 +237,7 @@ __host__ void gpu_init_device() {
237237
blocksPerMP = threadsPerMP / GPUTHREADS; // This should be the maximum number of wavefronts per CU
238238
#endif
239239

240-
// Query device capabilities (only for CUDA, not needed for HIP)
240+
// Query device capabilities (only for CUDA, not needed for HIP)
241241
#if defined(USE_GPU) && defined(__CUDACC__)
242242
int supportedMode;
243243
CHK_ERR(cudaDeviceGetAttribute(&supportedMode, cudaDevAttrConcurrentManagedAccess, myDevice));

backgroundfield/backgroundfield.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ void setBackgroundField(const FieldFunction& bgFunction, FsGrid<std::array<Real,
6060
int loopFaceId{phiprof::initializeTimer("loop-face-averages")};
6161
int loopVolumeId{phiprof::initializeTimer("loop-volume-averages")};
6262

63-
// These are threaded now that the dipole field is threadsafe
63+
// These are threaded now that the dipole field is threadsafe
6464
#pragma omp parallel for collapse(2)
6565
for (FsGridTools::FsIndex_t z = 0; z < localSize[2]; ++z) {
6666
for (FsGridTools::FsIndex_t y = 0; y < localSize[1]; ++y) {

backgroundfield/backgroundfield.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ setPerturbedField(const FieldFunction& bfFunction, FsGrid<std::array<Real, numFi
8989

9090
std::array<FsGridTools::FsIndex_t, 3> localSize = BGrid.getLocalSize();
9191

92-
// These are threaded now that the stuff around here is threadsafe
92+
// These are threaded now that the stuff around here is threadsafe
9393
#pragma omp parallel for collapse(2)
9494
for (FsGridTools::FsIndex_t z = 0; z < localSize[2]; ++z) {
9595
for (FsGridTools::FsIndex_t y = 0; y < localSize[1]; ++y) {

fieldsolver/derivatives.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -395,7 +395,7 @@ void calculateDerivativesSimple(
395395
}
396396
mpiTimer.stop();
397397

398-
// Calculate derivatives
398+
// Calculate derivatives
399399
#pragma omp parallel
400400
{
401401
phiprof::Timer computeTimer{computeTimerId};
@@ -532,7 +532,7 @@ void calculateBVOLDerivativesSimple(
532532
volGrid.updateGhostCells();
533533
commTimer.stop(N_cells, "Spatial Cells");
534534

535-
// Calculate derivatives
535+
// Calculate derivatives
536536
#pragma omp parallel
537537
{
538538
phiprof::Timer computeTimer{computeTimerId};
@@ -908,7 +908,7 @@ void calculateScaledDeltasSimple(dccrg::Dccrg<SpatialCell, dccrg::Cartesian_Geom
908908
mpiGrid.update_copies_of_remote_neighbors(Neighborhoods::NEAREST);
909909
commTimer.stop(N_cells, "Spatial Cells");
910910

911-
// Calculate derivatives
911+
// Calculate derivatives
912912
#pragma omp parallel
913913
{
914914
phiprof::Timer computeTimer{computeTimerId};

fieldsolver/gridGlue.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ void filterMoments(
8282
// Filtering Loop
8383
for (int blurPass = 0; blurPass < Parameters::maxFilteringPasses; blurPass++) {
8484

85-
// Blurring Pass
85+
// Blurring Pass
8686
#pragma omp parallel for collapse(2)
8787
for (FsGridTools::FsIndex_t k = 0; k < mntDims[2]; k++) {
8888
for (FsGridTools::FsIndex_t j = 0; j < mntDims[1]; j++) {

fieldsolver/ldz_electric_field.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1544,7 +1544,7 @@ void calculateUpwindedElectricFieldSimple(
15441544

15451545
mpiTimer.stop();
15461546

1547-
// Calculate upwinded electric field
1547+
// Calculate upwinded electric field
15481548
#pragma omp parallel
15491549
{
15501550
phiprof::Timer computeTimer{computeTimerID};

fieldsolver/ldz_gradpe.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -238,7 +238,7 @@ void calculateGradPeTermSimple(
238238
}
239239
mpiTimer.stop();
240240

241-
// Calculate GradPe term
241+
// Calculate GradPe term
242242
#pragma omp parallel
243243
{
244244
phiprof::Timer computeTimer{computeTimerId};

fieldsolver/ldz_magnetic_field.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -313,7 +313,7 @@ void propagateMagneticFieldSimple(
313313
L1Solve.insert(L1Solve.end(), threadL1Solve.begin(), threadL1Solve.end());
314314
}
315315
#pragma omp barrier
316-
// for (auto [i,j,k,dir] : L1Solve) { // not supported with OpenMP on old CLANG
316+
// for (auto [i,j,k,dir] : L1Solve) { // not supported with OpenMP on old CLANG
317317
#pragma omp for // default i.e. schedule(static,1)
318318
for (uint entry = 0; entry < L1Solve.size(); ++entry) {
319319
const int i = L1Solve.at(entry)[0];
@@ -358,7 +358,7 @@ void propagateMagneticFieldSimple(
358358
L2Solve.insert(L2Solve.end(), threadL2Solve.begin(), threadL2Solve.end());
359359
}
360360
#pragma omp barrier
361-
// for (auto [i,j,k,dir] : L2Solve) { // not supported with OpenMP on old CLANG
361+
// for (auto [i,j,k,dir] : L2Solve) { // not supported with OpenMP on old CLANG
362362
#pragma omp for // default i.e. schedule(static,1)
363363
for (uint entry = 0; entry < L2Solve.size(); ++entry) {
364364
const int i = L2Solve.at(entry)[0];

fieldtracing/fieldtracing.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ namespace FieldTracing {
103103

104104
#pragma omp parallel
105105
{
106-
// Trace node coordinates outwards until a non-sysboundary cell is encountered or the local fsgrid domain has been left.
106+
// Trace node coordinates outwards until a non-sysboundary cell is encountered or the local fsgrid domain has been left.
107107
#pragma omp for schedule(dynamic)
108108
for (uint n = 0; n < nodes.size(); n++) {
109109

@@ -515,7 +515,7 @@ namespace FieldTracing {
515515

516516
#pragma omp parallel
517517
{
518-
// Trace node coordinates outwards until a non-sysboundary cell is encountered or the local fsgrid domain has been left.
518+
// Trace node coordinates outwards until a non-sysboundary cell is encountered or the local fsgrid domain has been left.
519519
#pragma omp for schedule(dynamic)
520520
for (uint n = 0; n < nodes.size(); n++) {
521521

@@ -973,7 +973,7 @@ namespace FieldTracing {
973973
{
974974
itCount++;
975975
}
976-
// Trace node coordinates forward and backwards until a non-sysboundary cell is encountered or the local fsgrid domain has been left.
976+
// Trace node coordinates forward and backwards until a non-sysboundary cell is encountered or the local fsgrid domain has been left.
977977
#pragma omp for schedule(dynamic)
978978
for (int n = 0; n < globalDccrgSize; n++) {
979979
if (cellFWConnection[n] % TracingLineEndType::N_TYPES == TracingLineEndType::UNPROCESSED) {

grid.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -293,7 +293,7 @@ void initializeGrids(
293293

294294
for (uint popID = 0; popID < getObjectWrapper().particleSpecies.size(); ++popID) {
295295
adjustVelocityBlocks(mpiGrid, cells, true, popID);
296-
// set initial LB metric based on number of blocks
296+
// set initial LB metric based on number of blocks
297297
#pragma omp parallel for schedule(static)
298298
for (size_t i = 0; i < cells.size(); ++i) {
299299
SpatialCell* SC = mpiGrid[cells[i]];

0 commit comments

Comments
 (0)