File tree 3 files changed +7
-6
lines changed
3 files changed +7
-6
lines changed Original file line number Diff line number Diff line change @@ -2560,7 +2560,7 @@ std::string const colvar::get_state_params() const
2560
2560
<< " x "
2561
2561
<< std::setprecision (cvm::cv_prec)
2562
2562
<< std::setw (cvm::cv_width);
2563
- if (is_enabled (f_cv_external)) {
2563
+ if (is_enabled (f_cv_external) && is_enabled (f_cv_extended_Lagrangian) ) {
2564
2564
// For an external colvar, x is one timestep in the future after integration
2565
2565
// write x at beginning of timestep
2566
2566
os << x_reported << " \n " ;
Original file line number Diff line number Diff line change @@ -100,11 +100,6 @@ int colvarbias::init(std::string const &conf)
100
100
colvar_values[i].type (colvars[i]->value ().type ());
101
101
colvar_forces[i].type (colvar_values[i].type ());
102
102
previous_colvar_forces[i].type (colvar_values[i].type ());
103
- if (!colvars[i]->is_enabled (f_cv_total_force_current_step)) {
104
- // If any colvar does not have current-step total force, then
105
- // we can't do step 0 data
106
- feature_states[f_cvb_step_zero_data].available = false ;
107
- }
108
103
}
109
104
110
105
output_prefix = cvm::output_prefix ();
Original file line number Diff line number Diff line change @@ -136,6 +136,12 @@ int colvarbias_abf::init(std::string const &conf)
136
136
enable (f_cvb_extended);
137
137
}
138
138
139
+ if (!colvars[i]->is_enabled (f_cv_total_force_current_step)) {
140
+ // If any colvar does not have current-step total force, then
141
+ // we can't do step 0 data
142
+ provide (f_cvb_step_zero_data, false );
143
+ }
144
+
139
145
// Cannot mix and match coarse time steps with ABF because it gives
140
146
// wrong total force averages - total force needs to be averaged over
141
147
// every time step
You can’t perform that action at this time.
0 commit comments