Skip to content

Commit a7c98fd

Browse files
committed
Apply pre-commit fixes
1 parent bdf6ae4 commit a7c98fd

1 file changed

Lines changed: 7 additions & 7 deletions

File tree

‎tests/UnitTests/PhasorDynamics/StabilizerIeeestTests.hpp‎

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -900,8 +900,8 @@ namespace GridKit
900900
}
901901
// Check the new single-pass CSR assembly against Enzyme as well.
902902
Fixture<DepVar> automatic(data);
903-
automatic.u() = 0.5;
904-
success *= automatic.initialize();
903+
automatic.u() = 0.5;
904+
success *= automatic.initialize();
905905
setAnswerKey(automatic.model);
906906
auto* automatic_y = automatic.model.y().getData();
907907
auto* automatic_yp = automatic.model.yp().getData();
@@ -913,11 +913,11 @@ namespace GridKit
913913
}
914914
automatic.u().setVariableNumber(2 * static_cast<size_t>(automatic.uIndex()));
915915
automatic.model.updateTime(0.0, 1.0);
916-
success *= (automatic.evaluate() == 0);
917-
success *= (automatic.model.evaluateJacobian() == 0);
918-
const auto assembled = MapFromCsr(automatic.model.getCsrJacobian());
919-
const auto expected_csr = enzymeJacobian(data, success);
920-
success *= (assembled.size() == expected_csr.size());
916+
success *= (automatic.evaluate() == 0);
917+
success *= (automatic.model.evaluateJacobian() == 0);
918+
const auto assembled = MapFromCsr(automatic.model.getCsrJacobian());
919+
const auto expected_csr = enzymeJacobian(data, success);
920+
success *= (assembled.size() == expected_csr.size());
921921
for (size_t row = 0; row < std::min(assembled.size(), expected_csr.size()); ++row)
922922
{
923923
success *= isEqual(assembled[row], expected_csr[row], kTol);

0 commit comments

Comments
 (0)