Skip to content

Commit

Permalink
Fix pre-commit issues
Browse files Browse the repository at this point in the history
  • Loading branch information
sbrus89 committed Feb 2, 2024
1 parent 7d2cb50 commit 8b97c96
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
3 changes: 2 additions & 1 deletion components/omega/src/ocn/HorzMesh.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -527,7 +527,8 @@ void HorzMesh::computeEdgeSign() {
});
EdgeSignOnCellH = EdgeSignOnCell.createHostCopy();

EdgeSignOnVertex = Array2DR8("EdgeSignOnVertex", NVerticesSize, VertexDegree);
EdgeSignOnVertex =
Array2DR8("EdgeSignOnVertex", NVerticesSize, VertexDegree);
yakl::c::parallel_for(
yakl::c::SimpleBounds<1>(NVerticesAll), YAKL_LAMBDA(int Vertex) {
for (int i = 0; i < VertexDegree; i++) {
Expand Down
5 changes: 3 additions & 2 deletions components/omega/test/ocn/HorzMeshTest.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,10 @@
//
//===-----------------------------------------------------------------------===/

#include "Halo.h"
#include "HorzMesh.h"
#include "DataTypes.h"
#include "Decomp.h"
#include "Halo.h"
#include "IO.h"
#include "Logging.h"
#include "MachEnv.h"
Expand Down Expand Up @@ -697,7 +697,8 @@ int main(int argc, char *argv[]) {
// Tests that halo values are read in correctly
OMEGA::ArrayHost1DR8 XVertexTest("XVertexTest", Mesh->NVerticesSize);
Mesh->XVertexH.deep_copy_to(XVertexTest);
for (int Vertex = Mesh->NVerticesOwned; Vertex < Mesh->NVerticesAll; Vertex++) {
for (int Vertex = Mesh->NVerticesOwned; Vertex < Mesh->NVerticesAll;
Vertex++) {
XVertexTest(Vertex) = 0.0;
}
MyHalo.exchangeFullArrayHalo(XVertexTest, OMEGA::OnVertex);
Expand Down

0 comments on commit 8b97c96

Please sign in to comment.