-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Development utilities #63
base: develop
Are you sure you want to change the base?
Conversation
531ab75
to
aa26038
Compare
117a137
to
5996a02
Compare
To review this, please check that the instructions in |
@@ -14,7 +14,7 @@ FFLAGS += -qopenmp | |||
F90FLAGS += -qopenmp | |||
LFLAGS += -qopenmp | |||
endif | |||
CTM_FLAGS = $(LFLAGS) | |||
CTM_LFLAGS = $(LFLAGS) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This change is just fixing a minor oversight introduced in #62, as discussed in the meeting.
.github/workflows/test_suite.yml
Outdated
- name: Build GISS-GC with GISS_GC_14 rundeck in debug mode | ||
run: | | ||
. /opt/spack-environment/activate.sh | ||
# Environment variables for passing NetCDF-C paths to GEOS-Chem | ||
export NETCDF_HOME=$(nc-config --prefix) | ||
export GC_BIN=${NETCDF_HOME}/bin | ||
export GC_INCLUDE=${NETCDF_HOME}/include | ||
export GC_LIB=${NETCDF_HOME}/lib | ||
# Environment variables for passing NetCDF-Fortran paths to GEOS-Chem | ||
export NETCDF_F_HOME=$(nf-config --prefix) | ||
export GC_F_BIN=${NETCDF_F_HOME}/bin | ||
export GC_F_INCLUDE=${NETCDF_F_HOME}/include | ||
export GC_F_LIB=${NETCDF_F_HOME}/lib | ||
# Environment variable for OpenMPI build | ||
MPIF90=$(find /opt/software -name mpif90 | head -n 1) | ||
export MPI_ROOT=${MPIF90%/bin/mpif90} | ||
# Copy over modelErc | ||
cp .github/modelErc ~/.modelErc | ||
# Remove the previous build and rebuild the model in debug mode | ||
cp .dev/utils/build.sh . | ||
./build.sh -f --debug |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Here I add a CI job to test building with the --debug
option.
I just tested this setup on CSD3 using an existing
and this ran to completion without error. Running
I hit the same error (#65) as I get on my local machine. |
Closes #50.
There are quite a lot of things that you need to remember to do when building and running GISS-GC. I've tried my best to provide extensive docs on this but it has become difficult to manage when working across different platforms, especially when I don't have access to the one @AdelekeBankole is running on.
Here I propose an automated workflow that should hopefully make it easier for us to ensure that we're running the same thing.