mirror of
https://github.com/NGSolve/netgen.git
synced 2025-02-03 16:50:34 +05:00
Fix Segfault in MPI ReceiveMesh
See https://github.com/NGSolve/netgen/issues/196
This commit is contained in:
parent
9e80e5f195
commit
44611e668c
@ -1204,7 +1204,7 @@ namespace netgen
|
|||||||
auto write_names = [&] (auto & array) {
|
auto write_names = [&] (auto & array) {
|
||||||
for (int k = 0; k < array.Size(); k++) {
|
for (int k = 0; k < array.Size(); k++) {
|
||||||
int s = name_sizes[tot_nn];
|
int s = name_sizes[tot_nn];
|
||||||
array[k] = new string(&compiled_names[tot_size], s);
|
array[k] = s ? new string(&compiled_names[tot_size], s) : nullptr;
|
||||||
tot_nn++;
|
tot_nn++;
|
||||||
tot_size += s;
|
tot_size += s;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user