Thanks for this fix.  I&#39;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">&lt;<a href="mailto:oshima@eng.niigata-u.ac.jp">oshima@eng.niigata-u.ac.jp</a>&gt;</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 &lt;<a href="mailto:andy.bauer@kitware.com">andy.bauer@kitware.com</a>&gt;<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>
&gt; Hi,<br>
&gt;<br>
&gt; I wonder if it&#39;s a tolerance issue in vtkPyramid::EvaluatePosition().  The<br>
&gt; tolerance is set to 0.001.  You could try increasing that value as well as<br>
&gt; increasing the 1.001 values and see if that solves your problem.<br>
&gt;<br>
&gt; Andy<br>
&gt;<br>
&gt; On Mon, Apr 16, 2012 at 8:43 AM, Takuya OSHIMA<br>
&gt; &lt;<a href="mailto:oshima@eng.niigata-u.ac.jp">oshima@eng.niigata-u.ac.jp</a>&gt;wrote:<br>
&gt;<br>
&gt;&gt; Hi,<br>
&gt;&gt;<br>
&gt;&gt; We have built VTK as a part of ParaView 3.14.1 on a Fujitsu FX10<br>
&gt;&gt; platform (SPARC64 IXfx). The built library mostly works, but for my<br>
&gt;&gt; program vtkUnstructuredGrid::FindCell() fails to find pyramid cells in<br>
&gt;&gt; my hex/pyramid/tetra-composite mesh. Contrarily, the same program<br>
&gt;&gt; works as expected on a x86 platform (Mac OS X 64bit).<br>
&gt;&gt;<br>
&gt;&gt; I have searched through the FindCell() code for cell type specific<br>
&gt;&gt; function calls and had a suspicion that vtkPyramid::EvaluatePosition()<br>
&gt;&gt; (which FindCell() should internally be calling as a virtual function)<br>
&gt;&gt; had an uninitialized variable or something but could not find anything<br>
&gt;&gt; wrong. So far I am completely lost.<br>
&gt;&gt;<br>
&gt;&gt; Has anyone experienced (and solved) a similar problem? Any ideas or<br>
&gt;&gt; thoughts?<br>
&gt;&gt;<br>
&gt;&gt; Platform: Fujitsu FX10 (SPARC64 IXfx)<br>
&gt;&gt; VTK version: VTK included in ParaView 3.14.1<br>
&gt;&gt; CMake version: 2.8.7<br>
&gt;&gt; Compiler: Fujitsu&#39;s FCCpx (cross-compilation on an x86 Linux platform)<br>
&gt;&gt; FCCpx_ENV (the compiler options): -Kfast -Xg -std=gnu++98<br>
&gt;&gt;<br>
&gt;&gt; Thanks,<br>
&gt;&gt; Takuya<br>
&gt;&gt;<br>
&gt;&gt; Takuya OSHIMA, Ph.D.<br>
&gt;&gt; Faculty of Engineering, Niigata University<br>
&gt;&gt; 8050 Ikarashi-Ninocho, Nishi-ku, Niigata, 950-2181, JAPAN<br>
&gt;&gt; _______________________________________________<br>
&gt;&gt; Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
&gt;&gt;<br>
&gt;&gt; Visit other Kitware open-source projects at<br>
&gt;&gt; <a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
&gt;&gt;<br>
&gt;&gt; Please keep messages on-topic and check the VTK FAQ at:<br>
&gt;&gt; <a href="http://www.vtk.org/Wiki/VTK_FAQ" target="_blank">http://www.vtk.org/Wiki/VTK_FAQ</a><br>
&gt;&gt;<br>
&gt;&gt; Follow this link to subscribe/unsubscribe:<br>
&gt;&gt; <a href="http://www.vtk.org/mailman/listinfo/vtkusers" target="_blank">http://www.vtk.org/mailman/listinfo/vtkusers</a><br>
&gt;&gt;<br>
</blockquote></div><br>