Skip to content

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

@xsaschako

Description

@xsaschako

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

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

Metadata

Metadata

Labels

class::bugBugs found in the softwareloc::backendThis issue concerns the C++ backend implementation.model::abmThis issue concerns any kind of agent-based model.prio::moderateThe priority of this task is moderate.

Type

No type

Projects

Status

Done (Total) 💯

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions