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.
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.