-
Notifications
You must be signed in to change notification settings - Fork 2
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
Feature VegArrays #136
Feature VegArrays #136
Conversation
- start addressing #135 - all complete except those defined in SW_VegProd.h
- address #135 - convert vegetation variables defined in SW_VegProd.h
- 'key2veg' contains string representations of vegetation types --> use for console message output
- address #135 - convert local vegetation variables defined in SW_Flow.c and SW_Site.c - use pre-defined loop 'ForEachVegType' whenever possible - define loop 'ForEachVegTypeBottomUp' for use by, e.g., hydraulic redistribution - SW_Flow_lib: collapsed all (identical) functions * 'XXX_intercepted_water' into 'veg_intercepted_water' * 'XXX_EsT_partitioning' into 'EsT_partitioning'
- this commit exactly reproduces output as current master (plus new fix for forbs #47)
Codecov Report
@@ Coverage Diff @@
## master #136 +/- ##
==========================================
- Coverage 34.12% 32.91% -1.22%
==========================================
Files 20 20
Lines 3528 3151 -377
==========================================
- Hits 1204 1037 -167
+ Misses 2324 2114 -210
Continue to review full report at Codecov.
|
@CaitlinA @BrendenBe1 This is a major code change:
This will make it easier for Brendan to get the vegetation cover values for the new SWA code. |
I am merging master into my branch now and will make implement this change into the SWA code |
@dschlaep I merged master into my branch and also changed my STEPWAT branch to work with the new veg arrays. |
close Convert vegetation type related variables to arrays #135
vegetation type related variables are now arrays
pre-defined macro loops for easier coding: