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

Update NoahMP model #6

Merged
merged 119 commits into from
Jan 26, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
119 commits
Select commit Hold shift + click to select a range
ed4f4f8
update model and sync with ccpp version
uturuncoglu Dec 6, 2022
81d8293
chack PR label to handle baseline change
uturuncoglu Dec 6, 2022
e5b6dba
minor fix for action
uturuncoglu Dec 6, 2022
6504d21
more minor fix for action
uturuncoglu Dec 6, 2022
60f646b
update cap to get similar results with ufs-land-driver and ERA5 forcing
uturuncoglu Dec 6, 2022
18c1d64
fix for action
uturuncoglu Dec 6, 2022
e91082d
fix syntax
uturuncoglu Dec 6, 2022
d642ffe
update action
uturuncoglu Dec 6, 2022
32543de
update action
uturuncoglu Dec 7, 2022
a6b4ab8
loosen concretized method of environment
uturuncoglu Dec 7, 2022
d4f3cf2
update action
uturuncoglu Dec 7, 2022
d2babd7
disable host compatibility
uturuncoglu Dec 7, 2022
02a3dff
add support to cache new baseline
uturuncoglu Dec 7, 2022
ee75501
more work in action
uturuncoglu Dec 7, 2022
a6f2d2e
more work in action
uturuncoglu Dec 7, 2022
f4de5f2
more work in action
uturuncoglu Dec 7, 2022
dd4962e
Update datm_noahmp.yaml
uturuncoglu Dec 8, 2022
0f0e0e6
Update datm_noahmp.yaml
uturuncoglu Dec 8, 2022
f921857
Merge branch 'develop' into feature/nuopc_cap
uturuncoglu Dec 8, 2022
956eb4c
more work in action
uturuncoglu Dec 8, 2022
6a69359
more work in action
uturuncoglu Dec 8, 2022
963ad0a
more work in action
uturuncoglu Dec 8, 2022
c5a356c
more work in action
uturuncoglu Dec 8, 2022
f387526
artifical baseline change
uturuncoglu Dec 8, 2022
6fcd57a
change syntax to override target entirely
uturuncoglu Dec 8, 2022
7c15fbc
artifical baseline change
uturuncoglu Dec 8, 2022
a78f13d
more work in action
uturuncoglu Dec 8, 2022
4a526be
more work in action
uturuncoglu Dec 8, 2022
ea6f706
force to use double for reals
uturuncoglu Dec 8, 2022
af52c71
more work in action
uturuncoglu Dec 8, 2022
71bb4a4
artifical baseline change
uturuncoglu Dec 8, 2022
5cf821f
add baseline files also to the cache
uturuncoglu Dec 8, 2022
46b5f47
minor fix
uturuncoglu Dec 8, 2022
9d59853
fixes for restart
uturuncoglu Dec 13, 2022
0f2990d
minor fix for action
uturuncoglu Dec 13, 2022
e36c579
get vegetation types from initial condition for active atm case
uturuncoglu Dec 21, 2022
47a4d6b
more work for fully coupled case
uturuncoglu Jan 12, 2023
f880104
remove fms pointers from doc
uturuncoglu Feb 12, 2023
fa09aed
rewite I/O later using ESMF and get rid of FMS dependency
uturuncoglu Feb 12, 2023
762711f
use composite github action
uturuncoglu Feb 8, 2023
d56e831
fix badge in README
uturuncoglu Feb 12, 2023
b2454ba
update esmf and remove fms
uturuncoglu Feb 13, 2023
58e2e2e
action need to continue on error
uturuncoglu Feb 13, 2023
1f7415b
remove openmp
uturuncoglu Feb 14, 2023
c3319a0
switch to debug workflow and mode
uturuncoglu Feb 14, 2023
fe6c093
fix for new io later and action
uturuncoglu Feb 22, 2023
a7ccfe4
use fixed action nuopc component testing action
uturuncoglu Feb 23, 2023
9611ff7
clean code and add barrier
uturuncoglu Feb 23, 2023
0934fa0
remove unused argument
uturuncoglu Feb 23, 2023
f2c4e5b
Merge branch 'feature/nuopc_cap' of https://github.com/esmf-org/noahm…
uturuncoglu Feb 23, 2023
b44b362
build esmf without pnetcdf
uturuncoglu Feb 23, 2023
65ba415
add runoff and drain to land coupling
uturuncoglu Feb 23, 2023
97aa8cc
test also against ESMF develop
uturuncoglu Feb 23, 2023
41224e5
make artifcats name dynamic
uturuncoglu Feb 24, 2023
7a5bfff
Merge branch 'feature/nuopc_cap' of https://github.com/esmf-org/noahm…
uturuncoglu Feb 24, 2023
7a25c47
add exchange coefficents
uturuncoglu Mar 7, 2023
23c204a
add zvfun to land coupling
uturuncoglu Mar 8, 2023
5a6c2c3
update I/O to allow different file for restart and modes for history
uturuncoglu Mar 22, 2023
e3d74b8
fixes for new io features
uturuncoglu Mar 24, 2023
2677442
minor cleaning in i/o code
uturuncoglu Apr 5, 2023
8b4e512
fix build due to changed file extension
uturuncoglu Apr 7, 2023
b81f677
update model
uturuncoglu Apr 7, 2023
9a9aa65
update model source
uturuncoglu Apr 7, 2023
f9cf24a
update meta file
uturuncoglu Apr 7, 2023
d6c3f71
update cap for rhonewsn1
uturuncoglu Apr 7, 2023
8e5fbab
add missing variable
uturuncoglu Apr 7, 2023
550884c
fix conflicts
uturuncoglu Apr 7, 2023
260019f
point v1.1.0 relase for action
uturuncoglu Apr 7, 2023
64ebd48
minur fix and restructuring I/O
uturuncoglu Apr 24, 2023
29951cd
fix minor data type mismatch issues
uturuncoglu Apr 25, 2023
215126c
add esmf 8.4.2 to testing
uturuncoglu Apr 25, 2023
df58a9a
remove esmf 8.4.2 since due to missing ungridded dimension support fo…
uturuncoglu Apr 26, 2023
aaecc56
fixes for fully coupled restart test
uturuncoglu Apr 28, 2023
1787183
fix type issue under GNU
uturuncoglu Apr 29, 2023
5a5df76
update documentation
uturuncoglu Apr 29, 2023
c589bb8
update github test
uturuncoglu May 10, 2023
a61bc52
switch to external pio for cdeps
uturuncoglu May 11, 2023
5f37487
add external pio
uturuncoglu May 11, 2023
7646d2f
fix typo
uturuncoglu May 11, 2023
9631463
update composite action
uturuncoglu May 12, 2023
36cf93d
allow to disable restart output
uturuncoglu May 12, 2023
fc376c8
update action to use latest version of spack
uturuncoglu May 12, 2023
ed52bcd
update action to use latest version of spack
uturuncoglu May 12, 2023
e6008ae
pass mpirun arguments to composite action
uturuncoglu May 13, 2023
78d4fb0
fix mpirun arguments
uturuncoglu May 13, 2023
e21b9e6
fix hanging issue
uturuncoglu May 15, 2023
0018e4d
force to download field dictionary every time
uturuncoglu May 15, 2023
a4567d9
use 8.5.0b10 for testing
uturuncoglu May 17, 2023
64175ec
minor fix
uturuncoglu May 19, 2023
c79654b
remove unused data
uturuncoglu Jun 14, 2023
772d2d6
Merge branch 'feature/nuopc_cap' of https://github.com/esmf-org/noahm…
uturuncoglu Jun 14, 2023
7e496a6
fix action
uturuncoglu Jun 15, 2023
297d0a5
update model
uturuncoglu Jul 25, 2023
d409e7b
update nuopc cap to use new soil color dataset
uturuncoglu Jul 25, 2023
db01b23
add soil color dataset to CI test
uturuncoglu Jul 25, 2023
f8cdb93
fix conflicts
uturuncoglu Jul 25, 2023
b02c307
replace # with * for 8.5.0
uturuncoglu Jul 28, 2023
f6d7ae8
update action to use new version of composite action
uturuncoglu Jul 28, 2023
79734e2
adjust CI test to work with new version of action
uturuncoglu Aug 9, 2023
b38ae84
fix module name
uturuncoglu Aug 9, 2023
a9e3739
remove unused section from test definition
Aug 10, 2023
8187357
fix overwrite issue
uturuncoglu Aug 11, 2023
64ae496
remove unused part from datm yaml file
uturuncoglu Aug 11, 2023
ae83c61
Merge branch 'feature/nuopc_cap' of https://github.com/esmf-org/noahm…
uturuncoglu Aug 11, 2023
f0a507d
fix action for YAML based ESMX run config
uturuncoglu Aug 11, 2023
9310ef1
sync model
uturuncoglu Sep 18, 2023
8d33c9f
Merge branch 'feature/nuopc_cap' of https://github.com/esmf-org/noahm…
uturuncoglu Sep 18, 2023
b9f1946
sync with ccpp version
uturuncoglu Oct 12, 2023
00d4c49
remove Sa_ua and Sa_va from couling fields
uturuncoglu Oct 12, 2023
eb2e047
change default of output_freq to seconds
uturuncoglu Dec 20, 2023
f25293d
sync model with ccpp version
uturuncoglu Dec 21, 2023
d9373a9
fix github action
uturuncoglu Dec 22, 2023
16ac0cd
chnage name of action
uturuncoglu Dec 22, 2023
3a0f222
add debug options to build
uturuncoglu Dec 22, 2023
87f6a26
add debug options to build
uturuncoglu Dec 22, 2023
691059b
fix component testing action
uturuncoglu Jan 9, 2024
cf02f98
fix description
uturuncoglu Jan 9, 2024
5d8319d
more changes for coupled fields naming
uturuncoglu Jan 9, 2024
33cf753
sync with ccpp version
uturuncoglu Jan 23, 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
Binary file removed .github/workflows/data/oro_data.tile1.nc
Binary file not shown.
Binary file removed .github/workflows/data/oro_data.tile2.nc
Binary file not shown.
Binary file removed .github/workflows/data/oro_data.tile3.nc
Binary file not shown.
Binary file removed .github/workflows/data/oro_data.tile4.nc
Binary file not shown.
Binary file removed .github/workflows/data/oro_data.tile5.nc
Binary file not shown.
Binary file removed .github/workflows/data/oro_data.tile6.nc
Binary file not shown.
111 changes: 86 additions & 25 deletions .github/workflows/datm_noahmp.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,20 @@
name: test_datm_lnd
name: Test NUOPC cap

