mirror of
https://github.com/NGSolve/netgen.git
synced 2024-12-26 22:00:33 +05:00
Merge branch 'fix_uninitialized_values' into 'master'
fix uninitialized values See merge request jschoeberl/netgen!153
This commit is contained in:
commit
db19a44fe8
@ -246,8 +246,7 @@ namespace netgen
|
|||||||
: FlatArray<T, BASE, TIND> (asize, asize ? new T[asize] : nullptr)
|
: FlatArray<T, BASE, TIND> (asize, asize ? new T[asize] : nullptr)
|
||||||
{
|
{
|
||||||
allocsize = asize;
|
allocsize = asize;
|
||||||
if(asize)
|
ownmem = (asize == 0) ? 0 : 1;
|
||||||
ownmem = 1;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/// Generate array in user data
|
/// Generate array in user data
|
||||||
|
@ -873,7 +873,7 @@ namespace netgen
|
|||||||
*testout << "got " << numvert << " vertices" << endl;
|
*testout << "got " << numvert << " vertices" << endl;
|
||||||
|
|
||||||
{
|
{
|
||||||
Element el;
|
Element el(dim==2 ? 3 : 4);
|
||||||
|
|
||||||
Array<int> elarray;
|
Array<int> elarray;
|
||||||
MyMPI_Recv (elarray, 0, MPI_TAG_MESH+2, comm);
|
MyMPI_Recv (elarray, 0, MPI_TAG_MESH+2, comm);
|
||||||
|
Loading…
Reference in New Issue
Block a user