Skip to content

Commit 6d4e206

Browse files
committed
VMEC setup
1 parent d74d711 commit 6d4e206

File tree

2 files changed

+13
-2
lines changed

2 files changed

+13
-2
lines changed
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
{
2+
"cmake_args": [
3+
"-DCMAKE_C_COMPILER=mpicc",
4+
"-DCMAKE_Fortran_COMPILER=mpifort",
5+
"-DNETCDF_INC_PATH=/usr/include",
6+
"-DNETCDF_LIB_PATH=/usr/lib/aarch64-linux-gnu",
7+
"-DBLA_VENDOR=OpenBLAS",
8+
"-DSCALAPACK_PREFIX=/workspaces/code/external/scalapack/build",
9+
"-DF2PY_EXECUTABLE=/workspaces/code/.venv/bin/f2py"]
10+
}

scripts/setup_vmec2000.sh

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,12 @@ if [ ! -d "VMEC2000" ] ; then
55
echo "Fetching and building VMEC2000..."
66
git clone https://github.com/itpplasma/VMEC2000.git
77
pushd VMEC2000
8-
cmake -S. -Bbuild -GNinja -DNETCDF_INC_PATH=/usr/include -DSCALAPACK_PRE
9-
FIX=$CODE/external/scalapack/build
8+
cp $CODE/scripts/cmake_config_file_vmec2000.json cmake_config_file.json
9+
cmake -S. -Bbuild -GNinja -DNETCDF_INC_PATH=/usr/include -DSCALAPACK_PREFIX=$CODE/external/scalapack/build -DBLA_VENDOR=OpenBLAS
1010
pushd build
1111
ninja
1212
popd
13+
pip install --upgrade numpy f90wrap
1314
pip install .
1415
popd
1516
fi

0 commit comments

Comments
 (0)