src/gromacs/mdlib/nbnxn_search_simd_2xnn.h: warning: should include "simd.h"
src/gromacs/mdlib/nbnxn_search_simd_4xn.h: warning: should include "simd.h"
-# There's no decision yet on how to name and organize modules of functionality
-# specific to mdrun
-: error: no matching directory for module: module_mdrun
-
# This module name doesn't really fall into any currently used pattern; needs some thought
: error: no matching directory for module: module_mdrun_integration_tests
add_subdirectory(hardware)
add_subdirectory(linearalgebra)
add_subdirectory(math)
+add_subdirectory(mdrun)
add_subdirectory(mdrunutility)
add_subdirectory(mdtypes)
add_subdirectory(onlinehelp)
/*
* This file is part of the GROMACS molecular simulation package.
*
- * Copyright (c) 2014,2015, by the GROMACS development team, led by
+ * Copyright (c) 2014,2015,2018, 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.
/*
* This file is part of the GROMACS molecular simulation package.
*
- * Copyright (c) 2012,2014,2015,2017, by the GROMACS development team, led by
+ * Copyright (c) 2012,2014,2015,2017,2018, 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.
--- /dev/null
+#
+# This file is part of the GROMACS molecular simulation package.
+#
+# Copyright (c) 2018, 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.
+#
+# GROMACS is free software; you can redistribute it and/or
+# modify it under the terms of the GNU Lesser General Public License
+# as published by the Free Software Foundation; either version 2.1
+# of the License, or (at your option) any later version.
+#
+# GROMACS is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+# Lesser General Public License for more details.
+#
+# You should have received a copy of the GNU Lesser General Public
+# License along with GROMACS; if not, see
+# http://www.gnu.org/licenses, or write to the Free Software Foundation,
+# Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
+#
+# If you want to redistribute modifications to GROMACS, please
+# consider that scientific software is very special. Version
+# control is crucial - bugs must be traceable. We will be happy to
+# consider code for inclusion in the official distribution, but
+# derived work must not be called official GROMACS. Details are found
+# in the README & COPYING files - if they are missing, get the
+# official version at http://www.gromacs.org.
+#
+# To help us fund GROMACS development, we humbly ask that you cite
+# the research papers on the package. Check out http://www.gromacs.org.
+
+gmx_add_libgromacs_sources(
+ md.cpp
+ minimize.cpp
+ runner.cpp
+ tpi.cpp
+ )
+
+if (BUILD_TESTING)
+# TODO import this from src/programs/mdrun/tests
+# add_subdirectory(tests)
+endif()
/*! \brief Declares the integrator type for mdrun
*
* \author David van der Spoel <david.vanderspoel@icm.uu.se>
- * \ingroup module_mdlib
+ * \ingroup module_mdrun
*/
-#ifndef GMX_MDLIB_INTEGRATOR_H
-#define GMX_MDLIB_INTEGRATOR_H
+#ifndef GMX_MDRUN_INTEGRATOR_H
+#define GMX_MDRUN_INTEGRATOR_H
#include <cstdio>
} // namespace gmx
-#endif // GMX_MDLIB_INTEGRATOR_H
+#endif // GMX_MDRUN_INTEGRATOR_H
* To help us fund GROMACS development, we humbly ask that you cite
* the research papers on the package. Check out http://www.gromacs.org.
*/
+/*! \internal \file
+ *
+ * \brief Implements the integrator for normal molecular dynamics simulations
+ *
+ * \author David van der Spoel <david.vanderspoel@icm.uu.se>
+ * \ingroup module_mdrun
+ */
#include "gmxpre.h"
#include "md.h"
#include "gromacs/math/vectypes.h"
#include "gromacs/mdlib/compute_io.h"
#include "gromacs/mdlib/constr.h"
+#include "gromacs/mdlib/deform.h"
#include "gromacs/mdlib/ebin.h"
#include "gromacs/mdlib/expanded.h"
#include "gromacs/mdlib/force.h"
#include "gromacs/mdlib/mdoutf.h"
#include "gromacs/mdlib/mdrun.h"
#include "gromacs/mdlib/mdsetup.h"
+#include "gromacs/mdlib/membed.h"
#include "gromacs/mdlib/nb_verlet.h"
#include "gromacs/mdlib/nbnxn_gpu_data_mgmt.h"
#include "gromacs/mdlib/ns.h"
+#include "gromacs/mdlib/repl_ex.h"
#include "gromacs/mdlib/shellfc.h"
#include "gromacs/mdlib/sighandler.h"
#include "gromacs/mdlib/sim_util.h"
#include "gromacs/utility/real.h"
#include "gromacs/utility/smalloc.h"
-#include "deform.h"
-#include "membed.h"
-#include "repl_ex.h"
-
#ifdef GMX_FAHCORE
#include "corewrap.h"
#endif
using gmx::SimulationSignaller;
+//! Resets all the counters.
static void reset_all_counters(FILE *fplog, const gmx::MDLogger &mdlog, t_commrec *cr,
gmx_int64_t step,
gmx_int64_t *step_rel, t_inputrec *ir,
/*
* This file is part of the GROMACS molecular simulation package.
*
- * Copyright (c) 2015, by the GROMACS development team, led by
+ * Copyright (c) 2015,2018, 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.
*/
/*! \internal \file
*
- * \brief Declares the integrators for molecular dynamics simulations
+ * \brief Declares the integrator for normal molecular dynamics simulations
*
* \author David van der Spoel <david.vanderspoel@icm.uu.se>
- * \ingroup module_mdlib
+ * \ingroup module_mdrun
*/
-#ifndef GMX_MDLIB_MD_H
-#define GMX_MDLIB_MD_H
+#ifndef GMX_MDRUN_MD_H
+#define GMX_MDRUN_MD_H
-#include "gromacs/mdlib/integrator.h"
+#include "integrator.h"
namespace gmx
{
} // namespace gmx
-#endif // GMX_MDLIB_MD_H
+#endif // GMX_MDRUN_MD_H
*
* \author Berk Hess <hess@kth.se>
* \author Erik Lindahl <erik@kth.se>
- * \ingroup module_mdlib
+ * \ingroup module_mdrun
*/
#include "gmxpre.h"
/*
* This file is part of the GROMACS molecular simulation package.
*
- * Copyright (c) 2015, by the GROMACS development team, led by
+ * Copyright (c) 2015,2018, 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.
/*! \brief Declares the integrators for energy minimization and NMA
*
* \author David van der Spoel <david.vanderspoel@icm.uu.se>
- * \ingroup module_mdlib
+ * \ingroup module_mdrun
*/
-#ifndef GMX_MDLIB_MINIMIZE_H
-#define GMX_MDLIB_MINIMIZE_H
+#ifndef GMX_MDRUN_MINIMIZE_H
+#define GMX_MDRUN_MINIMIZE_H
-#include "gromacs/mdlib/integrator.h"
+#include "integrator.h"
namespace gmx
{
} // namespace gmx
-#endif // GMX_MDLIB_MINIMIZE_H
+#endif // GMX_MDRUN_MINIMIZE_H
* \brief Implements the MD runner routine calling all integrators.
*
* \author David van der Spoel <david.vanderspoel@icm.uu.se>
- * \ingroup module_mdlib
+ * \ingroup module_mdrun
*/
#include "gmxpre.h"
#include "gromacs/math/vec.h"
#include "gromacs/mdlib/calc_verletbuf.h"
#include "gromacs/mdlib/constr.h"
+#include "gromacs/mdlib/deform.h"
#include "gromacs/mdlib/force.h"
#include "gromacs/mdlib/forcerec.h"
#include "gromacs/mdlib/gmx_omp_nthreads.h"
-#include "gromacs/mdlib/integrator.h"
#include "gromacs/mdlib/main.h"
#include "gromacs/mdlib/md_support.h"
#include "gromacs/mdlib/mdatoms.h"
#include "gromacs/mdlib/mdrun.h"
-#include "gromacs/mdlib/minimize.h"
+#include "gromacs/mdlib/membed.h"
#include "gromacs/mdlib/nb_verlet.h"
#include "gromacs/mdlib/nbnxn_gpu_data_mgmt.h"
#include "gromacs/mdlib/nbnxn_search.h"
#include "gromacs/mdlib/nbnxn_tuning.h"
#include "gromacs/mdlib/qmmm.h"
+#include "gromacs/mdlib/repl_ex.h"
#include "gromacs/mdlib/sighandler.h"
#include "gromacs/mdlib/sim_util.h"
-#include "gromacs/mdlib/tpi.h"
#include "gromacs/mdrunutility/mdmodules.h"
#include "gromacs/mdrunutility/threadaffinity.h"
#include "gromacs/mdtypes/commrec.h"
#include "gromacs/utility/smalloc.h"
#include "gromacs/utility/stringutil.h"
-#include "deform.h"
+#include "integrator.h"
#include "md.h"
-#include "membed.h"
-#include "repl_ex.h"
+#include "minimize.h"
+#include "tpi.h"
#ifdef GMX_FAHCORE
#include "corewrap.h"
* \brief Declares the routine running the inetgrators.
*
* \author David van der Spoel <david.vanderspoel@icm.uu.se>
- * \ingroup module_mdlib
+ * \ingroup module_mdrun
*/
-#ifndef GMX_MDLIB_RUNNER_H
-#define GMX_MDLIB_RUNNER_H
+#ifndef GMX_MDRUN_RUNNER_H
+#define GMX_MDRUN_RUNNER_H
#include <cstdio>
#include "gromacs/hardware/hw_info.h"
#include "gromacs/math/vec.h"
#include "gromacs/mdlib/mdrun.h"
+#include "gromacs/mdlib/repl_ex.h"
#include "gromacs/utility/basedefinitions.h"
#include "gromacs/utility/real.h"
-#include "repl_ex.h"
-
struct gmx_output_env_t;
struct ReplicaExchangeParameters;
struct t_commrec;
} // namespace gmx
-#endif // GMX_MDLIB_RUNNER_H
+#endif // GMX_MDRUN_RUNNER_H
* \brief This file defines the integrator for test particle insertion
*
* \author Berk Hess <hess@kth.se>
- * \ingroup module_mdlib
+ * \ingroup module_mdrun
*/
#include "gmxpre.h"
/*
* This file is part of the GROMACS molecular simulation package.
*
- * Copyright (c) 2015, by the GROMACS development team, led by
+ * Copyright (c) 2015,2018, 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.
/*! \brief Declares the integrator for test particle insertion
*
* \author Berk Hess <hess@kth.se>
- * \ingroup module_mdlib
+ * \ingroup module_mdrunx
*/
-#ifndef GMX_MDLIB_TPI_H
-#define GMX_MDLIB_TPI_H
+#ifndef GMX_MDRUN_TPI_H
+#define GMX_MDRUN_TPI_H
-#include "gromacs/mdlib/integrator.h"
+#include "integrator.h"
namespace gmx
{
} // namespace gmx
-#endif // GMX_MDLIB_TPI_H
+#endif // GMX_MDRUN_TPI_H
#include "gromacs/gmxlib/network.h"
#include "gromacs/mdlib/main.h"
#include "gromacs/mdlib/mdrun.h"
+#include "gromacs/mdlib/repl_ex.h"
+#include "gromacs/mdrun/runner.h"
#include "gromacs/mdrunutility/handlerestart.h"
#include "gromacs/mdtypes/commrec.h"
#include "gromacs/utility/arraysize.h"
#include "gromacs/utility/smalloc.h"
#include "mdrun_main.h"
-#include "repl_ex.h"
-#include "runner.h"
/*! \brief Return whether the command-line parameter that
* will trigger a multi-simulation is set */