Skip to content

Conversation

@wenzeslaus
Copy link
Member

@wenzeslaus wenzeslaus commented Apr 29, 2025

The new MultiNetwork class works with one or more networks. The code structure is changed in a way that network can be switched statically (as a template parameter) instead of using the orinal network class but having index as its template parameter. This means that model does not know about the number of networks (or what network is actually used). The kernel newly does not know any details about the network and the network itself handles the different movements (which requires the distribution to be instantiated for every call because of constness).

The new MultiNetwork class works with one or more networks. The code structure is changed in a way that network can be switched statically (as a template parameter) instead of using the orinal network class but having index as its template parameter. This means that model does not know about the number of networks (or what network is actually used). The kernel newly does not know any details about the network and the network itself handles the different movements (which requires the distribution to be instantiated for every call because of constness).

Test for one network is included and configuration is available, but both need more work.
…ultiNetwork constructor, create a wrapper for random selection by weight and use it in MultiNetwork and in Network
@wenzeslaus wenzeslaus marked this pull request as ready for review June 12, 2025 19:13
@wenzeslaus
Copy link
Member Author

Updated to the version from main with treatment rounding and with the new host pool API (with explicit mortality through config).

@wenzeslaus wenzeslaus requested a review from ChrisJones687 June 20, 2025 18:34
@ChrisJones687
Copy link
Member

  • Check with rpops
  • check with r.pops.spread

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.

3 participants