File tree 2 files changed +3
-2
lines changed
2 files changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -26,9 +26,9 @@ def __init__(
26
26
_plumed_input = remove_comments_printflush (plumed_input )
27
27
assert "METAD" in _plumed_input
28
28
if "RESTART" not in _plumed_input :
29
- _plumed_input = "RESTART \n " + _plumed_input
29
+ _plumed_input = "\n RESTART \n " + _plumed_input
30
30
if "FLUSH" not in _plumed_input : # add at the end!
31
- _plumed_input = _plumed_input + "FLUSH STRIDE=1\n PRINT"
31
+ _plumed_input = _plumed_input + "\n FLUSH STRIDE=1\n PRINT"
32
32
33
33
# PLUMED + WQ cannot deal with nonexisting hills files!
34
34
if type (external ) in [str , Path ]:
Original file line number Diff line number Diff line change @@ -448,6 +448,7 @@ def test_order_parameter(dataset):
448
448
state = simulation_output .state .result ()
449
449
CV = state .order ["CV" ]
450
450
assert state .energy is None
451
+ assert np .all (np .isnan (state .per_atom .forces ))
451
452
assert np .allclose (CV , np .linalg .det (dataset [3 ].result ().cell ))
452
453
453
454
# test batch evaluation of order parameter
You can’t perform that action at this time.
0 commit comments