Skip to content
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

Merged
merged 36 commits into from
Jan 13, 2025
Merged
Changes from 1 commit
Commits
Show all changes
36 commits
Select commit Hold shift + click to select a range
546ad5a
Add config files
jwallwork23 Nov 25, 2024
0c1f5b9
Add dev utils
jwallwork23 Nov 25, 2024
3ee66d9
Notes and some generalisation
jwallwork23 Nov 25, 2024
66b2dc6
Add README
jwallwork23 Nov 25, 2024
05e4ae7
Fix path to configs
jwallwork23 Nov 25, 2024
e7a4d17
Improve clarity of README.md
jwallwork23 Nov 25, 2024
5996a02
Minor fix for intel compiler missed in #62
jwallwork23 Nov 25, 2024
f4a7d67
Improve README
jwallwork23 Nov 27, 2024
b77342a
Add text on config files, too
jwallwork23 Nov 27, 2024
f4ae8bd
NOTEs for modifications
jwallwork23 Nov 27, 2024
fb40de5
Add headers for build and run scripts
jwallwork23 Nov 27, 2024
aee1211
Use build script in CI
jwallwork23 Nov 27, 2024
057f75c
Reorder build to set up configuration files afterwards
jwallwork23 Nov 27, 2024
0c08d8b
Fix path to debugging flags
jwallwork23 Nov 27, 2024
b5795c1
Add CI job for debug mode
jwallwork23 Nov 27, 2024
0bfb776
Copy rundeck for debug mode
jwallwork23 Nov 27, 2024
7a641a0
Raise error if scripts fail
jwallwork23 Nov 27, 2024
d54f50f
Symlink config files into GISS_HOME, too
jwallwork23 Nov 27, 2024
639e0ce
Drop options that we don't have inputs for
jwallwork23 Nov 27, 2024
70a3d0c
Add debug option for run script
jwallwork23 Nov 27, 2024
43b8379
More standard path for GISS_HOME
jwallwork23 Nov 29, 2024
c673571
Account for restart file
jwallwork23 Nov 29, 2024
3136d6c
Fix path for restart file in CI
jwallwork23 Nov 29, 2024
0b79185
Another attempt to fix paths
jwallwork23 Nov 29, 2024
b1a647f
Fix typo; drop set -e
jwallwork23 Dec 5, 2024
761a522
Add OVERWRITE=YES
jwallwork23 Dec 11, 2024
29bc0e4
Fix path and set values in HISTORY.rc
jwallwork23 Dec 11, 2024
20dc376
Debugging flags for Intel
jwallwork23 Dec 16, 2024
58c25f4
Update restart file name and add note
jwallwork23 Dec 20, 2024
3c14a00
.dev/config/geoschem_config.yml; update restart file name
jwallwork23 Jan 9, 2025
2dd2f8b
Update paths for consistency with HPC
jwallwork23 Jan 9, 2025
ea7eb70
Use /bin/env bash shebang for scripts
jwallwork23 Jan 9, 2025
b410cf1
Fix rundeck passing
jwallwork23 Jan 9, 2025
99175fa
Fix path
jwallwork23 Jan 9, 2025
8d87fbf
Handle rundeck symmetrically in debug mode
jwallwork23 Jan 9, 2025
f5ac1e4
Turn OLSON_LANDMAP back on
jwallwork23 Jan 9, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 22 additions & 0 deletions .github/workflows/test_suite.yml
Original file line number Diff line number Diff line change
Expand Up @@ -149,3 +149,25 @@ jobs:
# Build the model
cp .dev/utils/build.sh .
./build.sh

- 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
Copy link
Collaborator Author

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.