Skip to content

Commit 9016fc4

Browse files
committed
clang format
1 parent 9e0d6f5 commit 9016fc4

File tree

8 files changed

+14
-19
lines changed

8 files changed

+14
-19
lines changed

src/MeshField.hpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,8 @@ template <typename ExecutionSpace, template <typename...> typename Controller =
3636
MeshField::KokkosController>
3737
decltype(MeshField::CreateCoordinateField<ExecutionSpace, Controller>(
3838
MeshField::MeshInfo()))
39-
createCoordinateField(const MeshField::MeshInfo& mesh_info, Omega_h::Reals coords) {
39+
createCoordinateField(const MeshField::MeshInfo &mesh_info,
40+
Omega_h::Reals coords) {
4041
const auto meshDim = mesh_info.dim;
4142
auto coordField =
4243
MeshField::CreateCoordinateField<ExecutionSpace, Controller>(mesh_info);

src/MeshField_Element.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -291,7 +291,7 @@ struct FieldElement {
291291
of the tangent vector at this point.
292292
line integral:
293293
ds = sqrt(dx^2 + dy^2 + dz^2) */
294-
return Kokkos::View<Real *>("foo", J.extent(0));
294+
return Kokkos::View<Real *>("foo", J.extent(0));
295295
}
296296

297297
/**

src/MeshField_Integrate.hpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -196,7 +196,8 @@ class Integrator {
196196
template <typename FieldElement> void process(FieldElement &fes) {
197197
const auto topo = fes.elm2dof.getTopology();
198198
if (topo[0] != MeshField::Triangle) {
199-
throw std::invalid_argument("Integrator::process only supports triangles.");
199+
throw std::invalid_argument(
200+
"Integrator::process only supports triangles.");
200201
}
201202
pre();
202203
auto ip = getIntegrationPoints(topo[0], order);

src/MeshField_Scan.hpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,8 @@ template <typename ExecutionSpace, typename KernelType, typename resultant>
88
void parallel_scan(ExecutionSpace, std::string tag, int64_t start_index,
99
int64_t end_index, KernelType &scanKernel,
1010
resultant &result) {
11-
static_assert(std::is_standard_layout<resultant>::value && std::is_trivial<resultant>::value);
11+
static_assert(std::is_standard_layout<resultant>::value &&
12+
std::is_trivial<resultant>::value);
1213
Kokkos::RangePolicy<ExecutionSpace, Kokkos::IndexType<int64_t>> p(start_index,
1314
end_index);
1415
Kokkos::parallel_scan(tag, p, scanKernel, result);

src/MeshField_ShapeField.hpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,8 @@ struct ShapeField : public Mixins... {
6161
Shape shape;
6262
const MeshInfo meshInfo;
6363
constexpr static auto Order = Shape::Order;
64-
ShapeField(MeshFieldType &meshFieldIn, const MeshInfo& meshInfoIn, Mixins... mixins)
64+
ShapeField(MeshFieldType &meshFieldIn, const MeshInfo &meshInfoIn,
65+
Mixins... mixins)
6566
: meshField(meshFieldIn), meshInfo(meshInfoIn), Mixins(mixins)... {};
6667
};
6768

test/testElement.cpp

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,8 @@ struct QuadraticTriangleToField {
134134
// evaluate a field at the specified local coordinate for one triangle using
135135
// quadratic shape functions
136136
void quadraticTriangleLocalPointEval() {
137-
const MeshField::MeshInfo meshInfo{.numVtx = 3, .numEdge = 3, .numTri = 1, .dim = 2};
137+
const MeshField::MeshInfo meshInfo{
138+
.numVtx = 3, .numEdge = 3, .numTri = 1, .dim = 2};
138139
auto field = MeshField::CreateLagrangeField<
139140
ExecutionSpace, MeshField::KokkosController, MeshField::Real, 2, 2>(
140141
meshInfo);
@@ -187,11 +188,7 @@ void quadraticTetrahedronLocalPointEval() {
187188
const int MeshDim = 3;
188189
const int ShapeOrder = 2;
189190
const MeshField::MeshInfo meshInfo{
190-
.numVtx = 4,
191-
.numEdge = 6,
192-
.numTri = 4,
193-
.numTet = 1,
194-
.dim = MeshDim};
191+
.numVtx = 4, .numEdge = 6, .numTri = 4, .numTet = 1, .dim = MeshDim};
195192
auto field =
196193
MeshField::CreateLagrangeField<ExecutionSpace,
197194
MeshField::KokkosController,

test/testElementJacobian1d.cpp

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -44,10 +44,7 @@ void setEdgeCoords(size_t numVerts, Kokkos::View<MeshField::Real *> coords,
4444

4545
// evaluate a field at the specified local coordinate for each edge
4646
void edgeJacobian() {
47-
const MeshField::MeshInfo meshInfo{
48-
.numVtx = 2,
49-
.numEdge = 1,
50-
.dim = 1};
47+
const MeshField::MeshInfo meshInfo{.numVtx = 2, .numEdge = 1, .dim = 1};
5148
auto coordField =
5249
MeshField::CreateCoordinateField<ExecutionSpace,
5350
MeshField::KokkosController>(meshInfo);

test/testElementJacobian2d.cpp

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -72,10 +72,7 @@ void setVtxCoords(size_t numVerts, size_t meshDim, TriangleTestCase testTri,
7272
// evaluate a field at the specified local coordinate for each edge
7373
void triJacobian() {
7474
const MeshField::MeshInfo meshInfo{
75-
.numVtx = 3,
76-
.numEdge = 3,
77-
.numTri = 1,
78-
.dim = 2};
75+
.numVtx = 3, .numEdge = 3, .numTri = 1, .dim = 2};
7976
auto coordField =
8077
MeshField::CreateCoordinateField<ExecutionSpace,
8178
MeshField::KokkosController>(meshInfo);

0 commit comments

Comments
 (0)