Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Reset PBMs when resetting CUDASimulations #972

Merged
merged 1 commit into from
Nov 16, 2022
Merged

Conversation

ptheywood
Copy link
Member

This fixes some messsage types iterating partially reset message data within a submodel, from a previous iteration of the parent model.

Adds a test which reproduces the original bug condition.

Add BucketMessageTest which detects PBM persistence between submodel runs

This fixes some messsage types iterating partially reset message data within a submodel, from a previous iteration of the parent model.

Adds a test which reproduces the original bug condition.

Add BucketMessageTest which detects PBM persistence between submodel runs
// Construct submodel
ModelDescription submodel("submodel");
{ // MessageBucket::Description
MessageBucket::Description &message = submodel.newMessage<MessageBucket>("bucket");
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This and remainder of test/s will need addressing here or #952 (depending on merge order)

@mondus mondus merged commit c1d300b into master Nov 16, 2022
@mondus mondus deleted the submodel-pbm-persistence branch November 16, 2022 16:10
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