Skip to content

mergemctals throws exception when merging more than 129 tally files #19

@truland

Description

@truland

the c++ version of the executable mergemctals throws the following exception when attempting to merge more than 129 files

mcnptools::McnpToolsException: tally ID not found in MCTAL file 'FILE' at location LOC

This is likely occurring due to the vector reallocating memory on insertion of the 130th tally file and pointers becoming unstable as objects are copied from the original memory buffer in std::vector into the new memory buffer.

Temporary fix is to reserve space for the number of files right after instantiation of the object on line 27 in mergeMctals.cpp, then to emplace_back into the vector rather than push_back.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions