Skip to content

Commit

Permalink
Removed debugging print statements
Browse files Browse the repository at this point in the history
  • Loading branch information
cmacmackin committed Dec 16, 2024
1 parent 2bc5155 commit 810ad57
Showing 1 changed file with 0 additions and 12 deletions.
12 changes: 0 additions & 12 deletions unit/src/MFEMEssentialBCTest.C
Original file line number Diff line number Diff line change
Expand Up @@ -291,12 +291,6 @@ TEST_F(MFEMEssentialBCTest, MFEMVectorFunctionNormalDirichletBC)
mfem::Vector actual(3), expected(3), normal = calc_normal(transform);
variable.Eval(actual, *transform, point);
function->Eval(expected, *transform, point);
std::cout << "Normal [" << normal[0] << ", " << normal[1] << ", " << normal[2] << "]"
<< std::endl;
std::cout << "Actual [" << actual[0] << ", " << actual[1] << ", " << actual[2] << "]"
<< std::endl;
std::cout << "Expected [" << expected[0] << ", " << expected[1] << ", " << expected[2]
<< "]" << std::endl;
actual -= expected;
// (actual - expected) should be perpendicular to the normal and have a dot product of 0.
return normal[0] * actual[0] + normal[1] * actual[1] + normal[2] * actual[2];
Expand Down Expand Up @@ -375,12 +369,6 @@ TEST_F(MFEMEssentialBCTest, MFEMVectorFunctionTangentialDirichletBC)
mfem::Vector actual(3), expected(3), normal = calc_normal(transform), cross_prod(3);
variable.Eval(actual, *transform, point);
function->Eval(expected, *transform, point);
std::cout << "Normal [" << normal[0] << ", " << normal[1] << ", " << normal[2] << "]"
<< std::endl;
std::cout << "Actual [" << actual[0] << ", " << actual[1] << ", " << actual[2] << "]"
<< std::endl;
std::cout << "Expected [" << expected[0] << ", " << expected[1] << ", " << expected[2]
<< "]" << std::endl;
actual -= expected;
// (actual - expected) should be parallel to the normal and have a cross product of 0.
cross_prod = normal[1] * actual[2] - normal[2] * actual[1];
Expand Down

0 comments on commit 810ad57

Please sign in to comment.