#include "md_support.h"
#include <climits>
+#include <cmath>
#include <algorithm>
#include "gromacs/mdtypes/commrec.h"
#include "gromacs/mdtypes/df_history.h"
#include "gromacs/mdtypes/energyhistory.h"
+#include "gromacs/mdtypes/forcerec.h"
#include "gromacs/mdtypes/group.h"
#include "gromacs/mdtypes/inputrec.h"
#include "gromacs/mdtypes/md_enums.h"
t_state *state, t_mdatoms *mdatoms,
t_nrnb *nrnb, t_vcm *vcm, gmx_wallcycle_t wcycle,
gmx_enerdata_t *enerd, tensor force_vir, tensor shake_vir, tensor total_vir,
- tensor pres, rvec mu_tot, struct gmx_constr *constr,
+ tensor pres, rvec mu_tot, gmx::Constraints *constr,
gmx::SimulationSignaller *signalCoordinator,
matrix box, int *totalNumberOfBondedInteractions,
gmx_bool *bSumEkinhOld, int flags)
}
}
- if (!ekind->bNEMD && debug && bTemp && (vcm->nr > 0))
- {
- correct_ekin(debug,
- 0, mdatoms->homenr,
- as_rvec_array(state->v.data()), vcm->group_p[0],
- mdatoms->massT, mdatoms->tmass, ekind->ekin);
- }
-
/* Do center of mass motion removal */
if (bStopCM)
{
{
/* find out between which two value of lambda we should be */
real frac = step*fepvals->delta_lambda;
- int fep_state = static_cast<int>(floor(frac*fepvals->n_lambda));
+ int fep_state = static_cast<int>(std::floor(frac*fepvals->n_lambda));
/* interpolate between this state and the next */
/* this assumes that the initial lambda corresponds to lambda==0, which is verified in grompp */
frac = frac*fepvals->n_lambda - fep_state;
real frac = step*fepvals->delta_lambda;
if (fepvals->n_lambda > 0)
{
- int fep_state = static_cast<int>(floor(frac*fepvals->n_lambda));
+ int fep_state = static_cast<int>(std::floor(frac*fepvals->n_lambda));
/* interpolate between this state and the next */
/* this assumes that the initial lambda corresponds to lambda==0, which is verified in grompp */
frac = frac*fepvals->n_lambda - fep_state;