SciCompMod / memilio

Modular spatio-temporal models for epidemic and pandemic simulations
https://scicompmod.github.io/memilio/
Apache License 2.0
51 stars 15 forks source link

Get_default of Parameter HighViralLoadProtectionFactor doesn't work as expected #932

Open xsaschako opened 4 months ago

xsaschako commented 4 months ago

Bug description

When you don't set HighViralLoadProtectionFactor it should default to a function which goves back 0.0 every time. This thrwos an error std::bad_function_call for me.

Version

Any

To reproduce

  1. comment out any simulation part where HighViralLoadProtectionFactor is set
  2. run simulation till the variable high_viral_load_factor is used in infection
  3. error

Relevant log output

libc++abi: terminating due to uncaught exception of type std::__1::bad_function_call: std::exception

Add any relevant information, e.g. used compiler, screenshots.

No response

Checklist