-
Notifications
You must be signed in to change notification settings - Fork 279
Merge HAFS coupling related developments back to ufs-weather-model #715
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
Merged
DusanJovic-NOAA
merged 367 commits into
ufs-community:develop
from
hafs-community:feature/hafs_sync_202107
Aug 5, 2021
Merged
Changes from all commits
Commits
Show all changes
367 commits
Select commit
Hold shift + click to select a range
359b54a
Update README_HWRF_PHYSICS.txt
climbfuji 9684a31
Add missing job dependency in tests/rt_intel.conf
climbfuji 1864f82
Merge remote-tracking branch 'remotes/origin/support/HAFS' into featu…
BinLiu-NOAA 5ddab54
tests/rt_gnu.conf: turn off IPD PROD, IPD REPRO and CCPP REPRO tests
climbfuji 5e07725
Revert change to .gitmodules and update submodule pointer for fv3atm
climbfuji 37dd70c
Update README_HWRF_PHYSICS.txt
climbfuji 1fe881c
Merge pull request #48 from climbfuji/update_dtc_hwrf_physics_from_ha…
climbfuji a9b6392
Merge branch 'dtc/hwrf-physics' into hwrf_sfc_PR
grantfirl e6de09e
change fv3atm to point to grantfirl fork and hwrf_sfc_PR branch
grantfirl f4f4faa
update submodule pointer for FV3
grantfirl e070b94
Update of regression tests for new LSM and SFCLAY physics
climbfuji 66f30e6
Merge pull request #1 from climbfuji/hwrf_sfc_PR_dom_for_grant
grantfirl 4bb262c
update submodule pointer for FV3 after merge and revert changes to .g…
grantfirl fbbba9b
Merge pull request #47 from grantfirl/hwrf_sfc_PR
grantfirl a75649d
Update the FV3 submodule after adding a new ccpp suite of suite_HAFS_…
BinLiu-NOAA 2bc83e6
Update modulefiles/jet.intel/fv3 for Jet disk location changes.
BinLiu-NOAA f709a1c
Merge remote-tracking branch 'remotes/origin/support/HAFS' into featu…
BinLiu-NOAA d2566ff
Merge remote-tracking branch 'remotes/upstream/develop' into support/…
BinLiu-NOAA 0a2967a
Update the submodule of NEMS.
BinLiu-NOAA bf937f2
Update HYCOM and FV3 submodules with merge data for unmapped points
danrosen25 2ff5ca9
Merge remote-tracking branch 'remotes/origin/support/HAFS' into featu…
BinLiu-NOAA 0d37744
Update the submodules of FV3 and NEMS after being synced with the cor…
BinLiu-NOAA 7aeed8d
Change the way the sutils module is loaded on hera.{gnu,intel} and je…
climbfuji 6d07f4d
Merge pull request #54 from climbfuji/hera_jet_modulefile_update_2020…
climbfuji dad61ba
Merge branch 'support/HAFS' of https://github.com/hafs-community/ufs-…
climbfuji 85a2d9e
Update .gitmodules and submodule pointer for fv3atm
climbfuji e9b700c
Update submodule pointer for fv3atm
climbfuji 38b1640
Update README_HWRF_PHYSICS.txt
climbfuji bbafea8
Revert change to .gitmodules and update submodule pointer for fv3atm
climbfuji c70a57f
Merge pull request #56 from climbfuji/update_dtc-hwrf-physics_from_ha…
climbfuji 7193a9c
Update .gitmodules and submodule pointer for fv3atm for code review a…
climbfuji ee4a1af
Cleanup regression test configuration after merge of dtc/hwrf-physics
climbfuji b6c3f5c
Add note about location of HAFS input data to several regression test…
climbfuji dadbb0c
Revert baseline change in tests/rt.sh
climbfuji 9aa5597
Update the modulefile for Jet to use George's builds for esmflocal/8_…
BinLiu-NOAA 7846fe7
Update HYCOM submodule. Use instantaneous sw and lw import variables.
danrosen25 220bb76
Update the fv3atm submodule.
BinLiu-NOAA f258bf1
Update submodule fv3atm.
BinLiu-NOAA 348af8e
Cleanup unnecessary regression test configurations
climbfuji 17feaf4
Update submodule pointer for fv3atm
climbfuji f5f6b39
Update regression test logs for hera.intel
climbfuji ddf208b
Update ESMF library modulefile for hera.intel. Update HYCOM submodule to
danrosen25 30c7b81
Revert change to .gitmodules and update submodule pointer for fv3atm
climbfuji 16f6559
Merge pull request #5 from climbfuji/update_hafs_from_dtc_hwrf_physic…
climbfuji 251fb84
Merge remote-tracking branch 'remotes/upstream/develop' into support/…
BinLiu-NOAA 247f0bf
Update submodule fv3atm.
BinLiu-NOAA bd1fb06
Merge remote-tracking branch 'remotes/origin/support/HAFS' into featu…
BinLiu-NOAA 95734d1
Merge remote-tracking branch 'remotes/upstream/develop' into feature/…
BinLiu-NOAA 17d7a17
Update submodule FV3
BinLiu-NOAA 23fe7c9
Update submodule fv3atm
BinLiu-NOAA 7f193a6
Merge remote-tracking branch 'remotes/community_ufsweather/feature/sy…
BinLiu-NOAA 3eeeb5c
Update submodule FV3.
BinLiu-NOAA 99eb767
Load esmflocal/8.1.0.19bs on Orion.
BinLiu-NOAA 6928492
Merge remote-tracking branch 'remotes/upstream/develop' into feature/…
BinLiu-NOAA 34fbd84
Update submodule FV3.
BinLiu-NOAA c1682a4
Merge remote-tracking branch 'remotes/community_ufsweather/feature/sy…
BinLiu-NOAA c2f6fe3
Add CMEPS submodule to components and compile.sh script.
danrosen25 f9047d1
Update CMEPS submodule. Includes ocean fraction computation fix.
danrosen25 4b782ac
Update the submodules after them being merged into their support/HAFS…
BinLiu-NOAA 87b02cf
Merge remote-tracking branch 'remotes/upstream/develop' into feature/…
BinLiu-NOAA 059c05f
Merge remote-tracking branch 'remotes/origin/feature/hafs_sync_develo…
BinLiu-NOAA fc1e3f6
Temporarily turn off the INLINE_POST build option on Jet.
BinLiu-NOAA 775e289
Merge branch 'feature/hafs_sync_develop_202011' into feature/hafs_cou…
BinLiu-NOAA d0f491a
Load the hpc-stack version of modules and turn back on the INLINE_POS…
BinLiu-NOAA 7b3333e
Merge branch 'feature/hafs_sync_develop_202011' into feature/hafs_cou…
BinLiu-NOAA 8351a18
Created HYCOM-interface with HYCOM cmake files. Move HYCOM submodule
danrosen25 d3c1595
Point to the support/HAFS branch for the HYCOM submodule.
BinLiu-NOAA 6b97966
add CDEPS as submodule and enable RT tests for data component configu…
63ba0a5
Merge remote-tracking branch 'remotes/upstream/develop' into support/…
BinLiu-NOAA 5ec36fe
Update submodule FV3 after adding a new HAFS ccpp suite suite_HAFS_v0…
BinLiu-NOAA 41f4e60
Merge branch 'feature/hafs_couplehycom' into 'feature/hafs_couplehyco…
danrosen25 8da265a
Changes needed to run through the regression tests on Hera (from Chun…
BinLiu-NOAA 9e32917
Merge remote-tracking branch 'remotes/upstream/develop' into support/…
BinLiu-NOAA abe96d5
enable CDEPS build
34e7097
disable PIO initialization in CMEPS level, NEMS will do it
23853d4
update compile script to enable data components
483f627
update CDEPS to enable data components under cmake
6c9bfcd
fix PIO issue
910544f
remove INTERNAL_PIO_INIT. initialization is moved to NEMS
01198e6
fix HYCOM cmake to be compatible with feature/NUOPC_merged branch
d71f0f2
more fix for PIO issue
108d6b8
fix run seq for datm+docn case to be compatible with updated CMEPS
730d968
Merge branch 'support/HAFS' into feature/hafs_couplehycom
BinLiu-NOAA accfe8d
Update HYCOM submodule to include HYCOM_merged. Update FV3 submodule to
danrosen25 996fb14
update the components
754cc11
update runseq for datm+hycom case
20de24d
rename RT configuration file
1b4c3bb
update CDEPS
dab807e
Merge remote-tracking branch 'remotes/origin/feature/hafs_couplehycom…
BinLiu-NOAA e1df1bd
Update submodules. NEMS updated to include CONNECTOR diagnostics and PIO
danrosen25 8833034
Update submodules. CMEPS ESCOMP/master merged with support/HAFS.
danrosen25 a0023f0
Merge remote-tracking branch 'remotes/upstream/develop' into support/…
BinLiu-NOAA bd222fa
Merge remote-tracking branch 'remotes/origin/support/HAFS' into featu…
BinLiu-NOAA 72e18cc
Update submodule NEMS after its feautre/hafs_couplehycom branch being…
BinLiu-NOAA 7c41eef
Merge remote-tracking branch 'remotes/origin/support/HAFS' into featu…
BinLiu-NOAA 4c4ed07
sync components with feature/hafs_couplehycom
caac8e7
sync model with feature/hafs_couplehycom
a9d52fa
remove unused RT configuration file
1d63b90
fix PIO initialization for S2S
9c96f9f
Update the CMEPS submodule to point to its latest support/HAFS branch.
BinLiu-NOAA 45a64f2
Update submodule FV3.
BinLiu-NOAA 2ed56a0
Upgrade CMEPS submodule to ESCOM merge PR#154. Upgrade HYCOM to fix s…
danrosen25 a0b36cb
Merge pull request #7 from hafs-community/feature/hafs_couplehycom
BinLiu-NOAA 1690f38
more PIO initialization related fix for S2S configurations
7265e59
Merge remote-tracking branch 'remotes/upstream/develop' into support/…
BinLiu-NOAA 3960577
fix issue related to data model regression tests
deb246c
more fix for RT tests
dd2ff5c
set CDEPS data components as false for other tests
ef98508
update components that has PIO fix
f800fab
clean unused command
e1f164a
Merge remote-tracking branch 'remotes/upstream/develop' into support/…
BinLiu-NOAA e6bcb48
update HAFS RT tests
3b73e72
update components
f6832e1
update NEMS to include PIO fix
2aaa309
sync with support/HAFS
d58071d
fix build for custom DATM configuration tha uses MOM6
8e463c8
fix for input.nml in DATM configurations
db3d4c8
increase wallclock time from 30 to 45 for coupled configurations
062d55e
update components
4dae435
update submodule file
795774c
fix minor typo
4eb55c1
add PNETCDF support for PIO
88c24ca
update CMakeModules
494930e
try to update CMakeModules again
f08feeb
go back to NOAA-EMC for CMakeModules
ee0f23f
update regression tests log
8790c94
Merge remote-tracking branch 'remotes/upstream/develop' into support/…
BinLiu-NOAA 8619809
Currently, in the support/HAFS branch on hera, compilation without sp…
BinLiu-NOAA e599140
sync with support/HAFS
7aa9cd2
Update RegressionTests_orion.intel.log
uturuncoglu b1b64f6
initial attempt to bring HAFS related RTs
544f15c
add missing files
d2b9c43
delete remaining files
31dab3d
Merge branch 'feature/hafs_couplehycom_cdeps' of https://github.com/h…
1d673e1
minor fix for nemsio
45416f7
Update submodule WW3 to point to the hafs-community fork's feature/ha…
BinLiu-NOAA 41b0d9c
Update submodule WW3, which points to the feature/hafs_coupleww3 branch.
BinLiu-NOAA 0352aed
more work for HAFS RTs
47b3c16
Add module load pio/2.5.2 on wcoss_cray (From Biju).
BinLiu-NOAA 040cb1d
more work to bring HAFS RTs
d17f5a8
add missing file
2846a22
remove all data component test
f38f619
update .gitmodules to point feature/pio_fix_comp branches
48b24db
increase wallclock time for DATM+HYCOM RT
9ff89f5
add environment variables for ESMF timing
4d91393
Adding ESMF build with YAML
BijuThomas-NOAA 331150f
Merge pull request #9 from hafs-community/feature/hafs_sync_20210312
BinLiu-NOAA fa5c11a
Merge remote-tracking branch 'remotes/origin/support/HAFS' into featu…
BinLiu-NOAA dd1e6ef
Merge remote-tracking branch 'remotes/upstream/develop' into support/…
BinLiu-NOAA f8a4f79
Merge remote-tracking branch 'upstream/develop' into support/HAFS
BinLiu-NOAA a191a51
Prepare WW3 build
danrosen25 ebe832e
Merge remote-tracking branch 'upstream/develop' into support/HAFS
BinLiu-NOAA 8652f06
Update submodule FV3.
BinLiu-NOAA e879efe
Remove the obsolete symbolic links under modulefiles.
BinLiu-NOAA e417d1b
Update submodule FV3.
BinLiu-NOAA fc5a6cb
Merge remote-tracking branch 'remotes/origin/develop' into support/HAFS
BinLiu-NOAA 1b3cb93
Update submodule FV3.
BinLiu-NOAA 866b89f
Update submodules of FV3 and CMEPS. Create modulefile symbolic links …
BinLiu-NOAA 6a12cf9
Update submodule FV3.
BinLiu-NOAA ba80521
Revert changes in modulefiles/ufs_wcoss_cray*, since the esmf810bs47 …
BinLiu-NOAA 8379159
Use the correct location to load esmf/810bs47 on wcoss_cray. Also,
BinLiu-NOAA 7e63c67
Update submodule FV3.
BinLiu-NOAA 0634d17
Update submodule FV3.
BinLiu-NOAA 3b3a0b7
Use a temporarily installed version of esmf/811bs03 on Orion, Hera, J…
BinLiu-NOAA d374729
Switch to use esmf/811 as it has been installed under hpc-stack.
BinLiu-NOAA 07b9608
Merge remote-tracking branch 'remotes/upstream/develop' into support/…
BinLiu-NOAA 7d18241
Update FV3, which has a better fix to deal with sea ice point for HAFS
BinLiu-NOAA 5c70d5e
update git submodules
0a79744
update components
79f9fc8
update CMEPS
1bf594c
sync model
a8b2659
sync model again
51c02e4
fix merge conflict issue
8c670b2
resolve merge conflicts
78b282a
update FV3
e02825b
update mediator component
8613d7a
Update submodule FV3, which has the parameter variables rlmx and elmx…
BinLiu-NOAA 09391fd
Merge remote-tracking branch 'remotes/origin/support/HAFS' into featu…
BinLiu-NOAA 845c9ec
update components and sync with support/HAFS
41b5242
Merge remote-tracking branch 'origin/support/HAFS' into feature/hafs_…
94628f2
revert chnages in the CDEPS interface
4aa9759
revert chnages related with using full CDEPS library and add data oce…
30f41ff
Update submodule HYCOM.
BinLiu-NOAA 4179b7d
update components, point HAFS fork for CDEPS and fix build issue in NEMS
2aaf95a
fix for nems data atmosphere
e7f44ac
Update submodule FV3 after WeiguoWang-NOAA's modification of near-sur…
BinLiu-NOAA 43bc629
update FV3 and HYCOM
uturuncoglu d452519
fix HAFS specific regression tests
de80745
point feature/hafs_couplehycom_cdeps branch for submodules
f684c94
Merge remote-tracking branch 'remotes/origin/support/HAFS' into featu…
BinLiu-NOAA 7c478cd
fix run script to copy table files to run directory correctly
7369779
more fix for RT system
41518bf
activate all HAFS specific RTs
3c97b19
update HAFS RTs
450dfc6
update defaults for RTs
1da5ad7
add HAFS specific RTs to rt.conf
ecf5cda
Merge remote-tracking branch 'remotes/upstream/develop' into feature/…
BinLiu-NOAA e5cb32e
Merge remote-tracking branch 'remotes/upstream/develop' into feature/…
BinLiu-NOAA 927ce2a
Merge remote-tracking branch 'remotes/origin/support/HAFS' into featu…
BinLiu-NOAA a7e4ea0
Merge remote-tracking branch 'remotes/origin/support/HAFS' into featu…
BinLiu-NOAA 0db5123
adjust HAFS RTs based on recent chnages in FV3 configuration and gene…
ca9d544
update baseline files that need to be checked
5a6f370
update standalone test for its lits of baseline files
92e54d1
Merge remote-tracking branch 'upstream/develop' into feature/hafs_syn…
BinLiu-NOAA 3fa0db6
Merge remote-tracking branch 'remotes/origin/feature/hafs_sync_202107…
BinLiu-NOAA 007e62e
remove ncld from HAFS RTs
e91f465
Merge remote-tracking branch 'remotes/origin/feature/hafs_sync_202107…
BinLiu-NOAA bb403ef
Update submodules CDEPS and CMEPS to the latest support/HAFS branches.
BinLiu-NOAA 660b1aa
Merge remote-tracking branch 'remotes/origin/feature/hafs_sync_202107…
BinLiu-NOAA a97f9d7
Update submodule FV3.
BinLiu-NOAA 4710632
Update submodule CMEPS-interface/CMEPS.
BinLiu-NOAA f7ab203
fix field dictionary and CMEPS HAFS coupling mode for wave coupling
ffc84da
add missing field to the dictionary
b7fd00e
Update submodule CMEPS-interface/CMEPS.
BinLiu-NOAA 6e3fb35
Merge remote-tracking branch 'remotes/upstream/develop' into support/…
BinLiu-NOAA ff815bc
Remove the symbolic modulefile links previously added.
BinLiu-NOAA 0f4ffa0
Update submodule CDEPS-interface/CDEPS, the support/HAFS branch is now
BinLiu-NOAA 0eec6a3
Switch to use the emc/develop branch in NOAA-EMC fork for the HYCOM-s…
BinLiu-NOAA b72f5b0
Update submodule CMEPS-interface/CMEPS.
BinLiu-NOAA f2716ef
Update submodule WW3.
BinLiu-NOAA 15a8f91
Update submodules to point the proper branches and commits.
BinLiu-NOAA 50b1ad9
Update submodule WW3.
BinLiu-NOAA 9784846
Update submodule CMEPS-interface/CMEPS.
BinLiu-NOAA 942e233
Remove PNETCDF dependency since it is not currently used in ufs-weath…
BinLiu-NOAA 32dd969
Build one HAFS application to support different HAFS related configur…
BinLiu-NOAA 15b3608
Merge remote-tracking branch 'remotes/upstream/develop' into feature/…
BinLiu-NOAA 1e185ce
Update submodule FV3.
BinLiu-NOAA 7b0758a
Merge remote-tracking branch 'remotes/upstream/develop' into feature/…
BinLiu-NOAA bf258d1
update HAFS specific regression tests
71205c5
Merge branch 'feature/hafs_sync_202107' of https://github.com/hafs-co…
48c07de
*Remove amip_interp_nml from tests/parm/input_natl_c192.nml.IN and ma…
BinLiu-NOAA 2649647
*Rename and clean up the HAFS related regression tests (Ufuk, Evan, C…
BinLiu-NOAA 7c7b4f3
Update the export_hafs_* in tests/default_vars.sh and tests/tests/haf…
BinLiu-NOAA 8040fec
Update new added HAFS regression tests and three HAFS build modes (HA…
BinLiu-NOAA 45d7ade
Take out the FV3 restart files from the new added HAFS related RT bas…
BinLiu-NOAA c55ccbe
Update RegressionTests_orion.intel.log.
BinLiu-NOAA 5b543f5
Update RegressionTests_hera.gnu.log.
BinLiu-NOAA 87b4e0d
Merge branch 'feature/hafs_sync_202107' of https://github.com/hafs-co…
BinLiu-NOAA dbf131b
Regression tests on wcoss_cray passed. Update RegressionTests_wcoss_c…
BinLiu-NOAA 1d98827
Update RegressionTests_gaea.intel.log and RegressionTests_cheyenne.gn…
BinLiu-NOAA 449571d
Regression tests on wcoss_dell_p3 passed. Update RegressionTests_wcos…
BinLiu-NOAA c81a564
Update RegressionTests_hera.intel.log
BinLiu-NOAA b8502bd
Update RegressionTests_cheyenne.intel.log.
BinLiu-NOAA 11b062e
Delete rt_hafs.conf and increase wallclock for RT hafs_regional_atm.
BinLiu-NOAA 90e0e49
Update RegressionTests_jet.intel.log.
BinLiu-NOAA 73a3bdd
Update submodule CDEPS-interface/CDEPS.
BinLiu-NOAA 37ca720
Remove .git for urls in .gitmodules.
BinLiu-NOAA 5bfb2d3
Remove empty trailing whitespaces for new added files/changes.
BinLiu-NOAA 7e97205
Update submodule CMEPS-interface/CMEPS.
BinLiu-NOAA b041e63
Update submodule FV3.
BinLiu-NOAA File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Submodule CDEPS
updated
15 files
| +3 −1 | .github/workflows/extbuild.yml | |
| +31 −8 | cime_config/buildlib | |
| +12 −5 | cime_config/stream_cdeps.py | |
| +1 −1 | cime_config/testdefs/testlist_cdeps.xml | |
| +55 −4 | datm/cime_config/buildnml | |
| +5 −6 | datm/cime_config/stream_definition_datm.xml | |
| +105 −107 | datm/datm_datamode_era5_mod.F90 | |
| +1 −1 | dice/cime_config/buildnml | |
| +1 −1 | dlnd/cime_config/buildnml | |
| +1 −1 | docn/cime_config/buildnml | |
| +1 −1 | drof/cime_config/buildnml | |
| +24 −11 | dshr/dshr_mod.F90 | |
| +1 −1 | dwav/cime_config/buildnml | |
| +14 −11 | streams/dshr_strdata_mod.F90 | |
| +4 −4 | streams/dshr_stream_mod.F90 |
Submodule CMEPS
updated
6 files
| +239 −710 | mediator/esmFldsExchange_hafs_mod.F90 | |
| +51 −9 | mediator/med.F90 | |
| +21 −5 | mediator/med_fraction_mod.F90 | |
| +54 −19 | mediator/med_map_mod.F90 | |
| +37 −10 | mediator/med_methods_mod.F90 | |
| +12 −1 | mediator/med_phases_post_wav_mod.F90 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Submodule FV3
updated
from fca828 to c52bb0
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,124 @@ | ||
| get_filename_component(hycom_dir "${CMAKE_CURRENT_SOURCE_DIR}/HYCOM" ABSOLUTE) | ||
|
|
||
| ### HYCOM Fortran compiler flags | ||
| if(CMAKE_Fortran_COMPILER_ID MATCHES "GNU") | ||
| set(CMAKE_Fortran_FLAGS "-g -fbacktrace") | ||
| set(CMAKE_Fortran_FLAGS "${CMAKE_Fortran_FLAGS} -fdefault-real-8 -fdefault-double-8") | ||
| set(CMAKE_Fortran_FLAGS "${CMAKE_Fortran_FLAGS} -Waliasing -fcray-pointer -fconvert=big-endian -ffree-line-length-none -fno-range-check -fbacktrace") | ||
| set(CMAKE_Fortran_FLAGS_RELEASE "-O3") | ||
| set(CMAKE_Fortran_FLAGS_DEBUG "-O0 -fcheck=bounds -ffpe-trap=invalid,zero,overflow,underflow" ) | ||
| set(CMAKE_Fortran_LINK_FLAGS "") | ||
| elseif(CMAKE_Fortran_COMPILER_ID MATCHES "Intel") | ||
| set(CMAKE_Fortran_FLAGS "-g -traceback -xSSE4.2 -mcmodel=small -r8") | ||
| set(CMAKE_Fortran_FLAGS_RELEASE "-O3 -fp-model source -warn nogeneral") | ||
| set(CMAKE_Fortran_FLAGS_DEBUG "-O0 -check -check noarg_temp_created -check nopointer -fpe0 -ftrapuv -link_mpi=dbg") | ||
| set(CMAKE_Fortran_LINK_FLAGS "-V ${CMAKE_Fortran_FLAGS} -static-intel") | ||
| else() | ||
| message(WARNING "Fortran compiler with ID ${CMAKE_Fortran_COMPILER_ID} will be used with CMake default options") | ||
| endif() | ||
|
|
||
| ### HYCOM C compiler flags | ||
| if(CMAKE_C_COMPILER_ID MATCHES "GNU") | ||
| set(CMAKE_C_FLAGS "-g -fbacktrace") | ||
| set(CMAKE_C_FLAGS_RELEASE "-O3") | ||
| set(CMAKE_C_FLAGS_DEBUG "-O0") | ||
| set(CMAKE_C_LINK_FLAGS "") | ||
| elseif(CMAKE_C_COMPILER_ID MATCHES "Intel") | ||
| set(CMAKE_C_FLAGS "-g -traceback -xSSE4.2 -mcmodel=small") | ||
| set(CMAKE_C_FLAGS_RELEASE "-O") | ||
| set(CMAKE_C_FLAGS_DEBUG "-O0 -ftrapuv") | ||
| set(CMAKE_C_LINK_FLAGS "-V ${CMAKE_C_FLAGS} -static-intel") | ||
| else() | ||
| message(WARNING "C compiler with ID ${CMAKE_C_COMPILER_ID} will be used with CMake default options") | ||
| endif() | ||
|
|
||
| list(APPEND _hycom_defs IA32 | ||
| REAL8 | ||
| MPI | ||
| SERIAL_IO | ||
| ENDIAN_IO | ||
| NAN2003 | ||
| TIME | ||
| RELO | ||
| EOS_SIG2 | ||
| EOS_17T | ||
| ESPC_COUPLE | ||
| ) | ||
|
|
||
| # User option to build HYCOM offline executable | ||
| set(HYCOMOFFLINE OFF CACHE BOOL "Build HYCOM offline") | ||
|
|
||
| message("Build HYCOM:") | ||
| message(" in: ${hycom_dir}") | ||
| message(" HYCOMOFFLINE: ${HYCOMOFFLINE}") | ||
| message("") | ||
|
|
||
| # Too many files to list, so include them via this file | ||
| include("hycom_files.cmake") | ||
|
|
||
| ### Use common object library for building target library | ||
| add_library(hycom_obj OBJECT ${_hycom_src_files}) | ||
| set_target_properties(hycom_obj PROPERTIES ARCHIVE_OUTPUT_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}/HYCOM) | ||
| set_target_properties(hycom_obj PROPERTIES Fortran_MODULE_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}/mod) | ||
| target_include_directories(hycom_obj PRIVATE $<BUILD_INTERFACE:${CMAKE_CURRENT_BINARY_DIR}/mod>) | ||
| target_include_directories(hycom_obj PRIVATE $<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/HYCOM>) | ||
| target_compile_definitions(hycom_obj PRIVATE "${_hycom_defs}") | ||
|
|
||
|
|
||
| ### Use NUOPC object library for building target library | ||
| add_library(hycom_nuopc_obj OBJECT ${_hycom_nuopc_src_files}) | ||
| add_dependencies(hycom_nuopc_obj hycom_obj) | ||
| set_target_properties(hycom_nuopc_obj PROPERTIES ARCHIVE_OUTPUT_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}/HYCOM) | ||
| set_target_properties(hycom_nuopc_obj PROPERTIES Fortran_MODULE_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}/mod) | ||
| target_include_directories(hycom_nuopc_obj PRIVATE $<BUILD_INTERFACE:${CMAKE_CURRENT_BINARY_DIR}/mod>) | ||
| target_include_directories(hycom_nuopc_obj PRIVATE $<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/HYCOM> | ||
| $<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/HYCOM/NUOPC>) | ||
| target_compile_definitions(hycom_nuopc_obj PRIVATE "${_hycom_defs}") | ||
| target_link_libraries(hycom_nuopc_obj PRIVATE hycom_obj | ||
| esmf | ||
| NetCDF::NetCDF_Fortran) | ||
|
|
||
| ### Create target library and set PUBLIC interfaces on the library | ||
| add_library(hycom STATIC $<TARGET_OBJECTS:hycom_obj> | ||
| $<TARGET_OBJECTS:hycom_nuopc_obj>) | ||
| target_include_directories(hycom PUBLIC $<BUILD_INTERFACE:${CMAKE_CURRENT_BINARY_DIR}/mod> | ||
| $<INSTALL_INTERFACE:mod>) | ||
| target_include_directories(hycom PUBLIC $<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/HYCOM> | ||
| $<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/HYCOM/NUOPC>) | ||
| target_compile_definitions(hycom PRIVATE "${_hycom_defs}") | ||
| target_link_libraries(hycom PUBLIC esmf | ||
| NetCDF::NetCDF_Fortran) | ||
|
|
||
| ### Create HYCOM offline executable | ||
| if(HYCOMOFFLINE) | ||
| message("Building HYCOM offline executable") | ||
| add_executable(hycomoffline ${_hycom_offline_src_files}) | ||
| add_dependencies(hycomoffline hycom_obj) | ||
| set_target_properties(hycomoffline PROPERTIES Fortran_MODULE_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}/mod_offline) | ||
| target_include_directories(hycomoffline PRIVATE $<BUILD_INTERFACE:${CMAKE_CURRENT_BINARY_DIR}/mod>) | ||
| target_include_directories(hycomoffline PRIVATE $<BUILD_INTERFACE:${CMAKE_CURRENT_BINARY_DIR}/mod_offline>) | ||
| target_include_directories(hycomoffline PRIVATE $<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/HYCOM>) | ||
|
|
||
| target_link_libraries(hycomoffline PRIVATE hycom_obj) | ||
| endif() | ||
|
|
||
| ############################################################################### | ||
| ### Install | ||
| ############################################################################### | ||
|
|
||
| install( | ||
| TARGETS hycom | ||
| EXPORT hycom-config | ||
| RUNTIME DESTINATION bin | ||
| LIBRARY DESTINATION lib | ||
| ARCHIVE DESTINATION lib | ||
| COMPONENT Library) | ||
|
|
||
| install(DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}/mod DESTINATION ${CMAKE_INSTALL_PREFIX}/HYCOM) | ||
|
|
||
| install(EXPORT hycom-config | ||
| DESTINATION lib/cmake) | ||
|
|
||
| if(HYCOMOFFLINE) | ||
| install(TARGETS hycomoffline RUNTIME DESTINATION bin) | ||
| endif() |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,68 @@ | ||
| list(APPEND _hycom_src_files | ||
| HYCOM/mod_dimensions.F90 | ||
| HYCOM/mod_xc.F90 | ||
| HYCOM/mod_za.F90 | ||
| HYCOM/mod_cb_arrays.F90 | ||
| HYCOM/mod_pipe.F90 | ||
| HYCOM/mod_incupd.F90 | ||
| HYCOM/mod_floats.F90 | ||
| HYCOM/mod_stokes.F90 | ||
| HYCOM/mod_tides.F90 | ||
| HYCOM/mod_mean.F90 | ||
| HYCOM/mod_archiv.F90 | ||
| HYCOM/mod_tsadvc.F90 | ||
| HYCOM/mod_momtum.F90 | ||
| HYCOM/mod_barotp.F90 | ||
| HYCOM/mod_asselin.F90 | ||
| HYCOM/mod_restart.F90 | ||
| HYCOM/mod_import.F90 | ||
| HYCOM/mod_hycom.F90 | ||
|
|
||
| HYCOM/bigrid.F90 | ||
| HYCOM/blkdat.F90 | ||
| HYCOM/cnuity.F90 | ||
| HYCOM/convec.F90 | ||
| HYCOM/diapfl.F90 | ||
| HYCOM/dpthuv.F90 | ||
| HYCOM/dpudpv.F90 | ||
| HYCOM/forfun.F90 | ||
| HYCOM/geopar.F90 | ||
| HYCOM/hybgen.F90 | ||
| HYCOM/icloan.F90 | ||
| HYCOM/inicon.F90 | ||
| HYCOM/inigiss.F90 | ||
| HYCOM/inikpp.F90 | ||
| HYCOM/inimy.F90 | ||
| HYCOM/latbdy.F90 | ||
| HYCOM/matinv.F90 | ||
| HYCOM/mxkprf.F90 | ||
| HYCOM/mxkrt.F90 | ||
| HYCOM/mxkrtm.F90 | ||
| HYCOM/mxpwp.F90 | ||
| HYCOM/overtn.F90 | ||
| HYCOM/poflat.F90 | ||
| HYCOM/prtmsk.F90 | ||
| HYCOM/psmoo.F90 | ||
| HYCOM/thermf.F90 | ||
| HYCOM/trcupd.F90 | ||
| HYCOM/machine.F90 | ||
| HYCOM/wtime.F90 | ||
| HYCOM/machi_c.c | ||
| HYCOM/isnan.F90 | ||
| HYCOM/s8gefs.F90 | ||
| ) | ||
|
|
||
| list(APPEND _hycom_nuopc_src_files | ||
| HYCOM/NUOPC/HYCOM_OceanComp.F90 | ||
| HYCOM/NUOPC/HYCOM_ESMF_Extensions.F90 | ||
| HYCOM/NUOPC/hycom_couple.F90 | ||
| HYCOM/NUOPC/read_impexp_config_mod.F90 | ||
| HYCOM/NUOPC/impexpField_cdf_mod.F90 | ||
| HYCOM/NUOPC/export_from_hycom_tiled.F90 | ||
| HYCOM/NUOPC/hycom_read_latlon.F90 | ||
| HYCOM/NUOPC/hycom_nuopc_flags.F90 | ||
| ) | ||
|
|
||
| list(APPEND _hycom_offline_src_files | ||
| HYCOM/hycom.F90 | ||
| ) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.