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

fix test_io for reading #1215

Closed
wants to merge 89 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
89 commits
Select commit Hold shift + click to select a range
a9c2bf0
change to README
edwardhartnett Jan 11, 2024
845dad5
adding w3iopomd
edwardhartnett Jan 11, 2024
b8c7f62
cmake changes
edwardhartnett Jan 11, 2024
a49486f
cmake changes
edwardhartnett Jan 11, 2024
051a773
cmake changes
edwardhartnett Jan 11, 2024
b199a1f
cmake changes
edwardhartnett Jan 11, 2024
cd3430a
cmake changes
edwardhartnett Jan 11, 2024
735e15d
cmake changes
edwardhartnett Jan 11, 2024
330ad8e
clean up
edwardhartnett Jan 11, 2024
4cc5ef2
adding testing for binary restart file
edwardhartnett Jan 13, 2024
431e8c5
working on test
edwardhartnett Jan 13, 2024
59f4ada
merged develop
edwardhartnett Jan 24, 2024
106e652
merged
edwardhartnett Jan 25, 2024
5a3c0b9
ww3_outp.F90: hard-coded new subroutine (W3IOPON)
MatthewMasarik-NOAA Feb 8, 2024
edaf3f7
gx_outp.F90 - W3IOPON
MatthewMasarik-NOAA Feb 14, 2024
faaa0c7
w3wavemd.F90: W3IOPON
MatthewMasarik-NOAA Feb 14, 2024
86a5233
wmiopomd.F90: W3IOPON
MatthewMasarik-NOAA Feb 14, 2024
bafe7ea
ww3_ounp.F90: W3IOPON
MatthewMasarik-NOAA Feb 14, 2024
a65e4a8
ww3_outp.F90: W3IOPON
MatthewMasarik-NOAA Feb 14, 2024
2ef2d51
w3iopomd.F90: print statement
MatthewMasarik-NOAA Feb 14, 2024
e7e176b
small modifications to w3iopo for netcdf file name and removing print
JessicaMeixner-NOAA Feb 21, 2024
24c9e9f
updates to documentation
JessicaMeixner-NOAA Feb 22, 2024
7a1dca3
Merge branch 'NOAA-EMC:develop' into feature/pointbinary2nc
JessicaMeixner-NOAA Mar 11, 2024
8e27cb7
Merge branch 'NOAA-EMC:develop' into feature/pointbinary2nc
JessicaMeixner-NOAA Mar 12, 2024
3b244cb
added notes for where time should be added and examined how
JessicaMeixner-NOAA Mar 12, 2024
f0c8aa9
a first try at adding time dimension
JessicaMeixner-NOAA Mar 13, 2024
0307f60
adding time dimension
edwardhartnett Mar 27, 2024
df4d393
turning on tests
edwardhartnett Mar 30, 2024
bbd316a
Merge pull request #19 from edwardhartnett/ejh_0330_2
edwardhartnett Mar 30, 2024
a24fb35
more testing
edwardhartnett Mar 31, 2024
b2b7129
renamed file
edwardhartnett Apr 1, 2024
d06cdd4
adding regtest document
edwardhartnett Apr 1, 2024
ab960ed
adding detail
edwardhartnett Apr 1, 2024
f26541e
more info
edwardhartnett Apr 1, 2024
9366dca
added tests to cmake file
edwardhartnett Apr 1, 2024
22e0bf4
commenting out some of test
edwardhartnett Apr 1, 2024
44c5409
commenting out some of test
edwardhartnett Apr 1, 2024
d16dd91
Merge pull request #20 from edwardhartnett/ejh_doc_0331
edwardhartnett Apr 1, 2024
3c44e61
added netCDF code
edwardhartnett Apr 1, 2024
17e6ee6
uncommenting test code
edwardhartnett Apr 1, 2024
3d2c19e
added reference
edwardhartnett Apr 2, 2024
7af89cc
more detail
edwardhartnett Apr 2, 2024
16339bb
more detail
edwardhartnett Apr 2, 2024
88894f9
Merge pull request #22 from edwardhartnett/ejh_0401
edwardhartnett Apr 2, 2024
ba26fd8
adding regtest CI
edwardhartnett Apr 2, 2024
d65d63d
working on regtest CI
edwardhartnett Apr 2, 2024
b4893d2
working on regtest CI
edwardhartnett Apr 2, 2024
3b424f8
working on regtest CI
edwardhartnett Apr 2, 2024
8270389
more regtest work
edwardhartnett Apr 2, 2024
9f2e25f
more detail
edwardhartnett Apr 2, 2024
f35a196
more details
edwardhartnett Apr 2, 2024
fdbb2b8
trying a regtest
edwardhartnett Apr 2, 2024
1e3f301
Merge remote-tracking branch 'EH/ejh_test_ci' into feature/pointbinar…
JessicaMeixner-NOAA Apr 2, 2024
fe5c982
Merge remote-tracking branch 'EMC/develop' into feature/pointbinary2nc
JessicaMeixner-NOAA Apr 2, 2024
1dd3e75
fix typo
JessicaMeixner-NOAA Apr 2, 2024
ea46887
regtest progress
edwardhartnett Apr 2, 2024
0ff57b7
regtest progress
edwardhartnett Apr 2, 2024
6ec78a9
regtest progress
edwardhartnett Apr 2, 2024
a70ed47
more regtest
edwardhartnett Apr 2, 2024
57deae1
more regtest
edwardhartnett Apr 2, 2024
34c3f8c
more regtest
edwardhartnett Apr 2, 2024
14f771d
fixes errors for successful build
JessicaMeixner-NOAA Apr 2, 2024
bcca5f5
Merge remote-tracking branch 'EMC/develop' into feature/pointbinary2nc
JessicaMeixner-NOAA Apr 2, 2024
6cfc1c1
save debug temporarily
JessicaMeixner-NOAA Apr 2, 2024
ec1dc84
attempt to add start/count to netcdf putvar
JessicaMeixner-NOAA Apr 2, 2024
4e4c93e
Merge pull request #23 from edwardhartnett/ejh_ci_regtest
edwardhartnett Apr 2, 2024
4ad5794
merged
edwardhartnett Apr 2, 2024
10d8187
fixed merge problem
edwardhartnett Apr 2, 2024
bcd4380
fixed merge problem
edwardhartnett Apr 2, 2024
3fcec44
fixing
edwardhartnett Apr 3, 2024
ca38250
more detail
edwardhartnett Apr 3, 2024
479029f
merged
edwardhartnett Apr 3, 2024
9ce71d8
reverted file
edwardhartnett Apr 3, 2024
b1bcf91
fixed cmake
edwardhartnett Apr 3, 2024
a9f4f0f
pass tests
edwardhartnett Apr 3, 2024
4c99c06
Merge pull request #25 from edwardhartnett/JessicaMeixner-NOAA-featur…
edwardhartnett Apr 3, 2024
8bb4529
Merge pull request #21 from edwardhartnett/ejh_regtest_doc
edwardhartnett Apr 4, 2024
1ede4e0
porting changes
edwardhartnett Apr 4, 2024
7594701
merged Jessica's changes
edwardhartnett Apr 4, 2024
131a917
test writes netCDF file
edwardhartnett Apr 4, 2024
1bc281e
Merge pull request #27 from edwardhartnett/ejh_0404
edwardhartnett Apr 4, 2024
8b158fe
minor change
edwardhartnett Apr 5, 2024
3bb3a1f
added expected output for regtest
edwardhartnett Apr 9, 2024
59d7d7f
updated workflow
edwardhartnett Apr 9, 2024
fbfcced
updated workflow
edwardhartnett Apr 9, 2024
b17dfc2
updated workflow
edwardhartnett Apr 9, 2024
c914d69
Merge pull request #28 from edwardhartnett/ejh_0405
edwardhartnett Apr 9, 2024
8d9e572
working on read code
edwardhartnett Apr 9, 2024
c944bef
fixed test_io call of read
edwardhartnett Apr 10, 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
File renamed without changes.
125 changes: 125 additions & 0 deletions .github/workflows/regtest_gnu.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,125 @@
name: regtest_gnu
on: [push, pull_request, workflow_dispatch]

