diff --git a/libsrc/meshing/parallelmesh.cpp b/libsrc/meshing/parallelmesh.cpp index d8546dd9..1e2061d9 100644 --- a/libsrc/meshing/parallelmesh.cpp +++ b/libsrc/meshing/parallelmesh.cpp @@ -702,7 +702,7 @@ namespace netgen Array bcname_sizes(nbcs); int tot_bcsize = 0; for(int k=0;ksize(); + bcname_sizes[k] = (bcnames[k]!=NULL) ? bcnames[k]->size() : 0; tot_bcsize += bcname_sizes[k]; } char compiled_bcnames[tot_bcsize]; @@ -722,7 +722,7 @@ namespace netgen Array mat_sizes(nmats); int tot_matsize = 0; for(int k=0;ksize(); + mat_sizes[k] = (materials[k]!=NULL) ? materials[k]->size() : 0; tot_matsize += mat_sizes[k]; } char compiled_mats[tot_matsize]; @@ -965,7 +965,7 @@ namespace netgen SetNBCNames(nbcs); int cnt = 0; for(int k=0;k0) SetBCName(k, string(&compiled_bcnames[cnt], bcs[k])); cnt += bcs[k]; } @@ -983,7 +983,7 @@ namespace netgen materials.SetSize(nmats); for(int k=0;k0) SetMaterial(k+1, string(&compiled_mats[cnt], matsz[k])); cnt += matsz[k]; }