Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
46 commits
Select commit Hold shift + click to select a range
9272f19
Merge pull request #256 from mvertens/feature/refactor_directories
mvertens Nov 16, 2021
693605d
Merge pull request #275 from jedwards4b/modelio_to_runconfig
jedwards4b Apr 15, 2022
847bdcb
Merge pull request #306 from billsacks/fix_lilac_pio2
billsacks Jul 8, 2022
9fdbe54
Merge pull request #305 from jedwards4b/jedwards/asyncio
jedwards4b Oct 7, 2022
9c57bbf
Merge pull request #315 from ESCOMP/revert-305-jedwards/asyncio
jedwards4b Oct 12, 2022
419bd0f
Merge pull request #322 from jedwards4b/LL_fldList
jedwards4b Nov 30, 2022
841a70c
Merge pull request #323 from jedwards4b/shr_file_to_shr_log
jedwards4b Dec 5, 2022
e3280cf
Merge pull request #336 from jedwards4b/master_to_main
jedwards4b Jan 10, 2023
7d09252
Merge pull request #337 from jedwards4b/esmf_multidriver
jedwards4b Jan 11, 2023
045c1a7
Merge pull request #325 from jedwards4b/pio_asyncio_in_cmeps
jedwards4b Jan 26, 2023
4a3a5c1
now its working
jedwards4b Mar 29, 2024
8c37d81
update github workflow
jedwards4b Apr 1, 2024
cfa7f68
add error checking
jedwards4b Apr 1, 2024
b2f2be1
fix issue with REST_OPTION=end
jedwards4b Apr 1, 2024
79e18ab
all alarmInit function handled here now
jedwards4b Apr 4, 2024
f4f1d9f
some cleanup
jedwards4b Apr 6, 2024
18deed9
try updating pio bld tag
jedwards4b Apr 10, 2024
70f327f
build with cmake, remove mct
jedwards4b Jun 14, 2024
e3838b5
remove old code, add extbuild github workflow
jedwards4b Jun 17, 2024
88c88dd
update PIO to PIO_ROOT
jedwards4b Jun 17, 2024
29264f3
update esmf find
jedwards4b Jun 17, 2024
3e4dacf
try again
jedwards4b Jun 17, 2024
8fe5499
try this
jedwards4b Jun 17, 2024
aeb6c69
keep trying
jedwards4b Jun 17, 2024
3877c7e
add some debug print
jedwards4b Jun 17, 2024
77eef70
add some debug print again
jedwards4b Jun 17, 2024
2733cde
add some debug print again and again
jedwards4b Jun 17, 2024
1c34c6c
a desperate move
jedwards4b Jun 17, 2024
4fdd9a4
add genf90_utils to cmake dir
jedwards4b Jun 18, 2024
d3bbb36
add genf90utils to cmake dir
jedwards4b Jun 18, 2024
ff969f6
checkout genf90
jedwards4b Jun 18, 2024
fc1c724
try this one
jedwards4b Jun 18, 2024
ac08bd8
once more with feeling
jedwards4b Jun 18, 2024
cb4f366
ext now working, trying srt
jedwards4b Jun 18, 2024
5311f45
ext now working, trying srt
jedwards4b Jun 18, 2024
2c89434
ext now working, trying srt 2
jedwards4b Jun 18, 2024
2987afa
ext now working, trying srt 2
jedwards4b Jun 18, 2024
c0424fc
remove srt, strengthen ext
jedwards4b Jun 19, 2024
2b05c45
add Werror for gfortran
jedwards4b Jun 19, 2024
f10c398
fix uninitialized var
jedwards4b Jun 19, 2024
2fc4675
try again
jedwards4b Jun 19, 2024
fcfe513
try again
jedwards4b Jun 19, 2024
a7d1e94
cpp unused functions
jedwards4b Jun 19, 2024
4b4ff96
merge in update_cmake_build
jedwards4b Jun 19, 2024
78dc67e
fix warnings in nuopc_shr_methods
jedwards4b Jun 19, 2024
e4b4869
fix unit tests, all now pass on derecho with ESMF_ROOT=$NCAR_ROOT_ESM…
jedwards4b Jun 20, 2024
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
46 changes: 46 additions & 0 deletions .github/actions/buildshare/action.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
name: SHARE build and cache
description: 'Build the SHARE library'
inputs:
share_version:
description: 'Tag in the SHARE repository to use'
default: main
required: False
type: string
pio_path:
description: 'Path to the installed parallelio code root'
default: $HOME/pio
required: False
type: string
esmfmkfile:
description: 'Path to the installed ESMF library mkfile'
default: $HOME/ESMF/lib/libg/Linux.gfortran.64.openmpi.default/esmf.mk
required: False
type: string
src_root:
description: 'Path to share source'
default: $GITHUB_WORKSPACE
required: False
type: string
cmake_flags:
description: 'Extra flags for cmake command'
default: -Wno-dev
required: False
type: string
install_prefix:
description: 'Install path of share'
default: $HOME/share
required: False
type: string
runs:
using: composite
steps:
- id : Build-SHARE
shell: bash
run: |
mkdir build-share
pushd build-share
export ESMFMKFILE=${{ inputs.esmfmkfile }}
export PIO_ROOT=${{ inputs.pio_path }}
cmake ${{ inputs.cmake_flags }} ${{ inputs.src_root }}
make VERBOSE=1
popd
77 changes: 77 additions & 0 deletions .github/workflows/extbuild.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,77 @@
# This is a workflow to compile the share source without cime
name: extbuild
# Controls when the action will run. Triggers the workflow on push or pull request
# events but only for the main branch
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]

