return (enumerator + denominator - 1) / denominator;
}
-gmx_pme_t* gmx_pme_init(const t_commrec* cr,
- const NumPmeDomains& numPmeDomains,
- const t_inputrec* ir,
- gmx_bool bFreeEnergy_q,
- gmx_bool bFreeEnergy_lj,
- gmx_bool bReproducible,
- real ewaldcoeff_q,
- real ewaldcoeff_lj,
- int nthread,
- PmeRunMode runMode,
- PmeGpu* pmeGpu,
- const gmx_device_info_t* gpuInfo,
- PmeGpuProgramHandle pmeGpuProgram,
- const gmx::MDLogger& mdlog)
+gmx_pme_t* gmx_pme_init(const t_commrec* cr,
+ const NumPmeDomains& numPmeDomains,
+ const t_inputrec* ir,
+ gmx_bool bFreeEnergy_q,
+ gmx_bool bFreeEnergy_lj,
+ gmx_bool bReproducible,
+ real ewaldcoeff_q,
+ real ewaldcoeff_lj,
+ int nthread,
+ PmeRunMode runMode,
+ PmeGpu* pmeGpu,
+ const DeviceContext* deviceContext,
+ const DeviceStream* deviceStream,
+ const PmeGpuProgram* pmeGpuProgram,
- const gmx::MDLogger& /*mdlog*/)
++ const gmx::MDLogger& mdlog)
{
int use_threads, sum_use_threads, i;
ivec ndata;
# 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_unit_test(GmxPreprocessTests gmxpreprocess-test
- editconf.cpp
- genconf.cpp
- genion.cpp
- genrestr.cpp
- gpp_atomtype.cpp
- gpp_bond_atomtype.cpp
- insert_molecules.cpp
- readir.cpp
- solvate.cpp
- topdirs.cpp
- )
+gmx_add_gtest_executable(gmxpreprocess-test
+ CPP_SOURCE_FILES
+ editconf.cpp
+ genconf.cpp
+ genion.cpp
++ genrestr.cpp
+ gpp_atomtype.cpp
+ gpp_bond_atomtype.cpp
+ insert_molecules.cpp
+ readir.cpp
+ solvate.cpp
+ topdirs.cpp
+ )
+gmx_register_gtest_test(GmxPreprocessTests gmxpreprocess-test SLOW_TEST)
# Currently these can be slow to run in Jenkins, so they are in
# several test binaries.
include(${_gmx_import_file})
unset(_gmx_import_file)
-get_target_property(_libs libgromacs INTERFACE_LINK_LIBRARIES)
+get_target_property(_libs Gromacs::libgromacs INTERFACE_LINK_LIBRARIES)
if (_libs MATCHES "tng_io::tng_io")
include(CMakeFindDependencyMacro)
- find_dependency(TNG_IO)
+ find_dependency(TNG_IO REQUIRED)
+endif()
+if (_libs MATCHES "OpenMP::OpenMP_CXX")
+ include(CMakeFindDependencyMacro)
+ find_dependency(OpenMP REQUIRED)
endif()
+ if (_libs MATCHES "OpenMP::OpenMP_CXX")
+ include(CMakeFindDependencyMacro)
+ find_dependency(OpenMP REQUIRED)
+ endif()
unset(_libs)
set(GROMACS_INCLUDE_DIRS)
file(GLOB MATH_SOURCES *.cpp)
set(LIBGROMACS_SOURCES ${LIBGROMACS_SOURCES} ${MATH_SOURCES} PARENT_SCOPE)
-# TODO: (https://redmine.gromacs.org/issues/988) Find a new convention for defining public API.
+# TODO: (https://gitlab.com/gromacs/gromacs/-/issues/988) Find a new convention for defining public API.
install(FILES
+ do_fit.h
+ functions.h
+ units.h
+ utilities.h
+ vec.h
vectypes.h
DESTINATION include/gromacs/math)
// does not support it, the actual CUDA LINCS code does support it
if (gmx_mtop_ftype_count(mtop, F_CONSTRNC) > 0)
{
- errorMessage += "Non-connecting constraints are not supported";
+ errorMessage += "Non-connecting constraints are not supported\n";
}
- if (!UpdateConstrainCuda::isNumCoupledConstraintsSupported(mtop))
+ if (!UpdateConstrainGpu::isNumCoupledConstraintsSupported(mtop))
{
errorMessage +=
- "The number of coupled constraints is higher than supported in the CUDA LINCS "
+ "The number of coupled constraints is higher than supported in the GPU LINCS "
"code.\n";
}
install(FILES
arrayref.h
baseversion.h
- classhelpers.h
+ classhelpers.h
enumerationhelpers.h
- exceptions.h
+ exceptions.h
+ listoflists.h
+ fileptr.h
+ futil.h
+ flags.h
+ pleasecite.h
programcontext.h
range.h
smalloc.h