# Cycle counters in timing use comrec for the set up, which is in the mdtypes. This introduces
# cyclic dependencies if the cycle counting is used anywhere in mdtypes.
timing -> mdtypes
+
+# awh has dependencies in mdlib and pulling that need resolving.
+mdlib -> applied_forces
add_subdirectory(swap)
add_subdirectory(essentialdynamics)
add_subdirectory(pulling)
-add_subdirectory(awh)
add_subdirectory(simd)
add_subdirectory(imd)
add_subdirectory(compat)
electricfield.cpp
)
+add_subdirectory(awh)
add_subdirectory(densityfitting)
if (BUILD_TESTING)
#
# This file is part of the GROMACS molecular simulation package.
#
-# Copyright (c) 2014,2015,2016,2017, by the GROMACS development team, led by
+# Copyright (c) 2014,2015,2016,2017,2020, 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.
# To help us fund GROMACS development, we humbly ask that you cite
# the research papers on the package. Check out http://www.gromacs.org.
-file(GLOB AWH_SOURCES *.cpp)
-set(LIBGROMACS_SOURCES ${LIBGROMACS_SOURCES} ${AWH_SOURCES} PARENT_SCOPE)
+gmx_add_libgromacs_sources(awh.cpp
+ bias.cpp
+ biasgrid.cpp
+ biasparams.cpp
+ biassharing.cpp
+ biasstate.cpp
+ biaswriter.cpp
+ coordstate.cpp
+ correlationgrid.cpp
+ correlationhistory.cpp
+ correlationtensor.cpp
+ histogramsize.cpp
+ pointstate.cpp
+ read_params.cpp)
if (BUILD_TESTING)
add_subdirectory(tests)
/*! \libinternal
* \defgroup module_awh Accelerated weight histogram (AWH) method
- * \ingroup group_mdrun
+ * \ingroup module_applied_forces
* \brief
* Implements the "accelerated weight histogram" sampling method.
*
/*
* This file is part of the GROMACS molecular simulation package.
*
- * Copyright (c) 2017,2019, by the GROMACS development team, led by
+ * Copyright (c) 2017,2019,2020, 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.
#include <cassert>
#include <cmath>
-#include "gromacs/awh/awh.h"
+#include "gromacs/applied_forces/awh/awh.h"
#include "gromacs/mdtypes/awh_params.h"
#include "gromacs/mdtypes/commrec.h"
#include "gromacs/trajectory/energyframe.h"
/*
* This file is part of the GROMACS molecular simulation package.
*
- * Copyright (c) 2015,2016,2017,2018,2019, by the GROMACS development team, led by
+ * Copyright (c) 2015,2016,2017,2018,2019,2020, 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) 2015,2016,2017,2019, by the GROMACS development team, led by
+ * Copyright (c) 2015,2016,2017,2019,2020, 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) 2015,2016,2017,2018,2019, by the GROMACS development team, led by
+ * Copyright (c) 2015,2016,2017,2018,2019,2020, 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) 2015,2016,2017,2019, by the GROMACS development team, led by
+ * Copyright (c) 2015,2016,2017,2019,2020, 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) 2015,2016,2017,2018,2019, by the GROMACS development team, led by
+ * Copyright (c) 2015,2016,2017,2018,2019,2020, 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) 2015,2016,2017,2018,2019, by the GROMACS development team, led by
+ * Copyright (c) 2015,2016,2017,2018,2019,2020, 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.
#include "read_params.h"
-#include "gromacs/awh/awh.h"
+#include "gromacs/applied_forces/awh/awh.h"
#include "gromacs/fileio/readinp.h"
#include "gromacs/fileio/warninp.h"
#include "gromacs/math/units.h"
*/
#include "gmxpre.h"
-#include "gromacs/awh/bias.h"
+#include "gromacs/applied_forces/awh/bias.h"
#include <cmath>
#include <gmock/gmock.h>
#include <gtest/gtest.h>
-#include "gromacs/awh/correlationgrid.h"
-#include "gromacs/awh/pointstate.h"
+#include "gromacs/applied_forces/awh/correlationgrid.h"
+#include "gromacs/applied_forces/awh/pointstate.h"
#include "gromacs/mdtypes/awh_params.h"
#include "gromacs/utility/stringutil.h"
#include <gmock/gmock.h>
#include <gtest/gtest.h>
-#include "gromacs/awh/bias.h"
-#include "gromacs/awh/correlationgrid.h"
-#include "gromacs/awh/pointstate.h"
+#include "gromacs/applied_forces/awh/bias.h"
+#include "gromacs/applied_forces/awh/correlationgrid.h"
+#include "gromacs/applied_forces/awh/pointstate.h"
#include "gromacs/mdtypes/awh_params.h"
#include "gromacs/utility/stringutil.h"
*/
#include "gmxpre.h"
-#include "gromacs/awh/biasgrid.h"
+#include "gromacs/applied_forces/awh/biasgrid.h"
#include <cmath>
*/
#include "gmxpre.h"
-#include "gromacs/awh/biasstate.h"
+#include "gromacs/applied_forces/awh/biasstate.h"
#include <cmath>
#include <gmock/gmock.h>
#include <gtest/gtest.h>
-#include "gromacs/awh/biasgrid.h"
-#include "gromacs/awh/pointstate.h"
+#include "gromacs/applied_forces/awh/biasgrid.h"
+#include "gromacs/applied_forces/awh/pointstate.h"
#include "gromacs/math/functions.h"
#include "gromacs/mdtypes/awh_params.h"
#include "gromacs/utility/arrayref.h"
gmx_add_unit_test(DensityFittingAppliedForcesUnitTest density_fitting_applied_forces-test
CPP_SOURCE_FILES
densityfitting.cpp
- densityfittingoptions.cpp
densityfittingamplitudelookup.cpp
+ densityfittingforceprovider.cpp
+ densityfittingoptions.cpp
)
*/
#include "gmxpre.h"
-#include <gtest/gtest.h>
-
#include "gromacs/applied_forces/densityfitting/densityfittingforceprovider.h"
+#include <gtest/gtest.h>
+
namespace gmx
{
gmx_add_unit_test(AppliedForcesUnitTest applied_forces-test
CPP_SOURCE_FILES
- densityfittingforceprovider.cpp
electricfield.cpp
)
#include <sys/types.h>
-#include "gromacs/awh/read_params.h"
+#include "gromacs/applied_forces/awh/read_params.h"
#include "gromacs/commandline/pargs.h"
#include "gromacs/ewald/ewald_utils.h"
#include "gromacs/ewald/pme.h"
#include <algorithm>
#include <string>
-#include "gromacs/awh/read_params.h"
+#include "gromacs/applied_forces/awh/read_params.h"
#include "gromacs/fileio/readinp.h"
#include "gromacs/fileio/warninp.h"
#include "gromacs/gmxlib/network.h"
#include <array>
#include <string>
-#include "gromacs/awh/awh.h"
+#include "gromacs/applied_forces/awh/awh.h"
#include "gromacs/fileio/enxio.h"
#include "gromacs/fileio/gmxfio.h"
#include "gromacs/fileio/xvgr.h"
#include <array>
-#include "gromacs/awh/awh.h"
+#include "gromacs/applied_forces/awh/awh.h"
#include "gromacs/domdec/dlbtiming.h"
#include "gromacs/domdec/domdec.h"
#include "gromacs/domdec/domdec_struct.h"
#include <memory>
#include <numeric>
-#include "gromacs/awh/awh.h"
+#include "gromacs/applied_forces/awh/awh.h"
#include "gromacs/commandline/filenm.h"
#include "gromacs/domdec/collect.h"
#include "gromacs/domdec/dlbtiming.h"
#include <algorithm>
#include <memory>
-#include "gromacs/awh/awh.h"
+#include "gromacs/applied_forces/awh/awh.h"
#include "gromacs/commandline/filenm.h"
#include "gromacs/domdec/collect.h"
#include "gromacs/domdec/dlbtiming.h"
#include <algorithm>
#include <memory>
-#include "gromacs/awh/awh.h"
+#include "gromacs/applied_forces/awh/awh.h"
#include "gromacs/commandline/filenm.h"
#include "gromacs/domdec/collect.h"
#include "gromacs/domdec/dlbtiming.h"