env:
# default compiler version
compiler: gcc@latest
# default esmf version
esmf_version: 'esmf@develop'
# default test name
test: test_datm_lnd
# set token to access gh command
GH_TOKEN: ${{ github.token }}
# installation location for application
APP_INSTALL_DIR: ${{ github.workspace }}/app
# installation location for dependencies
DEP_INSTALL_DIR: ~/.spack-ci
# option for retention period for artifacts, default is 90 days
ARTIFACTS_RETENTION_PERIOD: 2

on:
push:
Expand All @@ -10,40 +26,86 @@ on:
- cron: '0 0 * * MON'
- cron: '0 0 * * FRI'
workflow_dispatch:

inputs:
compiler:
description: 'Compiler version like [email protected] or gcc@latest (latest available version on runner)'
required: false
type: string
default: 'gcc@latest'
esmf_version:
description: 'ESMF version or tag: esmf@develop, esmf@=8.5.0b23, [email protected]_change_equal=8.6.0'
required: false
type: string
default: 'esmf@develop'
test:
description: 'Test that will be run'
required: false
type: string
default: test_datm_lnd

jobs:
latest-stable:
runs-on: ${{ matrix.os }}
set-matrix:
runs-on: ubuntu-latest

outputs:
matrix: ${{ steps.generate.outputs.matrix }}

