diff --git a/Applications/FileIO/TetGenInterface.cpp b/Applications/FileIO/TetGenInterface.cpp index b33d164e0fbb3e36e245aa27f094f312cef5bbb2..ef9ece69767adb70502546a416f9c1b9187ded6d 100644 --- a/Applications/FileIO/TetGenInterface.cpp +++ b/Applications/FileIO/TetGenInterface.cpp @@ -430,8 +430,8 @@ bool TetGenInterface::parseElements(std::ifstream& ins, bool region_attribute) const { std::string line; - auto* ids(static_cast<std::size_t*>( - alloca(sizeof(std::size_t) * n_nodes_per_tet))); + std::vector<std::size_t> ids(n_nodes_per_tet); + elements.reserve(n_tets); materials.reserve(n_tets);