-
Notifications
You must be signed in to change notification settings - Fork 23
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
refactored cfe source file #76
Conversation
… cfe.c to be reused in other models.
@SnowHydrology I have reviewed the code and it looks good. I have not tested in NextGen since I am having some NextGen compiling issues. In my opinion is ready to merge. |
@lcunha0118 once you fix your NextGen build issues and want to test it in the NextGen then make sure you checkout the associated branch ajk/cfe_gw_refactor. Once we merge this PR, I will submit a PR on ngen repo too. |
@ajkhattak, I'm finally reviewing this PR. Extracting the conceptual reservoir and coding it into its own file is good, but I'm concerned that we'll have the same problem as we had with the AORC forcing and PET: that we'll have identical code in multiple places that needs to be maintained (and this goes for the GIUH) as well. If we're going to use the GIUH and Nash-Cascade modules with other models we might want to maintain them in only one location. I'm curious what others think about making repos for the GIUH and Nash-Cascade so that we only have to maintain them in one location. @lcunha0118 @rlmcdaniel @mattw-nws |
I think this is a valid point, we did talk about a placeholder for all these small modules but didn't reach to a conclusion. So I think this is probably the right time to discuss it. Since these are pretty small modules, so my only question would be should we keep them all in a |
Generally I think the idea of a "x_utils" repo makes sense... possibly even a suite compilable to a .a lib or something (or just made a git extern and compiled in) ... naming things is hard ... what else would go in such a repo/library? This is probably all a little off topic, but, yes, I recommend getting these together into an easily reusable place. |
After the meeting on Friday, we are good to review and merge this PR. I've opened issue #80 for moving the GIUH and Nash-Cascade code to their own repo(s) at a later date. |
Ran in NextGen and results match with older version. The new version adds two new output variables: SOIL_STORAGE_CHANGE,SURF_RUNOFF_SCHEME |
The PR separates the conceptual reservoir component from the CFE main source file. The refactored part is planned to be used in other models for ground water flows. The refactoring does not change the physics.
Additions
Changes
Testing
Checklist