Only use const ref for mtop and inputrec in domdec
[alexxy/gromacs.git] / src / gromacs / domdec / partition.h
index de05c4a73847b7cebcb1f9cd78892d2074085e0d..da3c066737a86ade3a8ce1c8866d5a4abd9c9891 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * This file is part of the GROMACS molecular simulation package.
  *
- * Copyright (c) 2018,2019,2020, by the GROMACS development team, led by
+ * Copyright (c) 2018,2019,2020,2021, by the GROMACS development team, led by
  * Mark Abraham, David van der Spoel, Berk Hess, and Erik Lindahl,
  * and including many others, as listed in the AUTHORS file in the
  * top-level source directory and at http://www.gromacs.org.
@@ -79,7 +79,7 @@ class VirtualSitesHandler;
 bool check_grid_jump(int64_t step, const gmx_domdec_t* dd, real cutoff, const gmx_ddbox_t* ddbox, gmx_bool bFatal);
 
 /*! \brief Print statistics for domain decomposition communication */
-void print_dd_statistics(const t_commrec* cr, const t_inputrec* ir, FILE* fplog);
+void print_dd_statistics(const t_commrec* cr, const t_inputrec& inputrec, FILE* fplog);
 
 /*! \brief Partition the system over the nodes.
  *
@@ -96,7 +96,7 @@ void print_dd_statistics(const t_commrec* cr, const t_inputrec* ir, FILE* fplog)
  * \param[in] nstglobalcomm Will globals be computed on this step
  * \param[in] state_global  Global state
  * \param[in] top_global    Global topology
- * \param[in] ir            Input record
+ * \param[in] inputrec      Input record
  * \param[in] imdSession    IMD handle
  * \param[in] pull_work     Pulling data
  * \param[in] state_local   Local state
@@ -118,7 +118,7 @@ void dd_partition_system(FILE*                     fplog,
                          int                       nstglobalcomm,
                          t_state*                  state_global,
                          const gmx_mtop_t&         top_global,
-                         const t_inputrec*         ir,
+                         const t_inputrec&         inputrec,
                          gmx::ImdSession*          imdSession,
                          pull_t*                   pull_work,
                          t_state*                  state_local,
@@ -146,7 +146,7 @@ void dd_partition_system(FILE*                     fplog,
 void checkNumberOfBondedInteractions(const gmx::MDLogger&           mdlog,
                                      t_commrec*                     cr,
                                      int                            totalNumberOfBondedInteractions,
-                                     const gmx_mtop_t*              top_global,
+                                     const gmx_mtop_t&              top_global,
                                      const gmx_localtop_t*          top_local,
                                      gmx::ArrayRef<const gmx::RVec> x,
                                      const matrix                   box,