Skip to content

Commit 63f3b9f

Browse files
authored
Update info check syntax (#39)
1 parent 2f5be64 commit 63f3b9f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/test_grad.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ int test_numgrad(TMolecule &mol, const int charge, const dparam &par) {
7171
d4grad[i] = 0.0;
7272
}
7373
info = get_dispersion(mol, realIdx, charge, d4, par, cutoff, energy, d4grad);
74-
if (!info == EXIT_SUCCESS) return info;
74+
if (info != EXIT_SUCCESS) return info;
7575

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

0 commit comments

Comments
 (0)