Skip to content

fixes the conflation of soil and microbial maintenance respiration by splitting it #202

Open
ayushman1210 wants to merge 28 commits intoPecanProject:masterfrom
ayushman1210:fix/split
Open

fixes the conflation of soil and microbial maintenance respiration by splitting it #202
ayushman1210 wants to merge 28 commits intoPecanProject:masterfrom
ayushman1210:fix/split

Conversation

@ayushman1210
Copy link
Contributor

@ayushman1210 ayushman1210 commented Dec 10, 2025

Summary

This update fixes the conflation of soil and microbial maintenance respiration by splitting maintRespiration into:

  • soilMaintRespiration
  • microbeMaintRespiration
    It also corrects the respiration temperature formulation by separating the base rate from the Q10 temperature effect.

Key Changes

  • Replaced maintRespiration with explicit soil and microbe maintenance fluxes.
  • Fixed incorrect mixing of base respiration rate with temperature effect.
  • Updated rSoil calculation:
    • Microbes OFFrSoil = soilMaintRespiration
    • Microbes ONrSoil = microbeMaintRespiration + (1 - microbeEff) * microbeIngestion
  • Updated state.h to match new flux definitions.

Testing

  • Docker build succeeds [success]
  • Model runs with --microbes [success]
  • Output (sipnet.out) generated successfully [success]

Fixes #144

Copy link
Collaborator

@Alomir Alomir left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for putting this together, @ayushman1210! It's almost there, I have a few additions that should be made.

@ayushman1210
Copy link
Contributor Author

hey @Alomir i have made as per your suggestion
please review it
thanks !!

@ayushman1210 ayushman1210 requested a review from Alomir December 13, 2025 09:04
@ayushman1210
Copy link
Contributor Author

Hi maintainers,
Just a gentle follow-up regarding the PR #202
Whenever you get a chance, I’d really appreciate a review.
Thanks for your time!

@ayushman1210
Copy link
Contributor Author

ayushman1210 commented Jan 7, 2026

Hi @Alomir please let me know if anything else needed in this pr #202
thanks !!

@Alomir
Copy link
Collaborator

Alomir commented Jan 7, 2026

Sorry for the delay, @ayushman1210 - and again, thanks for your work here. However, I think #207 (which you are going to work on) is going to supersede this task, making it obsolete.

@Alomir
Copy link
Collaborator

Alomir commented Jan 7, 2026

I would like to leave this PR in its current state until we see how #207 works out, if you don't mind.

@ayushman1210
Copy link
Contributor Author

Got it, thanks for the update! I’ll focus on #207 then. Let me know if there’s anything specific you’d like me to prioritize.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Split maintResp into soilMaintResp and microbeMaintResp for clarity

2 participants