Skip to content

Commit

Permalink
Update info check syntax
Browse files Browse the repository at this point in the history
  • Loading branch information
marvinfriede committed Jan 15, 2025
1 parent 2f5be64 commit e3fb4e4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/test_grad.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ int test_numgrad(TMolecule &mol, const int charge, const dparam &par) {
d4grad[i] = 0.0;
}
info = get_dispersion(mol, realIdx, charge, d4, par, cutoff, energy, d4grad);
if (!info == EXIT_SUCCESS) return info;
if (info != EXIT_SUCCESS) return info;

// check translational invariance of analytical gradient
if (is_trans_invar(mol, d4grad) != EXIT_SUCCESS) return EXIT_FAILURE;
Expand Down

0 comments on commit e3fb4e4

Please sign in to comment.