-
Notifications
You must be signed in to change notification settings - Fork 63
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
Add tests for PET BMI module (replaces PR#401) #429
Conversation
So your Linux build problem happens at linking, and it looks like after #417 (specifically 891d6c2 ) you will need to include You also seem to be getting a linker issue with pthreads, but linking against |
Thanks.
I was looking at the error details and was wondering how netCDF got
involved since Bmi_C_Pet_IT.cpp doesn't use netCDF.
Also Bmi_C_Pet_IT.cpp uses CsvPerFeatureForcingProvider so that probably
needs to be considered also. Not sure why compare_pet doesn't fail in
testing on UCS machines when using Forcing.h.
…On Mon, Aug 1, 2022 at 11:02 AM Matt Williamson ***@***.***> wrote:
So your Linux build problem happens at linking, and it looks like after
#417 <#417> (specifically 891d6c2
<891d6c2>
) you will need to include {$NETCDF_LIBRARIES} in the compare_pet target
(see the compare_cfe target right before it in CMakeLists.txt in test
directory), or set the use_netcdf parameter of the build action to off.
This may also solve your macOS build problem but I haven't looked at it.
You also seem to be getting a linker issue with pthreads, but linking
against core::mediator should include that, so I'm not sure why that's
happening... solve the NetCDF problem first and see what happens.
—
Reply to this email directly, view it on GitHub
<#429 (comment)>, or
unsubscribe
<https://github.com/notifications/unsubscribe-auth/ACA4SRMG5KLTU67TNACMWXLVW7YHFANCNFSM55BZ7UWQ>
.
You are receiving this because you authored the thread.Message ID:
***@***.***>
|
I don't think the use of As for the code building successfully in other environments, that probably depends on the build options used. The point of my comment above is that #417 defaulted building with NetCDF to "on" in the Github workflows... if it's not on in your build, then it probably works fine. That said, if you turn NetCDF support on in your build, it will probably break like it is here in the workflow. |
Made some progress, able to link to netCDF. But still getting the "Can't
init bmi_c_pet; unreadable shared library file ''" error.
…On Mon, Aug 1, 2022 at 11:56 AM Matt Williamson ***@***.***> wrote:
Not sure why compare_pet doesn't fail in testing on UCS machines when
using Forcing.h
I don't think the use of Forcing.h (or CsvPerFeatureForcingProvider.h for
that matter) in Bmi_C_Pet_IT.cpp file does anything. The forcing params
are passed up to the Formulation_Manager which obtains the forcings via
whatever the config says.
As for the code building successfully in other environments, that probably
depends on the build options used. The point of my comment above is that
#417 <#417> defaulted building with
NetCDF to "on" in the Github workflows... if it's not on in your build,
then it probably works fine. That said, if you turn NetCDF support on in
your build, it will probably break like it is here in the workflow.
—
Reply to this email directly, view it on GitHub
<#429 (comment)>, or
unsubscribe
<https://github.com/notifications/unsubscribe-auth/ACA4SRMEHOG3E7LXACNCVHDVW76TJANCNFSM55BZ7UWQ>
.
You are receiving this because you authored the thread.Message ID:
***@***.***>
|
This PR has passed all tests.
On Mon, Aug 1, 2022 at 3:46 PM Shengting Cui - NOAA Affiliate <
***@***.***> wrote:
… Made some progress, able to link to netCDF. But still getting the "Can't
init bmi_c_pet; unreadable shared library file ''" error.
On Mon, Aug 1, 2022 at 11:56 AM Matt Williamson ***@***.***>
wrote:
> Not sure why compare_pet doesn't fail in testing on UCS machines when
> using Forcing.h
>
> I don't think the use of Forcing.h (or CsvPerFeatureForcingProvider.h
> for that matter) in Bmi_C_Pet_IT.cpp file does anything. The forcing
> params are passed up to the Formulation_Manager which obtains the
> forcings via whatever the config says.
>
> As for the code building successfully in other environments, that
> probably depends on the build options used. The point of my comment above
> is that #417 <#417> defaulted
> building with NetCDF to "on" in the Github workflows... if it's not on in
> your build, then it probably works fine. That said, if you turn NetCDF
> support on in your build, it will probably break like it is here in the
> workflow.
>
> —
> Reply to this email directly, view it on GitHub
> <#429 (comment)>, or
> unsubscribe
> <https://github.com/notifications/unsubscribe-auth/ACA4SRMEHOG3E7LXACNCVHDVW76TJANCNFSM55BZ7UWQ>
> .
> You are receiving this because you authored the thread.Message ID:
> ***@***.***>
>
|
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.
@@ -0,0 +1,90 @@ | |||
{ |
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.
This file is a copy of the one without __linux
...
Okay those changes look good but you did a merge on Github (probably) that should have been a rebase: acd4a49 |
I did a rebase to upstream master and then merged the master into the ngen_devPET. |
All were done on linux, not github. |
The merge step there is unnecessary... the rebase is the merge. I think if you rebase onto upstream/master again that merge commit will disappear. Try that and push (force) again. |
Do I run the rebase on the ngen_devPET branch directly or run it on the
master branch and then 'git checkout ngen_devPET'? Does force push
overwrite the changes I made to module_integration.yml and realization json?
…On Thu, Aug 4, 2022 at 2:59 PM Matt Williamson ***@***.***> wrote:
The merge step there is unnecessary... the rebase is the merge. I think if
you rebase onto upstream/master again that merge commit will disappear. Try
that and push (force) again.
—
Reply to this email directly, view it on GitHub
<#429 (comment)>, or
unsubscribe
<https://github.com/notifications/unsubscribe-auth/ACA4SRPRYUYABQUMCMJDIBTVXQOK3ANCNFSM55BZ7UWQ>
.
You are receiving this because you authored the thread.Message ID:
***@***.***>
|
|
I tried to run "git pull --rebase upstream master" in the ngen_devPET, it
failed because there are changes in module_integration.yml.
…On Thu, Aug 4, 2022 at 2:59 PM Matt Williamson ***@***.***> wrote:
The merge step there is unnecessary... the rebase is the merge. I think if
you rebase onto upstream/master again that merge commit will disappear. Try
that and push (force) again.
—
Reply to this email directly, view it on GitHub
<#429 (comment)>, or
unsubscribe
<https://github.com/notifications/unsubscribe-auth/ACA4SRPRYUYABQUMCMJDIBTVXQOK3ANCNFSM55BZ7UWQ>
.
You are receiving this because you authored the thread.Message ID:
***@***.***>
|
I got an error: $ git remote -v |
$git log
commit acd4a49
commit f64ffd3
|
Co-authored-by: Shengting Cui <[email protected]> Co-authored-by: Matt Williamson <[email protected]>
Add PET module and related .github test runners
Additions
data/example_bmi_multi_realization_config_w_noah_pet_cfe__linux.json
data/example_bmi_multi_realization_config_w_noah_pet_cfe__macos.json
Removals
Changes
.github/workflows/module_integration.yml
.github/workflows/test_and_validate.yml
include/realizations/catchment/Bmi_Module_Formulation.hpp
Testing
unit test
bmi tests
compare_pet
Screenshots
Notes
Todos
Checklist
Testing checklist (automated report can be put here)
Target Environment support