[vtk-developers] [Patch] OpenFOAM reader performance issue when loading polyhedral meshes

Takuya OSHIMA oshima at eng.niigata-u.ac.jp
Tue Jul 13 06:01:41 EDT 2010


Hi,

A recent change to vtkDataArrayTemplate::Resize() to produce an array
of exact requested size when the requested size was larger than the
current size (commit id c869c3d5875f503e757b64f2fd1ec349aee859bf)
caused the OpenFOAM reader a performance problem. I created and
attached a patch (to the OF reader) to fix the problem, so can
somebody take care of it?

If a testing is required, please try the "0deg.foam" case included in
http://oshima.eng.niigata-u.ac.jp/polyhedronTests.tar.gz
. Without the fix it takes several minuits to load, whereas after fix
it should load in several seconds.

Takuya

Takuya OSHIMA, Ph.D.
Faculty of Engineering, Niigata University
8050 Ikarashi-Ninocho, Nishi-ku, Niigata, 950-2181, JAPAN

-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-Fixed-performance-problem-in-loading-polyhedral-mesh.patch
Type: text/x-patch
Size: 3508 bytes
Desc: not available
URL: <http://public.kitware.com/pipermail/vtk-developers/attachments/20100713/5b72a23b/attachment-0001.bin>


More information about the vtk-developers mailing list