# Cancel in-progress workflows when pushing to a branch
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true

env:
cache_key: gnu11-1
CC: gcc-10
FC: gfortran-10
CXX: g++-10


# Split into a steup step, and a WW3 build step which
# builds multiple switches in a matrix. The setup is run once and
# the environment is cached so each build of WW3 can share the dependencies.

jobs:
setup:
runs-on: ubuntu-latest

steps:
- name: checkout-ww3
if: steps.cache-env.outputs.cache-hit != 'true'
uses: actions/checkout@v3
with:
path: ww3
# Cache spack, OASIS, and compiler
# No way to flush Action cache, so key may have # appended
- name: cache-env
id: cache-env
uses: actions/cache@v3
with:
path: |
spack
~/.spack
work_oasis3-mct
key: spack-${{ runner.os }}-${{ env.cache_key }}-${{ hashFiles('ww3/model/ci/spack_gnu.yaml') }}

# Build WW3 spack environment
- name: install-dependencies-with-spack
if: steps.cache-env.outputs.cache-hit != 'true'
run: |
# Install NetCDF, ESMF, g2, etc using Spack
sudo apt install cmake
git clone -c feature.manyFiles=true https://github.com/JCSDA/spack.git
source spack/share/spack/setup-env.sh
spack env create ww3-gnu ww3/model/ci/spack_gnu.yaml
spack env activate ww3-gnu
spack compiler find
spack external find cmake
spack add [email protected]
spack concretize
spack install --dirty -v

