Skip to content

Commit

Permalink
Remove unused variables.
Browse files Browse the repository at this point in the history
  • Loading branch information
dylan-copeland committed Apr 19, 2024
1 parent e6c48e3 commit e327a17
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 6 deletions.
1 change: 0 additions & 1 deletion fem/fespace.cpp
Expand Up @@ -2686,7 +2686,6 @@ void FiniteElementSpace::CalcEdgeFaceVarOrders(Array<VarOrderBits> &edge_orders,
mesh->GetFaceEdges(i, E, ori);
for (int j = 0; j < E.Size(); j++)
{
const VarOrderBits initOrders = edge_orders[E[j]];
edge_orders[E[j]] |= face_orders[i];
}
}
Expand Down
8 changes: 5 additions & 3 deletions fem/pfespace.cpp
Expand Up @@ -5104,9 +5104,11 @@ void ParFiniteElementSpace::GhostMasterFaceOrderToEdges(

for (auto edge : edges)
{
// Check whether this order is already in edge_orders
const VarOrderBits andmask = edge_orders[edge] & mask;
const bool newOrder = (andmask == 0);
/*
// Check whether this order is already in edge_orders
const VarOrderBits andmask = edge_orders[edge] & mask;
const bool newOrder = (andmask == 0);
*/

edge_orders[edge] |= mask;

Expand Down
5 changes: 3 additions & 2 deletions mesh/pncmesh.cpp
Expand Up @@ -261,9 +261,10 @@ void ParNCMesh::FindEdgesOfGhostFace(int face, Array<int> & edges)

int V[4], E[4], Eo[4];
const int nfv = GetFaceVerticesEdges(*midt.id, V, E, Eo);
MFEM_ASSERT(nfv == 4, "");

edges.SetSize(4);
for (int i=0; i<4; ++i)
edges.SetSize(nfv);
for (int i=0; i<nfv; ++i)
{
edges[i] = E[i];
}
Expand Down

0 comments on commit e327a17

Please sign in to comment.