}
void dd_move_x(gmx_domdec_t *dd,
- matrix box,
+ const matrix box,
gmx::ArrayRef<gmx::RVec> x,
gmx_wallcycle *wcycle)
{
/*! \brief Communicate the coordinates to the neighboring cells and do pbc. */
void dd_move_x(struct gmx_domdec_t *dd,
- matrix box,
+ const matrix box,
gmx::ArrayRef<gmx::RVec> x,
gmx_wallcycle *wcycle);
rvec force[],
t_edpar *edi,
int64_t step,
- matrix box,
+ const matrix box,
const t_commrec *cr,
gmx_bool bNS) /* Are we in a neighbor searching step? */
{
const rvec x[],
rvec force[],
gmx_edsam *ed,
- matrix box,
+ const matrix box,
int64_t step,
gmx_bool bNS)
{
const rvec x[],
rvec force[],
gmx_edsam *ed,
- matrix box,
+ const matrix box,
int64_t step,
gmx_bool bNS);
int maxshift_x, int maxshift_y);
/*! \brief Send the coordinates to our PME-only node and request a PME calculation */
-void gmx_pme_send_coordinates(const t_commrec *cr, matrix box, rvec *x,
+void gmx_pme_send_coordinates(const t_commrec *cr, const matrix box, const rvec *x,
real lambda_q, real lambda_lj,
gmx_bool bEnerVir,
int64_t step, gmx_wallcycle *wcycle);
real gmx_unused *chargeA, real gmx_unused *chargeB,
real gmx_unused *c6A, real gmx_unused *c6B,
real gmx_unused *sigmaA, real gmx_unused *sigmaB,
- matrix box, rvec gmx_unused *x,
+ const matrix box, const rvec gmx_unused *x,
real lambda_q, real lambda_lj,
int maxshift_x, int maxshift_y,
int64_t step)
}
if (flags & PP_PME_COORD)
{
- MPI_Isend(x[0], n*sizeof(rvec), MPI_BYTE,
+ /* MPI_Isend does not accept a const buffer pointer */
+ real *xRealPtr = const_cast<real *>(x[0]);
+ MPI_Isend(xRealPtr, n*sizeof(rvec), MPI_BYTE,
dd->pme_nodeid, eCommType_COORD, cr->mpi_comm_mysim,
&dd->req_pme[dd->nreq_pme++]);
}
nullptr, nullptr, 0, 0, maxshift_x, maxshift_y, -1);
}
-void gmx_pme_send_coordinates(const t_commrec *cr, matrix box, rvec *x,
+void gmx_pme_send_coordinates(const t_commrec *cr, const matrix box, const rvec *x,
real lambda_q, real lambda_lj,
gmx_bool bEnerVir,
int64_t step, gmx_wallcycle *wcycle)
t_nrnb *nrnb,
gmx_wallcycle *wcycle,
const gmx_localtop_t *top,
- matrix box,
+ const matrix box,
gmx::ArrayRefWithPadding<gmx::RVec> coordinates,
history_t *hist,
gmx::ArrayRefWithPadding<gmx::RVec> force,
double t,
gmx_wallcycle_t wcycle,
ForceProviders *forceProviders,
- matrix box,
+ const matrix box,
gmx::ArrayRef<const gmx::RVec> x,
const t_mdatoms *mdatoms,
real *lambda,
* \param[in] wcycle The wallcycle structure
*/
static inline void launchPmeGpuSpread(gmx_pme_t *pmedata,
- matrix box,
- rvec x[],
+ const matrix box,
+ const rvec x[],
int flags,
int pmeFlags,
gmx_wallcycle_t wcycle)
t_nrnb *nrnb,
gmx_wallcycle_t wcycle,
const gmx_localtop_t *top,
- matrix box,
+ const matrix box,
gmx::ArrayRefWithPadding<gmx::RVec> x, //NOLINT(performance-unnecessary-value-param)
history_t *hist,
gmx::ArrayRefWithPadding<gmx::RVec> force, //NOLINT(performance-unnecessary-value-param)
rvec x[],
gmx_bool bOutstepRot,
gmx_bool bOutstepSlab,
- matrix box)
+ const matrix box)
{
int count, ii, iigrp;
rvec xj; /* position in the i-sum */
rvec x[],
gmx_bool bOutstepRot,
gmx_bool bOutstepSlab,
- matrix box)
+ const matrix box)
{
int count, iigrp;
rvec xj, yj0; /* current and reference position */
gmx_enfrot *enfrot, /* Other rotation data */
gmx_enfrotgrp *erg,
rvec x[], /* The local positions */
- matrix box,
+ const matrix box,
double t, /* Time in picoseconds */
gmx_bool bOutstepRot, /* Output to main rotation output file */
gmx_bool bOutstepSlab) /* Output per-slab data */
static void do_radial_motion_pf(
gmx_enfrotgrp *erg,
rvec x[], /* The positions */
- matrix box, /* The simulation box */
+ const matrix box, /* The simulation box */
gmx_bool bOutstepRot, /* Output to main rotation output file */
gmx_bool bOutstepSlab) /* Output per-slab data */
{
static void do_radial_motion2(
gmx_enfrotgrp *erg,
rvec x[], /* The positions */
- matrix box, /* The simulation box */
+ const matrix box, /* The simulation box */
gmx_bool bOutstepRot, /* Output to main rotation output file */
gmx_bool bOutstepSlab) /* Output per-slab data */
{
* its rotated reference */
static void choose_pbc_image(rvec x[],
gmx_enfrotgrp *erg,
- matrix box, int npbcdim)
+ const matrix box, int npbcdim)
{
const auto &localRotationGroupIndex = erg->atomSet->localIndex();
for (gmx::index i = 0; i < localRotationGroupIndex.ssize(); i++)
void do_rotation(const t_commrec *cr,
gmx_enfrot *er,
- matrix box,
+ const matrix box,
rvec x[],
real t,
int64_t step,
*/
void do_rotation(const t_commrec *cr,
gmx_enfrot *er,
- matrix box,
+ const matrix box,
rvec x[],
real t,
int64_t step,