-
Notifications
You must be signed in to change notification settings - Fork 163
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
Cleanup CCPP cmake build #383
Conversation
…physics for code review and testing
ccpp/CMakeLists.txt
Outdated
# | ||
#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.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Let's remove this if it's not necessary anymore.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I just saw a TODO comment in the PR description.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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 <[email protected]> Co-authored-by: Brian Curtis <[email protected]>
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