Welcome Guest 

Show/Hide Header

Welcome Guest, posting in this forum requires registration.





Pages: [1]
Author Topic: Maximum size of a cuboid for writing to .vti
juliaan
Newbie
Posts: 12
Post Maximum size of a cuboid for writing to .vti
on: February 25, 2018, 13:12

I noticed that my (2D) code crashed with a Segmentation Fault when the domain size became to big.
I fixed it by changing the following in superVtmWriterXD.hh

change this:

float bufferFloat[fullSize];

to this:

float* bufferFloat = new float[fullSize];

to allow bigger domain sizes for a limited number of cpu's with MPI.

I would be happy to hear if I fixed this well.

Thanks

MMohrhard
Newbie
Posts: 20
Post Re: Maximum size of a cuboid for writing to .vti
on: February 25, 2018, 19:31

Thanks for the report.

I have fixed this in our master branch through

std::unique_ptr<float[]> bufferFloat(new float[fullSize]);

which handles deleting the allocated memory as well. The same approach was already implemented in the 3D case.

juliaan
Newbie
Posts: 12
Post Re: Maximum size of a cuboid for writing to .vti
on: February 26, 2018, 14:39

Ok, great! Thanks for the update with the improved fix.

Pages: [1]
Mingle Forum by cartpauj
Version: 1.0.33.2 ; Page loaded in: 0.024 seconds.