steps:
# generete matrix
- name: Generate Matrix by Listing Compiler and ESMF Packages
id: generate
run: |
# output variables for debugging
echo "INPUT: >${{ inputs.compiler }}< >${{ inputs.esmf_version }}<"
echo "ENV : >${{ env.compiler }}< >${{ env.esmf_version }}<"

# create matrix JSON file
# compiler
if [ -z "${{ inputs.compiler }}" ]; then
str1="{\"compiler\": [\"${{ env.compiler }}\"],"
else
str1="{\"compiler\": [\"${{ inputs.compiler }}\"],"
fi
# esmf
if [ -z "${{ inputs.esmf_version }}" ]; then
str2="\"esmf\": [\"${{ env.esmf_version }}+external-parallelio\"],"
else
str2="\"esmf\": [\"${{ inputs.esmf_version }}+external-parallelio\"],"
fi
# test
if [ -z "${{ inputs.test }}" ]; then
str3="\"test\": [\"${{ env.test }}\"]}"
else
str3="\"test\": [\"${{ inputs.test }}\"]}"
fi

# output contect for debugging
echo "matrix=${str1}${str2}${str3}"

# output for next step
echo "matrix=${str1}${str2}${str3}" >> $GITHUB_OUTPUT

build:
needs: set-matrix

