Skip to content
Open
Changes from all commits
Commits
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
5 changes: 4 additions & 1 deletion src/sipnet/sipnet.c
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
/* SiPnET: Simplified PnET

Author: Bill Sacks wsacks@wisc.edu
Expand Down Expand Up @@ -986,7 +986,7 @@
// This is in addition to [1], source not yet determined (controlled by
// ctx.growthResp)
void vegResp2(double *folResp, double *woodResp, double *growthResp,
double baseFolResp, double /*gpp*/) {

Check failure on line 989 in src/sipnet/sipnet.c

View workflow job for this annotation

GitHub Actions / cpp-linter

src/sipnet/sipnet.c:989:49 [clang-diagnostic-c23-extensions]

omitting the parameter name in a function definition is a C23 extension
// [TAG:UNKNOWN_PROVENANCE] growthResp
*folResp = baseFolResp *
pow(params.vegRespQ10, (climate->tair - params.psnTOpt) / 10.0);
Expand Down Expand Up @@ -1433,7 +1433,10 @@
*/
void updateMainPools() {
// Update the stocks, with fluxes adjusted for length of time step.
// Note: the soil C pool(s) (envi.soil, envi.fineRootC, envi.CoarseRootC)
// Notes:
// - GPP shows up twice (direct + via NPP --> woodCreation), but
// the math works out to: envi.plantWoodC += NPP_allocation_to_wood − woodLitter.
// - The soil C pool(s) (envi.soil, envi.fineRootC, envi.CoarseRootC)
// were updated in soilDegradation(); also, envi.litter when that is in use.
// And yes, I would love to break that out to maintain more rigor in this
// flow process.
Expand Down
Loading