Thanks for this fix. I'll check it out.<br><br>Andy<br><br><div class="gmail_quote">On Tue, Apr 17, 2012 at 2:23 AM, Takuya OSHIMA <span dir="ltr"><<a href="mailto:oshima@eng.niigata-u.ac.jp">oshima@eng.niigata-u.ac.jp</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi Andy,<br>
<br>
Thank you for your reply. In fact I was using different versions of<br>
vtkPyramid for the SPARC and the x86 platforms (the former from<br>
exactly PV 3.14.1, the latter from a bit older git-master version<br>
around Jan.-Feb. of this year) and had missed a recent commit<br>
6332bbee82445ed5a3c6cce81c0675f152ee8649 that was supposed to fix<br>
gradient issue at apex of a pyramid. Obviously, the commit requires<br>
another fix as attached. With the fix my program now works.<br>
<br>
I attached the same patch to the corresponding entry in the tracker:<br>
<a href="http://vtk.org/Bug/view.php?id=12917" target="_blank">http://vtk.org/Bug/view.php?id=12917</a><br>
<br>
Thanks,<br>
Takuya<br>
<br>
Takuya OSHIMA, Ph.D.<br>
Faculty of Engineering, Niigata University<br>
8050 Ikarashi-Ninocho, Nishi-ku, Niigata, 950-2181, JAPAN<br>
<br>
<br>
From: Andy Bauer <<a href="mailto:andy.bauer@kitware.com">andy.bauer@kitware.com</a>><br>
Subject: Re: [vtkusers] vtkUnstructuredGrid::FindCell() fails to find pyramid cells on a Fujitsu FX10 (non-x86) platform?<br>
Date: Mon, 16 Apr 2012 09:30:32 -0400<br>
<br>
> Hi,<br>
><br>
> I wonder if it's a tolerance issue in vtkPyramid::EvaluatePosition(). The<br>
> tolerance is set to 0.001. You could try increasing that value as well as<br>
> increasing the 1.001 values and see if that solves your problem.<br>
><br>
> Andy<br>
><br>
> On Mon, Apr 16, 2012 at 8:43 AM, Takuya OSHIMA<br>
> <<a href="mailto:oshima@eng.niigata-u.ac.jp">oshima@eng.niigata-u.ac.jp</a>>wrote:<br>
><br>
>> Hi,<br>
>><br>
>> We have built VTK as a part of ParaView 3.14.1 on a Fujitsu FX10<br>
>> platform (SPARC64 IXfx). The built library mostly works, but for my<br>
>> program vtkUnstructuredGrid::FindCell() fails to find pyramid cells in<br>
>> my hex/pyramid/tetra-composite mesh. Contrarily, the same program<br>
>> works as expected on a x86 platform (Mac OS X 64bit).<br>
>><br>
>> I have searched through the FindCell() code for cell type specific<br>
>> function calls and had a suspicion that vtkPyramid::EvaluatePosition()<br>
>> (which FindCell() should internally be calling as a virtual function)<br>
>> had an uninitialized variable or something but could not find anything<br>
>> wrong. So far I am completely lost.<br>
>><br>
>> Has anyone experienced (and solved) a similar problem? Any ideas or<br>
>> thoughts?<br>
>><br>
>> Platform: Fujitsu FX10 (SPARC64 IXfx)<br>
>> VTK version: VTK included in ParaView 3.14.1<br>
>> CMake version: 2.8.7<br>
>> Compiler: Fujitsu's FCCpx (cross-compilation on an x86 Linux platform)<br>
>> FCCpx_ENV (the compiler options): -Kfast -Xg -std=gnu++98<br>
>><br>
>> Thanks,<br>
>> Takuya<br>
>><br>
>> Takuya OSHIMA, Ph.D.<br>
>> Faculty of Engineering, Niigata University<br>
>> 8050 Ikarashi-Ninocho, Nishi-ku, Niigata, 950-2181, JAPAN<br>
>> _______________________________________________<br>
>> Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
>><br>
>> Visit other Kitware open-source projects at<br>
>> <a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
>><br>
>> Please keep messages on-topic and check the VTK FAQ at:<br>
>> <a href="http://www.vtk.org/Wiki/VTK_FAQ" target="_blank">http://www.vtk.org/Wiki/VTK_FAQ</a><br>
>><br>
>> Follow this link to subscribe/unsubscribe:<br>
>> <a href="http://www.vtk.org/mailman/listinfo/vtkusers" target="_blank">http://www.vtk.org/mailman/listinfo/vtkusers</a><br>
>><br>
</blockquote></div><br>