runs-on: ubuntu-latest

strategy:
fail-fast: false
matrix:
os: [ubuntu-22.04]
test: [test_datm_lnd]
esmf: [8.4.2]

env:
# set token to access gh command
GH_TOKEN: ${{ github.token }}
# installation location for application
APP_INSTALL_DIR: ${{ github.workspace }}/app
# installation location for dependencies
DEP_INSTALL_DIR: ~/.spack-ci
# option for retention period for artifacts, default is 90 days
ARTIFACTS_RETENTION_PERIOD: 2
matrix: ${{ fromJson(needs.set-matrix.outputs.matrix) }}

steps:
# test component
- name: Test Component
uses: esmf-org/nuopc-comp-testing@feature/v1.2
uses: esmf-org/nuopc-comp-testing@feature/v1.3
with:
app_install_dir: ${{ env.APP_INSTALL_DIR }}
artifacts_name: artifacts for ${{ matrix.test }} ${{ matrix.compiler }} ${{ matrix.esmf }}
artifacts_files: |
${{ env.APP_INSTALL_DIR }}/run/PET*
${{ env.APP_INSTALL_DIR }}/run/*.txt
${{ env.APP_INSTALL_DIR }}/run/*.log
${{ env.APP_INSTALL_DIR }}/run/comp.test.lnd.out.2000-01-01-75600.*
baseline_files: |
baseline_files: |
${{ env.APP_INSTALL_DIR }}/run/comp.test.*.nc
cache_input_file_list: |
${{ env.APP_INSTALL_DIR }}/run/INPUT
Expand All @@ -56,14 +118,13 @@ jobs:
cd ${{ env.APP_INSTALL_DIR }}/noahmp
mkdir build
cd build
cmake -DCMAKE_INSTALL_PREFIX=${{ env.APP_INSTALL_DIR }} -DOPENMP=ON ../
cmake -DCMAKE_INSTALL_PREFIX=${{ env.APP_INSTALL_DIR }} -DCMAKE_Fortran_FLAGS=\"-g -fbacktrace\" ../
make
make install
component_module_name: lnd_comp_nuopc
component_module_name: lnd_comp_nuopc.mod
data_component_name: datm
dependencies: |
[email protected] precision=32,64
esmf@${{ matrix.esmf }}+external-parallelio
${{ matrix.esmf }}
dependencies_install_dir: ${{ env.DEP_INSTALL_DIR }}
mpirun_args: --oversubscribe -np 6 --mca btl_tcp_if_include eth0
test_definition: ${{ env.APP_INSTALL_DIR }}/noahmp/.github/workflows/tests/${{ matrix.test }}.yaml
103 changes: 56 additions & 47 deletions .github/workflows/tests/test_datm_lnd.yaml
Original file line number Diff line number Diff line change
@@ -1,60 +1,69 @@
---
components:
drv:
runseq:
dt:
values: 3600
lnd-to-atm:
values: remapMethod=bilinear:unmappedaction=ignore:zeroregion=select:srcTermProcessing=0:termOrder:srcseq
atm-to-lnd:
values: remapMethod=bilinear:unmappedaction=ignore:zeroregion=select:srcTermProcessing=0:termOrder:srcseq
atm:
lnd:
input:
field_table:
protocol: wget
end_point: 'https://raw.githubusercontent.com'
files:
- /ufs-community/ufs-weather-model/develop/tests/parm/fd_nems.yaml
#- /ufs-community/ufs-weather-model/develop/tests/parm/fd_nems.yaml
- /uturuncoglu/ufs-weather-model/feature/noahmp/tests/parm/fd_ufs.yaml
force: True
config:
nuopc:
name: esmxRun.config
hconfig:
name: esmxRun.yaml
content:
ESMX_attributes:
Verbosity:
values: high
ALLCOMP_attributes:
case_name:
values: comp.test
stop_n:
values: 1
stop_option:
values: ndays
stop_tod:
values: 0
stop_ymd:
values: -999
restart_n:
values: 1
restart_option:
values: never
restart_ymd:
values: -999
no_group:
ESMX_component_list:
values: ATM LND
startTime:
values: '2000-01-01T00:00:00'
stopTime:
values: '2000-01-02T00:00:00'
logKindFlag:
values: ESMF_LOGKIND_MULTI
globalResourceControl:
values: .true.
ESMX_log_flush:
values: .true.
ESMX_field_dictionary:
values: fd_nems.yaml
ESMX:
App:
globalResourceControl:
values: 'true'
logKindFlag:
values: ESMF_LOGKIND_Multi
logAppendFlag:
values: 'false'
logFlush:
values: 'true'
fieldDictionary:
values: fd_ufs.yaml
startTime:
values: '2000-01-01T00:00:00'
stopTime:
values: '2000-01-02T00:00:00'
Driver:
componentList:
values:
- ATM
- LND
attributes:
Verbosity:
values: low
no_group:
runSequence:
values: |
@3600
LND -> ATM :remapMethod=bilinear:unmappedaction=ignore:zeroregion=select:srcTermProcessing=0:termOrder:srcseq
ATM -> LND :remapMethod=bilinear:unmappedaction=ignore:zeroregion=select:srcTermProcessing=0:termOrder:srcseq
ATM
LND
@
generalAttributes:
no_group:
case_name:
values: comp.test
stop_n:
values: 1
stop_option:
values: ndays
stop_tod:
values: 0
stop_ymd:
values: -999
restart_n:
values: 1
restart_option:
values: never
restart_ymd:
values: -999

lnd: test_datm_lnd/lnd.yaml

Expand Down
91 changes: 38 additions & 53 deletions .github/workflows/tests/test_datm_lnd/datm.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,60 +16,45 @@ input:
- /trunk/inputdata/share/meshes/fv1.9x2.5_141008_ESMFmesh.nc
target_directory: 'INPUT'
config:
nuopc1:
name: esmxRun.config
hconfig:
name: esmxRun.yaml
content:
no_group:
ATM_model:
values: datm
ATM_petlist:
values: 0-5
ATM_attributes:
Verbosity:
values: 0
Diagnostic:
values: 0
read_restart:
values: .false.
orb_eccen:
values: 1.e36
orb_iyear:
values: 2000
orb_iyear_align:
values: 2000
orb_mode:
values: fixed_year
orb_mvelp:
values: 1.e36
orb_obliq:
values: 1.e36
ScalarFieldCount:
values: 3
ScalarFieldIdxGridNX:
values: 1
ScalarFieldIdxGridNY:
values: 2
ScalarFieldIdxNextSwCday:
values: 3
ScalarFieldName:
values: cpl_scalars
case_name:
values: comp.test
stop_n:
values: 1
stop_option:
values: ndays
stop_tod:
values: 0
stop_ymd:
values: -999
restart_n:
values: 1
restart_option:
values: never
restart_ymd:
values: -999
nuopc2:
ATM:
no_group:
model:
values: datm
petlist:
values: 0-5
attributes:
Verbosity:
values: 0
Diagnostic:
values: 0
read_restart:
values: .false.
orb_eccen:
values: 1.e36
orb_iyear:
values: 2000
orb_iyear_align:
values: 2000
orb_mode:
values: fixed_year
orb_mvelp:
values: 1.e36
orb_obliq:
values: 1.e36
ScalarFieldCount:
values: 3
ScalarFieldIdxGridNX:
values: 1
ScalarFieldIdxGridNY:
values: 2
ScalarFieldIdxNextSwCday:
values: 3
ScalarFieldName:
values: cpl_scalars
nuopc:
name: datm.streams
content:
no_group:
Expand Down
Loading
Loading