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

Update to Hymod and header names in source files #27

Merged
merged 9 commits into from
Mar 24, 2020

Conversation

donaldwj
Copy link
Contributor

[Short description explaining the high-level reason for the pull request]

Change hymod to use a linear reservoir for slow flow instead of a time delay.
Update the name of include files in source to be *.hpp when necessary

Additions

Removals

Changes

Testing

Screenshots

Notes

Todos

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)

Target Environment support

  • Linux

Copy link
Member

@hellkite500 hellkite500 left a comment

Choose a reason for hiding this comment

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

There are a lot of "new" files in this PR that actually exist already under src/core, make sure to rebase with upstream.

{}
};

enum HighModeErrorCodes
Copy link
Member

Choose a reason for hiding this comment

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

Is this supposed to be HyModErrorCodes?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

yes

Copy link
Member

Choose a reason for hiding this comment

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

Should fix this before we merge

// increase final mass by calculated fluxes
final_mass += (calculated_fluxes.et_loss + calculated_fluxes.runnoff + calculated_fluxes.slow_flow);

if ( inital_mass - final_mass > 0.000001 )
Copy link
Member

Choose a reason for hiding this comment

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

This tolerance should ultimately be a little more dynamic, perhaps a macro to define application wide mass balance tolerance?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

That was a first cut

Copy link
Contributor Author

@donaldwj donaldwj Mar 19, 2020

Choose a reason for hiding this comment

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

according to my git this did not add new files just modify existing files.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

New commit removed the duplicate files

Copy link
Member

@hellkite500 hellkite500 left a comment

Choose a reason for hiding this comment

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

Still a couple small things to clean up before merging

src/main.cpp Outdated
@@ -0,0 +1,29 @@
#include "HY_Catchment.hpp"
Copy link
Member

Choose a reason for hiding this comment

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

This file was moved to src/test_main.cpp, please remove this one too.

{}
};

enum HighModeErrorCodes
Copy link
Member

Choose a reason for hiding this comment

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

Should fix this before we merge

@@ -67,7 +68,7 @@ struct hymod_fluxes
{}
};

enum HighModeErrorCodes
enum HighModErrorCodes
Copy link
Member

Choose a reason for hiding this comment

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

High != Hy

Copy link
Member

Choose a reason for hiding this comment

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

@donaldwj can you push this last fix and I'll merge this PR.

models/hymod/include/Hymod.h Show resolved Hide resolved
@donaldwj
Copy link
Contributor Author

donaldwj commented Mar 24, 2020 via email

@hellkite500 hellkite500 mentioned this pull request Mar 24, 2020
@hellkite500 hellkite500 merged commit d11576c into NOAA-OWP:master Mar 24, 2020
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.

2 participants