- name: build-oasis
if: steps.cache-env.outputs.cache-hit != 'true'
run: |
source spack/share/spack/setup-env.sh
spack env activate ww3-gnu
export WWATCH3_DIR=${GITHUB_WORKSPACE}/ww3/model
export OASIS_INPUT_PATH=${GITHUB_WORKSPACE}/ww3/regtests/ww3_tp2.14/input/oasis3-mct
export OASIS_WORK_PATH=${GITHUB_WORKSPACE}/ww3/regtests/ww3_tp2.14/input/work_oasis3-mct
cd ww3/regtests/ww3_tp2.14/input/oasis3-mct/util/make_dir
cmake .
make VERBOSE=1
cp -r ${GITHUB_WORKSPACE}/ww3/regtests/ww3_tp2.14/input/work_oasis3-mct ${GITHUB_WORKSPACE}

regtest_gnu:
needs: setup
runs-on: ubuntu-latest

steps:
- name: install-dependencies
run: |
sudo apt-get update
sudo apt-get install doxygen gcovr valgrind

- name: checkout-ww3
uses: actions/checkout@v3
with:
path: ww3

- name: cache-env
id: cache-env
uses: actions/cache@v3
with:
path: |
spack
~/.spack
work_oasis3-mct
key: spack-${{ runner.os }}-${{ env.cache_key }}-${{ hashFiles('ww3/model/ci/spack_gnu.yaml') }}

- name: build-ww3
run: |
source spack/share/spack/setup-env.sh
spack env activate ww3-gnu
set -x
cd ww3
export CC=mpicc
export FC=mpif90
export OASISDIR=${GITHUB_WORKSPACE}/work_oasis3-mct
mkdir build && cd build
export LD_LIBRARY_PATH="/home/runner/work/WW3/WW3/spack/var/spack/environments/ww3-gnu/.spack-env/view/:$LD_LIBRARY_PATH"
cmake -DSWITCH=${GITHUB_WORKSPACE}/ww3/regtests/unittests/data/switch.io -DCMAKE_BUILD_TYPE=Debug ..
make -j2 VERBOSE=1
${GITHUB_WORKSPACE}/ww3/model/bin/ww3_from_ftp.sh
cd ${GITHUB_WORKSPACE}/ww3/regtests
./bin/run_cmake_test -o all -S -T -s PR1_MPI -w work_PR1_MPI -f -p mpirun -n 24 ../model ww3_tp2.5
cd ww3_tp2.5
ls -l
cd work_PR1_MPI
pwd
ls -l
ncdump -h out_pnt.ww3.nc > ncdump_out.txt
cat ncdump_out.txt
pwd
cat ${GITHUB_WORKSPACE}/ww3/regtests/ww3_tp2.5/out_pnt_ncdump.txt
cmp ${GITHUB_WORKSPACE}/ww3/regtests/ww3_tp2.5/out_pnt_ncdump.txt ncdump_out.txt




Loading
Loading