Skip to content

Commit

Permalink
Merge pull request #953 from plumed/c++17
Browse files Browse the repository at this point in the history
C++17
  • Loading branch information
GiovanniBussi authored Sep 5, 2023
2 parents 544dd90 + 610f86b commit 943108b
Show file tree
Hide file tree
Showing 43 changed files with 1,078 additions and 1,912 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,4 +33,4 @@ jobs:

conda:
uses: ./.github/workflows/condaWF.yml
secrets: inherit
secrets: inherit
2 changes: 0 additions & 2 deletions .github/workflows/dockerWF.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,11 +19,9 @@ jobs:
strategy:
fail-fast: false
matrix:
# centos7 (gcc 4.8)
# fedora38 (gcc 13)
# rockylinux8
variant:
- centos7
- fedora38
- rocky8
steps:
Expand Down
4 changes: 3 additions & 1 deletion CHANGES/v2.10.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,7 @@

This page contains changes that will end up in 2.10

- **PLUMED 2.10 requires a C++17 compatible compiler**.

- Changes relevant for developers:
- Removed some shortcuts for `ActionRegister.h` (from the modules bias colvar function sasa and vatom) and `CLToolRegister.h` (from the module cltools), now the two headers can only be included with `#include "core/ActionRegister.h"` or `#include "core/CLToolRegister.h"`.
- Removed some shortcuts for `ActionRegister.h` (from the modules bias colvar function sasa and vatom) and `CLToolRegister.h` (from the module cltools), now the two headers can only be included with `#include "core/ActionRegister.h"` or `#include "core/CLToolRegister.h"`.
3 changes: 1 addition & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -92,9 +92,8 @@ Required software
Required software:

* GNU make.
* C/c++ compiler (c++11 support is required as of version 2.4).
* C/c++ compiler (c++17 support is required as of version 2.10).
* A modern version of the `patch` command line tool.
* Support for POSIX library `dirent.h`.

Suggested software (libraries are checked by `./configure` and enabled if available):

Expand Down
5 changes: 5 additions & 0 deletions conda/plumed/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,11 @@ export CPPFLAGS="-D__PLUMED_DEFAULT_KERNEL=$PREFIX/lib/libplumedKernel$SHLIB_EXT
# enable optimization
export CXXFLAGS="${CXXFLAGS//-O2/-O3}"

if [[ $(uname) == "Darwin" ]]; then
# see https://conda-forge.org/docs/maintainer/knowledge_base.html#newer-c-features-with-old-sdk
CXXFLAGS="${CXXFLAGS} -D_LIBCPP_DISABLE_AVAILABILITY"
fi

# libraries are explicitly listed here due to --disable-libsearch
export LIBS="-lfftw3 -lgsl -lgslcblas -llapack -lblas -lz $LIBS"

Expand Down
Loading

1 comment on commit 943108b

@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_MEMETIC_SAMPLING.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_RANDOM_WALK.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.