Skip to content

Commit

Permalink
minor
Browse files Browse the repository at this point in the history
  • Loading branch information
kmittal2 committed May 9, 2024
1 parent bb67d6c commit 217b77d
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions tests/unit/fem/test_gslib.cpp
Expand Up @@ -458,17 +458,11 @@ TEST_CASE("GSLIBCustomInterpolation",
ip.Set3(recv_rst(dim*i + 0),recv_rst(dim*i + 1),
recv_rst(dim*i + 2));
}
const FiniteElement *fe = c_fespace.GetFE(e);
ElementTransformation *Tr = c_fespace.GetElementTransformation(e);
Tr->SetIntPoint(&ip);

DenseMatrix dshape(fe->GetDof(), dim);
fe->CalcPhysDShape(*Tr, dshape);

Vector gradloc(grad.GetData()+i*dim,dim);
Vector gridfuncvals;
field_vals.GetElementDofValues(e, gridfuncvals);
dshape.MultTranspose(gridfuncvals, gradloc);
field_vals.GetGradient(*Tr, gradloc);
}

// Send the computed gradient back to the ranks that requested it.
Expand Down

0 comments on commit 217b77d

Please sign in to comment.