Skip to content

Commit b2e2859

Browse files
committed
Update to the latest version of vesin
This brings support for partial PBC, and some speed improvements
1 parent 686ca0e commit b2e2859

5 files changed

Lines changed: 745 additions & 336 deletions

File tree

src/maketools/codecheck

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,7 @@ fi
7575
-U__PLUMED_HAS_ASMJIT \
7676
-D__PLUMED_WRAPPER_CXX_EXPLICIT=explicit \
7777
--config-exclude=small_vector/ \
78+
-i vesin.cpp \
7879
--template='[{file}:{line}] ({severity}) :{id}: {message}' \
7980
--enable=all --suppress=missingIncludeSystem --inline-suppr --force \
8081
$files
Lines changed: 9 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,19 @@
11
#!/usr/bin/env bash
22

3-
path=$1
3+
version=$1
44

55
if (($# != 1)) ; then
6-
echo "usage: $0 /path/to/vesin"
7-
echo
8-
echo "All the commands to run:"
9-
echo " cd /some/dir/"
10-
echo " git clone https://github.com/luthaf/vesin"
11-
echo " cd /your/plumed2/src/metatomic"
12-
echo " ./import.sh /some/dir/vesin"
13-
exit 0
6+
echo "usage: $0 <vesin-version>"
7+
exit 1
148
fi
159

16-
bash -c "$path/create-single-cpp.py > /dev/null"
10+
rm -f vesin-single-build-v*.tar.gz
11+
wget https://github.com/Luthaf/vesin/releases/download/v$version/vesin-single-build-v$version.tar.gz
1712

18-
cp $path/vesin/include/vesin.h vesin.h
19-
mv vesin-single-build.cpp vesin.cpp
13+
tar xf vesin-single-build-v$version.tar.gz
14+
15+
mv vesin-single-build-nocuda.cpp vesin.cpp
16+
rm -f vesin-single-build.cpp
2017

2118
# Patch files to follow PLUMED linter
2219
sed 's|#define VESIN_H|#define VESIN_H\n/*INDENT-OFF*/\n|

0 commit comments

Comments
 (0)