lesgourg / class_public

Public repository of the Cosmic Linear Anisotropy Solving System (master for the most recent version of the standard code; GW_CLASS to include Cosmic Gravitational Wave Background anisotropies; classnet branch for acceleration with neutral networks; ExoCLASS branch for exotic energy injection; class_matter branch for FFTlog)
223 stars 292 forks source link

Step size too small error #443

Closed Zixuan-phy closed 2 years ago

Zixuan-phy commented 2 years ago

Hi all,

I am testing some kind of decaying dark matter that evolves in stages, and I added piecewise differential equations to background_derivs. But the following error occurred:

stepsize_error

Is it because the function is not smooth? Are there other ways to integrate piecewise differential equations?

Thanks a lot! Zixuan

ajcosmology commented 2 years ago

Hello, Is the error resolved? If yes, how?

Thanks. Alex