fix empty names in mesh distribute

This commit is contained in:
Christopher Lackner 2024-12-30 12:54:45 +01:00
parent 95e9408db0
commit e0abf93ce1

View File

@ -1228,7 +1228,7 @@ namespace netgen
auto write_names = [&] (auto & array) {
for (int k = 0; k < array.Size(); k++) {
int s = name_sizes[tot_nn];
array[k] = s ? new string(&compiled_names[tot_size], s) : nullptr;
array[k] = s ? new string(&compiled_names[tot_size], s) : new string("");
tot_nn++;
tot_size += s;
}