Skip to content
Open
Show file tree
Hide file tree
Changes from 2 commits
Commits
Show all changes
28 commits
Select commit Hold shift + click to select a range
15a62cf
added changes
ayushman1210 Nov 17, 2025
922f038
added files
ayushman1210 Nov 17, 2025
9efa454
Merge branch 'master' into fileadd
ayushman1210 Nov 18, 2025
8f5efe6
Update .github/PULL_REQUEST_TEMPLATE.md
ayushman1210 Nov 18, 2025
3c3879a
Update .github/PULL_REQUEST_TEMPLATE.md
ayushman1210 Nov 18, 2025
dea6be7
Update docs/user-guide/model-inputs.md
ayushman1210 Nov 18, 2025
c18a167
Update docs/CONTRIBUTING.md
ayushman1210 Nov 18, 2025
c92438b
Update .github/PULL_REQUEST_TEMPLATE.md
ayushman1210 Nov 18, 2025
0d6d9fb
changes as suggested
ayushman1210 Nov 19, 2025
d8b709a
changes as per maintainer suggested
ayushman1210 Nov 19, 2025
8261e82
Merge branch 'master' into fileadd
ayushman1210 Nov 21, 2025
cd307dc
Merge branch 'master' into fileadd
ayushman1210 Nov 21, 2025
052fe69
fixed
ayushman1210 Nov 22, 2025
8cccbab
Merge branch 'master' into fileadd
ayushman1210 Nov 24, 2025
6ceb489
change
ayushman1210 Nov 26, 2025
c87bd76
fixes the conflation of soil and microbial maintenance respiration by…
ayushman1210 Dec 10, 2025
6d8de9d
formated the file with clang
ayushman1210 Dec 10, 2025
64661d9
suggestion as per maintainer suggested
ayushman1210 Dec 13, 2025
6359926
formated with clang
ayushman1210 Dec 13, 2025
9515b51
formated with clang
ayushman1210 Dec 13, 2025
5587ebc
Merge branch 'master' into fix/split
ayushman1210 Jan 4, 2026
ffdf042
Merge branch 'master' into fix/split
ayushman1210 Jan 6, 2026
f9b113d
changes
ayushman1210 Jan 6, 2026
3ccf3d3
change
ayushman1210 Jan 6, 2026
2e00602
Fix member names, brace errors, and strict-prototype function signatu…
ayushman1210 Jan 6, 2026
3928b36
Merge branch 'master' into fix/split
ayushman1210 Jan 14, 2026
2c2100a
Merge branch 'master' into fix/split
ayushman1210 Jan 20, 2026
1e6415b
Merge branch 'master' into fix/split
ayushman1210 Jan 27, 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
18 changes: 10 additions & 8 deletions src/sipnet/sipnet.c
Original file line number Diff line number Diff line change
Expand Up @@ -1098,11 +1098,11 @@ void calcSoilMaintRespiration(double tsoil, double water, double whc) {
double tillageEffect = 1 + eventTrackers.d_till_mod;

// Put it all together!
fluxes.maintRespiration = envi.soil * params.baseSoilResp * moistEffect *
tempEffect * tillageEffect;
fluxes.soilMaintRespiration = envi.soil * params.baseSoilResp *
moistEffect * tempEffect * tillageEffect;

// With no microbes, rSoil flux is just the maintenance respiration
fluxes.rSoil = fluxes.maintRespiration;
fluxes.rSoil = fluxes.soilMaintRespiration;
}
// else fluxes.rSoil = 0.0?
}
Expand Down Expand Up @@ -1137,12 +1137,14 @@ void calcMicrobeFluxes(double tsoil, double water, double whc,
// respiration is determined by microbe biomass
// :: from [4], eq (5.12) with addition of moisture effect
// [TAG:UNKNOWN_PROVENANCE] moistEffect
tempEffect = params.baseMicrobeResp * pow(params.microbeQ10, tsoil / 10);
fluxes.maintRespiration = envi.microbeC * moistEffect * tempEffect;
tempEffect = pow(params.microbeQ10, tsoil / 10);
fluxes.microbeMaintRespiration =
envi.microbeC * params.baseMicrobeResp * moistEffect * tempEffect;

} else {
fluxes.microbeIngestion = 0.0;
fluxes.soilPulse = 0.0;
fluxes.microbeMaintRespiration = 0.0;
// fluxes.maintRespiration is otherwise set, do not set to zero here
}
}
Expand Down Expand Up @@ -1566,13 +1568,13 @@ void updatePoolsForSoil(void) {
// :: eq (5.11) used for soilPulse, and
// :: eq (5.12) used for maintRespiration
envi.microbeC += (microbeEff * fluxes.microbeIngestion + fluxes.soilPulse -
fluxes.maintRespiration) *
fluxes.microbeMaintRespiration) *
climate->length;

// rSoil is maintenance resp + growth (microbe) resp
// :: from [4], eq (5.10) for microbe term
fluxes.rSoil =
fluxes.maintRespiration + (1 - microbeEff) * fluxes.microbeIngestion;
fluxes.rSoil = fluxes.microbeMaintRespiration +
(1 - microbeEff) * fluxes.microbeIngestion;
} else {
if (ctx.litterPool) {
// :: from [2], litter model description
Expand Down
3 changes: 2 additions & 1 deletion src/sipnet/state.h
Original file line number Diff line number Diff line change
Expand Up @@ -516,11 +516,12 @@ typedef struct FluxVars {
// microbes on: microbial maintenance respiration rate
// microbes off: equivalent to rSoil, calc'd as described in [1], eq (A20)
// (g C m-2 ground area day^-1)
double maintRespiration;
double microbeMaintRespiration;
// Flux that microbes remove from soil (mg C g soil day)
// TBD I highly doubt those units; this is calc'd as
// (g C * m-2) * (day-1) * (unitless terms)
double microbeIngestion;
double soilMaintRespiration;
// Exudates into the soil
double soilPulse;

Expand Down