Skip to content

Cleanup CCPP cmake build#383

Merged
junwang-noaa merged 7 commits into
NOAA-EMC:developfrom
climbfuji:ccpp_cmake_cleanup
Sep 15, 2021
Merged

Cleanup CCPP cmake build#383
junwang-noaa merged 7 commits into
NOAA-EMC:developfrom
climbfuji:ccpp_cmake_cleanup

Conversation

@climbfuji
Copy link
Copy Markdown
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 thread ccpp/CMakeLists.txt Outdated
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
Copy Markdown
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
Copy Markdown
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
Copy Markdown
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
Copy Markdown
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
Copy Markdown
Contributor

SMoorthi-emc commented Sep 10, 2021 via email

@climbfuji climbfuji closed this Sep 13, 2021
@climbfuji
Copy link
Copy Markdown
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 <jessica.meixner@noaa.gov>
Co-authored-by: Brian Curtis <brian.curtis@noaa.gov>
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