Skip to content

Commit

Permalink
gromacs-2024.2 patch
Browse files Browse the repository at this point in the history
not fully tested (hrex, trex, lambda stuff, ...)
  • Loading branch information
carlocamilloni committed Jun 9, 2024
1 parent 6af4bde commit 6995602
Show file tree
Hide file tree
Showing 33 changed files with 37,488 additions and 0 deletions.
38 changes: 38 additions & 0 deletions patches/gromacs-2024.2.config
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@


function plumed_preliminary_test(){
# check if the README contains the word GROMACS and if gromacs has been already configured
grep -q GROMACS README 1>/dev/null 2>/dev/null
}

function plumed_patch_info(){
cat << EOF
PLUMED can be incorporated into gromacs using the standard patching procedure.
Patching must be done in the gromacs root directory _before_ the cmake command is invoked.

On clusters you may want to patch gromacs using the static version of plumed, in this case
building gromacs can result in multiple errors. One possible solution is to configure gromacs
with these additional options:

cmake -DBUILD_SHARED_LIBS=OFF -DGMX_PREFER_STATIC_LIBS=ON

To enable PLUMED in a gromacs simulation one should use
mdrun with an extra -plumed flag. The flag can be used to
specify the name of the PLUMED input file, e.g.:

gmx mdrun -plumed plumed.dat

For more information on gromacs you should visit http://www.gromacs.org

EOF
}

plumed_before_patch(){
plumed_patch_info

mv cmake/gmxVersionInfo.cmake cmake/gmxVersionInfo.cmake.preplumed
awk -v version="$PLUMED_VERSION" '/^set\(GMX_VERSION_STRING_OF_FORK/{gsub(/""/, "plumed-" version)}; {print}' cmake/gmxVersionInfo.cmake.preplumed > cmake/gmxVersionInfo.cmake
}

PLUMED_PREPLUMED_IGNORE=cmake/gmxVersionInfo.cmake

473 changes: 473 additions & 0 deletions patches/gromacs-2024.2.diff/cmake/gmxVersionInfo.cmake

Large diffs are not rendered by default.

473 changes: 473 additions & 0 deletions patches/gromacs-2024.2.diff/cmake/gmxVersionInfo.cmake.preplumed

Large diffs are not rendered by default.

575 changes: 575 additions & 0 deletions patches/gromacs-2024.2.diff/src/gromacs/CMakeLists.txt

Large diffs are not rendered by default.

572 changes: 572 additions & 0 deletions patches/gromacs-2024.2.diff/src/gromacs/CMakeLists.txt.preplumed

Large diffs are not rendered by default.

Loading

1 comment on commit 6995602

@PlumedBot
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Found broken examples in automatic/a-masterclass-22-09.txt
Found broken examples in automatic/a-masterclass-22-11.txt
Found broken examples in automatic/a-masterclass-22-12.txt
Found broken examples in automatic/performance-optimization.txt
Found broken examples in automatic/a-trieste-6.txt
Found broken examples in automatic/munster.txt
Found broken examples in automatic/ANN.tmp
Found broken examples in automatic/EDS.tmp
Found broken examples in automatic/EMMI.tmp
Found broken examples in automatic/ENVIRONMENTSIMILARITY.tmp
Found broken examples in automatic/FOURIER_TRANSFORM.tmp
Found broken examples in automatic/FUNCPATHGENERAL.tmp
Found broken examples in automatic/FUNCPATHMSD.tmp
Found broken examples in automatic/FUNNEL.tmp
Found broken examples in automatic/FUNNEL_PS.tmp
Found broken examples in automatic/GHBFIX.tmp
Found broken examples in automatic/INCLUDE.tmp
Found broken examples in automatic/MAZE_OPTIMIZER_BIAS.tmp
Found broken examples in automatic/MAZE_RANDOM_ACCELERATION_MD.tmp
Found broken examples in automatic/MAZE_SIMULATED_ANNEALING.tmp
Found broken examples in automatic/MAZE_STEERED_MD.tmp
Found broken examples in automatic/PIV.tmp
Found broken examples in automatic/PLUMED.tmp
Found broken examples in MiscelaneousPP.md

Please sign in to comment.