# A workflow run is made up of one or more jobs that can run sequentially or in parallel
jobs:
build-share:
runs-on: ubuntu-latest
env:
CC: mpicc
FC: mpifort
CXX: mpicxx
CPPFLAGS: "-I/usr/include -I/usr/local/include "
LDFLAGS: "-L/usr/lib/x86_64-linux-gnu "
# Versions of all dependencies can be updated here - these match tag names in the github repo
ESMF_VERSION: v8.6.1
ParallelIO_VERSION: pio2_6_2
steps:
- id: checkout-share
uses: actions/checkout@v4
- id: load-env
run: |
sudo apt-get update
sudo apt-get install gfortran
sudo apt-get install wget
sudo apt-get install openmpi-bin libopenmpi-dev
sudo apt-get install netcdf-bin libnetcdf-dev libnetcdff-dev
sudo apt-get install pnetcdf-bin libpnetcdf-dev
- name: Cache PARALLELIO
id: cache-PARALLELIO
uses: actions/cache@v4
with:
path: ${GITHUB_WORKSPACE}/pio
key: ${{ runner.os }}-${{ env.ParallelIO_VERSION }}-pio
- name: Build ParallelIO
if: steps.cache-PARALLELIO.outputs.cache-hit != 'true'
uses: NCAR/ParallelIO/.github/actions/parallelio_cmake@9390e30e29d4ebbfbef0fc72162cacd9e8f25e4e
with:
parallelio_version: ${{ env.ParallelIO_VERSION }}
enable_fortran: True
install_prefix: ${GITHUB_WORKSPACE}/pio
- name: Install ESMF
uses: esmf-org/install-esmf-action@v1
env:
ESMF_COMPILER: gfortran
ESMF_BOPT: g
ESMF_COMM: openmpi
ESMF_NETCDF: nc-config
ESMF_PNETCDF: pnetcdf-config
ESMF_INSTALL_PREFIX: ${GITHUB_WORKSPACE}/ESMF
ESMF_PIO: external
ESMF_PIO_INCLUDE: ${GITHUB_WORKSPACE}/pio/include
ESMF_PIO_LIBPATH: ${GITHUB_WORKSPACE}/pio/lib
with:
version: ${{ env.ESMF_VERSION }}
esmpy: false
cache: true

- name: Build SHARE
uses: ./.github/actions/buildshare
with:
esmfmkfile: $ESMFMKFILE
pio_path: ${GITHUB_WORKSPACE}/pio
src_root: ${GITHUB_WORKSPACE}
cmake_flags: " -Wno-dev -DCMAKE_BUILD_TYPE=DEBUG -DWERROR=ON -DCMAKE_Fortran_FLAGS=\"-DCPRGNU -g -Wall \
-ffree-form -ffree-line-length-none -fallow-argument-mismatch\" \
-DCMAKE_MODULE_PATH=$ESMF_ROOT/cmake"
- name: Test CDEPS
run: |
cd build-share
make VERBOSE=1
177 changes: 0 additions & 177 deletions .github/workflows/srt.yml

This file was deleted.

Loading