Skip to content

Commit

Permalink
Updates for clang format 19
Browse files Browse the repository at this point in the history
  • Loading branch information
hughcars committed Oct 16, 2024
1 parent 5dc0e03 commit 798e2e1
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
7 changes: 3 additions & 4 deletions palace/fem/errorindicator.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -38,10 +38,9 @@ void ErrorIndicator::AddIndicator(const Vector &indicator)
const int Dn = n;
const auto *DI = indicator.Read();
auto *DL = local.ReadWrite();
mfem::forall_switch(use_dev, N,
[=] MFEM_HOST_DEVICE(int i) {
DL[i] = std::sqrt((DL[i] * DL[i] * Dn + DI[i] * DI[i]) / (Dn + 1));
});
mfem::forall_switch(
use_dev, N, [=] MFEM_HOST_DEVICE(int i)
{ DL[i] = std::sqrt((DL[i] * DL[i] * Dn + DI[i] * DI[i]) / (Dn + 1)); });

// More samples have been added, update for the running average.
n += 1;
Expand Down
3 changes: 2 additions & 1 deletion palace/utils/geodata.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1362,7 +1362,8 @@ BoundingBox BoundingBallFromPointCloud(MPI_Comm comm,
// Find the next point as the vertex furthest from the initial axis.
const Eigen::Vector3d n_1 = (*p_2 - *p_1).normalized();
auto p_3 = std::max_element(vertices.begin(), vertices.end(),
[&](const auto &x, const auto &y) {
[&](const auto &x, const auto &y)
{
return PerpendicularDistance({n_1}, *p_1, x) <
PerpendicularDistance({n_1}, *p_1, y);
});
Expand Down

0 comments on commit 798e2e1

Please sign in to comment.