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

Fix output_variables #415

Merged
merged 5 commits into from
May 20, 2022
Merged

Conversation

mattw-nws
Copy link
Contributor

Fixes a crash when using "output_variables" key in Bmi_Multi_Formulation caused by failing static cast of templated classes. Switches the implementation to use DataProvider interface which requires simpler casts--and allows for inclusion of fields from forcing data as well.

Additions

Removals

Changes

  • Fixed get_var_value_as_double(std::string) method

Testing

  1. Automated test GetOutputLineForTimestep_3_a added, passes.

Screenshots

Notes

Todos

  • Compution of time offsets is a little brute-forced... there may be a more elegant (or complete) way to do it, but this seems to function.

Checklist

  • PR has an informative and human-readable title
  • Changes are limited to a single goal (no scope creep)
  • Code can be automatically merged (no conflicts)
  • Code follows project standards (link if applicable)
  • Passes all existing automated tests
  • Any change in functionality is tested
  • New functions are documented (with a description, list of inputs, and expected output)
  • Placeholder code is flagged / future todos are captured in comments
  • Project documentation has been updated (including the "Unreleased" section of the CHANGELOG)
  • Reviewers requested with the Reviewers tool ➡️

Testing checklist (automated report can be put here)

  1. See workflow runner output

Target Environment support

  • Linux

@mattw-nws mattw-nws requested a review from robertbartel May 16, 2022 18:37
@donaldwj
Copy link
Contributor

Are the crashing test just the bad cython version?

Copy link
Contributor

@donaldwj donaldwj left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I dont see any issues here, other than cython bug which is to be fixed elsewhere.

@donaldwj donaldwj self-requested a review May 20, 2022 15:59
@mattw-nws
Copy link
Contributor Author

Ha... Cython 0.29.29 was yanked. v0.29.30 passes.

@mattw-nws mattw-nws merged commit 021d6ec into NOAA-OWP:master May 20, 2022
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.

Segfault when using output_variables in realization config of a bmi_multi formulation
2 participants