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

Cleanup CCPP cmake build #383

Merged
merged 7 commits into from
Sep 15, 2021
Merged

Conversation

climbfuji
Copy link
Collaborator

@climbfuji climbfuji commented Sep 10, 2021

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

Comment on lines 97 to 102
#
#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
Copy link
Collaborator

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.

Copy link
Collaborator

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.

Copy link
Collaborator Author

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?

Copy link
Collaborator

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.

@SMoorthi-emc
Copy link
Contributor

SMoorthi-emc commented Sep 10, 2021 via email

@climbfuji climbfuji closed this Sep 13, 2021
@climbfuji
Copy link
Collaborator Author

Submodule pointers for ccpp-framework and ccpp-physics have been verified. Orion/Intel testing just completed successfully.

@junwang-noaa junwang-noaa merged commit 85c2648 into NOAA-EMC:develop Sep 15, 2021
SamuelTrahanNOAA pushed a commit to SamuelTrahanNOAA/fv3atm that referenced this pull request Jun 13, 2022
…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]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

CCPP must define its targets and dependencies correctly
4 participants