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

Build ocean ice interpolation code w/ CMake and add namelists, etc. #26

Merged
merged 4 commits into from
Oct 20, 2023
Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
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
8 changes: 8 additions & 0 deletions parm/ocnicepost/ice.csv
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
! variable name, dimension, grid location, remapping method, vector pair, grid location of vector pair
'hi_h', 2 , 'Ct', 'bilinear', '', ''
'hs_h', 2 , 'Ct', 'bilinear', '', ''
'aice_h', 2 , 'Ct', 'bilinear', '', ''
'sst_h', 2 , 'Ct', 'bilinear', '', ''
'Tsfc_h', 2 , 'Ct', 'bilinear', '', ''
'uvel_h', 2 , 'Bu_x', 'bilinear', 'vvel_h', 'Bu_y'
'vvel_h', 2 , 'Bu_y', 'bilinear', 'uvel_h', 'Bu_x'
11 changes: 11 additions & 0 deletions parm/ocnicepost/ice_mx025_to_0p25.nml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
& ocnicepost_nml
ftype='ice'
wgtsdir='/scratch1/NCEPDEV/stmp4/Denise.Worthen/CPLD_GRIDGEN/'
srcdims=1440,1080
dstdims=1440,721
maskvar='tmask'
sinvar=''
cosvar=''
angvar='ANGLET'
debug=.false.
/
25 changes: 25 additions & 0 deletions parm/ocnicepost/ocean.csv
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
! variable name, dimension, grid location, remapping method, vector pair, grid location of vector pair
'SSH', 2 ,'Ct' , 'bilinear' , '', ''
'SST', 2 ,'Ct' , 'bilinear' , '', ''
'SSS', 2 ,'Ct' , 'bilinear' , '', ''
'speed', 2 ,'Ct' , 'bilinear' , '', ''
'ePBL', 2 ,'Ct' , 'bilinear' , '', ''
'MLD_003', 2 ,'Ct' , 'bilinear' , '', ''
'MLD_0125', 2 ,'Ct' , 'bilinear' , '', ''
'latent', 2 ,'Ct' , 'conserve' , '', ''
'sensible', 2 ,'Ct' , 'conserve' , '', ''
'SW', 2 ,'Ct' , 'conserve' , '', ''
'LW', 2 ,'Ct' , 'conserve' , '', ''
'evap', 2 ,'Ct' , 'conserve' , '', ''
'lprec', 2 ,'Ct' , 'conserve' , '', ''
'fprec', 2 ,'Ct' , 'conserve' , '', ''
'LwLatSens', 2 ,'Ct' , 'conserve' , '', ''
'Heat_PmE', 2 ,'Ct' , 'conserve' , '', ''
'SSU', 2 ,'Cu' , 'bilinear' , 'SSV' , 'Cv'
'SSV', 2 ,'Cv' , 'bilinear' , 'SSU' , 'Cu'
'taux', 2 ,'Cu' , 'conserve' , 'tauy' , 'Cv'
'tauy', 2 ,'Cv' , 'conserve' , 'taux' , 'Cu'
'temp', 3 ,'Ct' , 'bilinear' , '', ''
'so', 3 ,'Ct' , 'bilinear' , '', ''
'uo', 3 ,'Cu' , 'bilinear' , 'vo' , 'Cv'
'vo', 3 ,'Cv' , 'bilinear' , 'uo' , 'Cu'
11 changes: 11 additions & 0 deletions parm/ocnicepost/ocean_mx025_to_0p25.nml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
& ocnicepost_nml
ftype='ocean'
wgtsdir='/scratch1/NCEPDEV/stmp4/Denise.Worthen/CPLD_GRIDGEN/'
srcdims=1440,1080,40
dstdims=1440,721
maskvar='temp'
sinvar='sin_rot'
cosvar='cos_rot'
angvar=''
debug=.false.
/
11 changes: 11 additions & 0 deletions parm/ocnicepost/ocnicepost.nml.jinja2
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
& ocnicepost_nml
ftype = {{ component | default('ice') }},
wgtsdir = {{ interpolation_weights_dir }},
srcdims = {{ source_tripole_dims }},
dstdims = {{ target_latlon_dims }},
maskvar = {{ maskvar | default('') }},
sinvar = {{ sinvar | default('') }},
cosvar = {{ cosvar | default('') }},
angvar = {{ angvar | default('') }},
debug = {{ debug | default('.false.') }}
/
1 change: 1 addition & 0 deletions src/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -16,3 +16,4 @@ add_subdirectory(overgridid.fd)
# add_subdirectory(rdbfmsua.fd)
add_subdirectory(webtitle.fd)

add_subdirectory(ocnicepost.fd)
13 changes: 13 additions & 0 deletions src/ocnicepost.fd/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
list(APPEND fortran_src
arrays_mod.F90
init_mod.F90
masking_mod.F90
ocnicepost.F90
utils_mod.F90
)

set(exe_name ocnicepost.x)
add_executable(${exe_name} ${fortran_src})
target_link_libraries(${exe_name} PRIVATE NetCDF::NetCDF_Fortran)

install(TARGETS ${exe_name} RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR})