Skip to content
Merged
Changes from all commits
Commits
Show all changes
27 commits
Select commit Hold shift + click to select a range
9f91be1
Add balance.c|h
Alomir Feb 3, 2026
7b182f7
Improve do-single-output help
Alomir Feb 3, 2026
0ec16f7
Carbon and nitrogen balance checks
Alomir Feb 3, 2026
2bfd757
Add event fluxes to track system inputs and outputs; add nppStorage p…
Alomir Feb 3, 2026
f6f89d8
Add external writeEvent function, refactor original
Alomir Feb 3, 2026
9aa91fb
Add event for leaf on/off; split woodC into two pools; add balance ch…
Alomir Feb 3, 2026
0c454bf
Updates for balance checks and leaf on/off events
Alomir Feb 3, 2026
ec9b469
Merge branch 'master' into add_carbon_balance_check
Alomir Feb 3, 2026
8ba00eb
Add ability to compare to base
Alomir Feb 3, 2026
b2e26c4
Remove tolerance from balance tracker
Alomir Feb 3, 2026
67028b1
Update col list for niwot
Alomir Feb 3, 2026
13faa6d
Avoid negative zero
Alomir Feb 3, 2026
9211161
Remove negative zeros
Alomir Feb 3, 2026
fee673b
Add test for balance check
Alomir Feb 5, 2026
5b5c64a
Merge branch 'master' into add_carbon_balance_check
Alomir Feb 5, 2026
17da4b6
PR feedback
Alomir Feb 5, 2026
bae820e
Turn off microbes, as it is now broken
Alomir Feb 5, 2026
83afb27
Test updates after balance check updates
Alomir Feb 5, 2026
1aacd4c
Split leaf-on carbon creation into own flux
Alomir Feb 5, 2026
14f6d4a
Fix leafOn flux
Alomir Feb 5, 2026
2a8abae
Updates for leafOn split
Alomir Feb 5, 2026
b38d604
Force skipping russell_4
Alomir Feb 5, 2026
75a44c3
Update for new event fluxes
Alomir Feb 5, 2026
35a88ca
Initial plan
Copilot Feb 6, 2026
9bb91a2
Fix typo and incorrect variable name in balance.c comment
Copilot Feb 6, 2026
c872742
Merge branch 'master' into copilot/sub-pr-248-another-one
Alomir Feb 6, 2026
d6a5e4b
Remove unnecessary test files
Alomir Feb 6, 2026
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/sipnet/balance.c
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@ void getMassTotals(double *carbon, double *nitrogen) {
}

if (ctx.nitrogenCycle) {
// Note: this is the one place where we ust plantWoodC by itself; it's the
// reason plantNSCWoodCDelta was created, so that we can ignore it here.
// Note: this is the one place where we use plantWoodC by itself; it's the
// reason plantWoodCStorageDelta was created, so that we can ignore it here.
*nitrogen =
envi.plantWoodC / params.woodCN + envi.plantLeafC / params.leafCN +
envi.fineRootC / params.fineRootCN + envi.coarseRootC / params.woodCN +
Expand Down