memilio icon indicating copy to clipboard operation
memilio copied to clipboard

Get_default of Parameter HighViralLoadProtectionFactor doesn't work as expected

Open xsaschako opened this issue 1 year ago • 0 comments

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

  • [X] Attached labels, especially loc:: or model:: labels.
  • [X] Linked to project

xsaschako avatar Feb 14 '24 10:02 xsaschako