Skip to content

Commit 0a5911f

Browse files
committed
fix: rename CODE to CODE_ROOT to avoid conflict with build_all
1 parent 566e773 commit 0a5911f

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

scripts/setup/stellopt.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
#!/usr/bin/env bash
22
set -e
33

4-
# Ensure CODE is exported for make configs
5-
export CODE
4+
# Ensure CODE_ROOT is exported for make configs (can't use CODE - build_all uses it)
5+
export CODE_ROOT="$CODE"
66

77
# Create ~/bin for libstell symlinks and ensure it's in PATH
88
mkdir -p ~/bin

scripts/setup/stellopt/make_scluster.inc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
FLAGS_R = -O2 -fexternal-blas -fbacktrace -march=native
2121
FLAGS_D = -g -O0 -fexternal-blas -fcheck=all
2222
# Use OpenBLAS (includes LAPACK)
23-
OPENBLAS_DIR = $(CODE)/external/OpenBLAS-0.3.28/install
23+
OPENBLAS_DIR = $(CODE_ROOT)/external/OpenBLAS-0.3.28/install
2424
LIBS = -L$(OPENBLAS_DIR)/lib -lopenblas
2525

2626
GFORTRAN_VERSION := $(shell $(FC) -dumpversion)
@@ -68,7 +68,7 @@
6868
# HDF5 Options (from netcdf-install which includes HDF5)
6969
#######################################################################
7070
LHDF5 = T
71-
HDF5_DIR = $(CODE)/external/netcdf-install
71+
HDF5_DIR = $(CODE_ROOT)/external/netcdf-install
7272
HDF5_INC = -I$(HDF5_DIR)/include
7373
HDF5_LIB = -L$(HDF5_DIR)/lib -lhdf5_fortran -lhdf5_hl -lhdf5 -lz
7474

0 commit comments

Comments
 (0)