Cleanup CCPP cmake build#383
Conversation
…physics for code review and testing
| # | ||
| #add_dependencies(ccppphys ccpp) | ||
| #target_link_libraries(ccppphys PUBLIC w3nco::w3nco_d NetCDF::NetCDF_Fortran) | ||
| ## This should not be necessary once framework and physics targets define BUILD_INTERFACE | ||
| #target_include_directories(ccppphys PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/framework/src) | ||
| # *DH |
There was a problem hiding this comment.
Let's remove this if it's not necessary anymore.
There was a problem hiding this comment.
I just saw a TODO comment in the PR description.
There was a problem hiding this comment.
I think I still need to add w3nco::w3nco_d somewhere in ccpp-physics's CMakeLists.txt, because the compile jobs are now failing with
/scratch1/NCEPDEV/nems/emc.nemspara/autort/pr/731093042/20210910021510/ufs-weather-model/FV3/ccpp/physics/physics/sfcsub.F:8551: undefined reference to `w3kind_'
/scratch1/NCEPDEV/nems/emc.nemspara/autort/pr/731093042/20210910021510/ufs-weather-model/FV3/ccpp/physics/physics/sfcsub.F:8554: undefined reference to `w3movdat_'
/scratch1/NCEPDEV/nems/emc.nemspara/autort/pr/731093042/20210910021510/ufs-weather-model/FV3/ccpp/physics/physics/sfcsub.F:8599: undefined reference to `getgbh_'
...
@DusanJovic-NOAA Am I correct?
There was a problem hiding this comment.
Yes, add it either in ccpp_physics, in which case you'll need to 'find' w3nco package there, if you want to have ccpp physics compilable outside UFS. Or just uncomment 'target_link_library' here to define dependency of ccpp_physics target on w3nco.
|
sfcsub.F needs "grib1" software.
…On Fri, Sep 10, 2021 at 9:11 AM Dom Heinzeller ***@***.***> wrote:
***@***.**** commented on this pull request.
------------------------------
In ccpp/CMakeLists.txt
<#383 (comment)>:
> +#
+#add_dependencies(ccppphys ccpp)
+#target_link_libraries(ccppphys PUBLIC w3nco::w3nco_d NetCDF::NetCDF_Fortran)
+## This should not be necessary once framework and physics targets define BUILD_INTERFACE
+#target_include_directories(ccppphys PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/framework/src)
+# *DH
I think I still need to add w3nco::w3nco_d somewhere in ccpp-physics's
CMakeLists.txt, because the compile jobs are now failing with
/scratch1/NCEPDEV/nems/emc.nemspara/autort/pr/731093042/20210910021510/ufs-weather-model/FV3/ccpp/physics/physics/sfcsub.F:8551: undefined reference to `w3kind_'
/scratch1/NCEPDEV/nems/emc.nemspara/autort/pr/731093042/20210910021510/ufs-weather-model/FV3/ccpp/physics/physics/sfcsub.F:8554: undefined reference to `w3movdat_'
/scratch1/NCEPDEV/nems/emc.nemspara/autort/pr/731093042/20210910021510/ufs-weather-model/FV3/ccpp/physics/physics/sfcsub.F:8599: undefined reference to `getgbh_'
...
@DusanJovic-NOAA <https://github.com/DusanJovic-NOAA> Am I correct?
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#383 (comment)>, or
unsubscribe
<https://github.com/notifications/unsubscribe-auth/ALLVRYQXQ65CGJ2D47PIOWLUBH7WXANCNFSM5DYKWOUQ>
.
Triage notifications on the go with GitHub Mobile for iOS
<https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675>
or Android
<https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub>.
--
Dr. Shrinivas Moorthi
Research Meteorologist
Modeling and Data Assimilation Branch
Environmental Modeling Center / National Centers for Environmental
Prediction
5830 University Research Court - (W/NP23), College Park MD 20740 USA
Tel: (301)683-3718
e-mail: ***@***.***
Phone: (301) 683-3718 Fax: (301) 683-3718
|
…ramework and ccpp-physics
|
Submodule pointers for ccpp-framework and ccpp-physics have been verified. Orion/Intel testing just completed successfully. |
…or porting and threading issues (NOAA-EMC#383) * CI passed at commit 464a90e prior to review. * Note: Orion RTs failed because of system work. Co-authored-by: Jessica Meixner <jessica.meixner@noaa.gov> Co-authored-by: Brian Curtis <brian.curtis@noaa.gov>
Description
Clean up
ccpp/CMakeLists.txt, because the associated PRs below for ccpp-framework and ccpp-physics now define their targets and dependencies correctly.Issue(s) addressed
Testing
See ufs-community/ufs-weather-model#791.
Dependencies
NCAR/ccpp-framework#382
NCAR/ccpp-physics#705
#383
ufs-community/ufs-weather-model#791