Skip to content

Commit

Permalink
Fix TacsAssertAllClose
Browse files Browse the repository at this point in the history
  • Loading branch information
A-CGray committed Jun 1, 2023
1 parent e6f3650 commit 90b1a72
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/elements/TACSElementVerification.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ bool TacsAssertAllClose(TacsScalar *testVals, TacsScalar *refVals, int size,
bool all_close = true;
for (int i = 0; i < size; i++) {
if (fabs(TacsRealPart(testVals[i] - refVals[i])) >
atol + rtol * fabs(TacsRealPart(testVals[i]))) {
atol + rtol * fabs(TacsRealPart(refVals[i]))) {
all_close = false;
break;
}
Expand Down

0 comments on commit 90b1a72

Please sign in to comment.