Created
January 13, 2024 13:30
-
-
Save jonathanschilling/e2055ef3069bf19ea7e96e7764662e92 to your computer and use it in GitHub Desktop.
Setup PARVMEC on Debian stable
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# (some build stuff already installed for kernel update, I think) | |
sudo apt-get install git cmake libopenmpi-dev libnetcdff-dev libscalapack-openmpi-dev libblas-dev liblapack-dev | |
git clone https://github.com/ORNL-Fusion/Stellarator-Tools.git | |
# into setup_cmake: | |
elif [ $MACHINE_ID == "eqrec0" ] || \ | |
[ $MACHINE_ID == "eqrec1" ] | |
then | |
# Config for Jonathan Schilling's reconstruction machines. | |
cmake -DCMAKE_BUILD_TYPE:String=$BUILD_TYPE \ | |
-DBUILD_PARVMEC=ON \ | |
../ | |
# ALWAYS restart setup_cmake from scratch (i.e. delete build folder) | |
# -> otherwise, can end up with binaries that work up to 4x slower!!! | |
mkdir ~/bin | |
cd ~/bin | |
ln -s /data/jonathan/Stellarator-Tools/build/_deps/parvmec-build/xvmec . | |
ln -s /data/jonathan/Stellarator-Tools/build/_deps/makegrid-build/mgrid . | |
mpirun -np 16 xvmec input.w7x_ref_167_12_12 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment