[Paraview] Import a four-dimensional array and "slice" one dimension to plot in 3D

2017-02-15 Thread Frederic Perez
Hi all,

Is there a way to import (any format) a 4D array in paraview, then to
slice one of the dimensions (i.e. use only one 3D hyperplane), and
plot the remaining 3D array with paraview's volume rendering?

I know I could manipulate the data to make it 3D before using it in
Paraview, but I was looking for a way to do this directly.

Cheers
Fred
___
Powered by www.kitware.com

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Please keep messages on-topic and check the ParaView Wiki at: 
http://paraview.org/Wiki/ParaView

Search the list archives at: http://markmail.org/search/?q=ParaView

Follow this link to subscribe/unsubscribe:
http://public.kitware.com/mailman/listinfo/paraview


Re: [Paraview] Superbuild repo change?

2017-02-15 Thread Fabian Wein
> I did a fresh pull of the ParaView superbuild repository, and now I can’t do 
> a clean build of PV 5.2.0 on my Mac (OSX 10.9.5).   
> 
> First, I had to remove the entries for “qt” and “scipy“ in the CMakeLists.txt:
..

> After removing those entries, the cmake completes and the build starts and 
> passes out in qt4.   
> I’m not sure why it’s complaining about OS X 10.7 or later?)

For recent OS X qt4 is known to not compile. Use qt5 and it works (macOS 10.12)

Fabian
___
Powered by www.kitware.com

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Please keep messages on-topic and check the ParaView Wiki at: 
http://paraview.org/Wiki/ParaView

Search the list archives at: http://markmail.org/search/?q=ParaView

Follow this link to subscribe/unsubscribe:
http://public.kitware.com/mailman/listinfo/paraview


Re: [Paraview] paraview compilation issue

2017-02-15 Thread Utkarsh Ayachit
Your PYTHON_LIBRARY is invalid. Please make sure it points to a
libpython2.7.so.

On Wed, Feb 15, 2017 at 2:25 PM, Bishwajit Dutta  wrote:

> Hi Utkarsh,
>
> Pls find it attached.
>
> Thank you so much.
>
> -Bishwajit
>
> On Wed, Feb 15, 2017 at 8:26 AM, Utkarsh Ayachit <
> utkarsh.ayac...@kitware.com> wrote:
>
>> Can you attach your CMakeCache.txt please?
>>
>> Thanks
>> Utkarsh
>>
>> On Wed, Feb 15, 2017 at 7:26 AM, Bishwajit Dutta  wrote:
>>
>>> Hi All,
>>>
>>> I configured paraview to compile for CPU rendering with the below option
>>> on ubuntu 14.04 and Python 2.7.6:
>>>
>>> cmake ../ -DBUILD_TESTING=OFF -DCMAKE_BUILD_TYPE=Release
>>> -DPARAVIEW_ENABLE_CATALYST=ON -DPARAVIEW_ENABLE_PYTHON=ON
>>> -DPYTHON_LIBRARY=$PYTHON_LIBRARY -DPYTHON_INCLUDE_DIR=$PYTHON_INCLUDE_DIR
>>> -DPARAVIEW_USE_MPI=ON -DMPI_HEADER_PATH=$MPI_HEADER_PATH
>>> -DCMAKE_INSTALL_PREFIX=$BD_INSTALL_PATH -DPARAVIEW_BUILD_QT_GUI=OFF
>>> -DVTK_USE_X=OFF -DOPENGL_INCLUDE_DIR=$BD_INSTALL_PATH/include
>>> -DOPENGL_gl_LIBRARY=$BD_INSTALL_PATH/lib/libOSMesa.so
>>> -DOPENGL_glu_LIBRARY=$BD_INSTALL_PATH/lib/libGLU.so
>>> -DVTK_OPENGL_HAS_OSMESA=ON -DOSMESA_INCLUDE_DIR=$BD_INSTALL_PATH/include
>>> -DOSMESA_LIBRARY=$BD_INSTALL_PATH/lib/libOSMesa.so
>>>
>>> Now I am getting the below compilation error:
>>>
>>> LOGs-
>>> #make
>>> 
>>> ...
>>> CMakeFiles/vtkWrappingPythonCore.dir/PyVTKTemplate.cxx.o: In function
>>> `PyVTKTemplate_Keys(_object*, _object*)':
>>> PyVTKTemplate.cxx:(.text+0x1511): undefined reference to
>>> `PyArg_ParseTuple'
>>> PyVTKTemplate.cxx:(.text+0x1527): undefined reference to
>>> `PyModule_GetDict'
>>> PyVTKTemplate.cxx:(.text+0x1534): undefined reference to `PyList_New'
>>> PyVTKTemplate.cxx:(.text+0x156c): undefined reference to `PyDict_Next'
>>> PyVTKTemplate.cxx:(.text+0x1597): undefined reference to `PyList_Append'
>>> CMakeFiles/vtkWrappingPythonCore.dir/PyVTKTemplate.cxx.o: In function
>>> `PyVTKTemplate_Size(_object*)':
>>> PyVTKTemplate.cxx:(.text+0x15c5): undefined reference to
>>> `PyModule_GetDict'
>>> PyVTKTemplate.cxx:(.text+0x160c): undefined reference to `PyDict_Next'
>>> CMakeFiles/vtkWrappingPythonCore.dir/PyVTKTemplate.cxx.o: In function
>>> `PyVTKTemplate_New':
>>> PyVTKTemplate.cxx:(.text+0x1679): undefined reference to `PyType_Ready'
>>> PyVTKTemplate.cxx:(.text+0x1691): undefined reference to `PyTuple_New'
>>> PyVTKTemplate.cxx:(.text+0x169c): undefined reference to
>>> `PyString_FromString'
>>> CMakeFiles/vtkWrappingPythonCore.dir/PyVTKTemplate.cxx.o: In function
>>> `PyVTKTemplate_AddItem':
>>> PyVTKTemplate.cxx:(.text+0x172c): undefined reference to
>>> `PyModule_GetDict'
>>> PyVTKTemplate.cxx:(.text+0x173a): undefined reference to
>>> `PyDict_SetItemString'
>>> PyVTKTemplate.cxx:(.text+0x174a): undefined reference to
>>> `PyExc_TypeError'
>>> PyVTKTemplate.cxx:(.text+0x1759): undefined reference to
>>> `PyErr_SetString'
>>> CMakeFiles/vtkWrappingPythonCore.dir/PyVTKTemplate.cxx.o: In function
>>> `PyVTKTemplate_Repr(_object*)':
>>> PyVTKTemplate.cxx:(.text+0x4a): undefined reference to
>>> `PyString_FromFormat'
>>> CMakeFiles/vtkWrappingPythonCore.dir/PyVTKTemplate.cxx.o:(.data.rel+0x8):
>>> undefined reference to `PyType_Type'
>>> CMakeFiles/vtkWrappingPythonCore.dir/PyVTKTemplate.cxx.o:(.data.rel+0x90):
>>> undefined reference to `PyObject_GenericGetAttr'
>>> CMakeFiles/vtkWrappingPythonCore.dir/PyVTKTemplate.cxx.o:(.data.rel+0x100):
>>> undefined reference to `PyModule_Type'
>>> CMakeFiles/vtkWrappingPythonCore.dir/vtkSmartPyObject.cxx.o: In
>>> function `vtkSmartPyObject::~vtkSmartPyObject()':
>>> vtkSmartPyObject.cxx:(.text+0x35): undefined reference to
>>> `Py_IsInitialized'
>>> collect2: error: ld returned 1 exit status
>>> make[2]: *** [lib/libvtkWrappingPython27Core-pv5.0.so.1] Error 1
>>> make[1]: *** [VTK/Wrapping/PythonCore/CMake
>>> Files/vtkWrappingPythonCore.dir/all] Error 2
>>> make: *** [all] Error 2
>>>
>>> 
>>> --
>>>
>>> I have set the python lib and include paths. And also took care to do
>>> "apt-get install python-dev".
>>>
>>> Thank you in advance for help as I am new and running out of ideas.
>>>
>>> Also do the configuration options look ok for CPU based rendering?
>>>
>>> BR,
>>> Bishwajit
>>>
>>>
>>> ___
>>> Powered by www.kitware.com
>>>
>>> Visit other Kitware open-source projects at
>>> http://www.kitware.com/opensource/opensource.html
>>>
>>> Please keep messages on-topic and check the ParaView Wiki at:
>>> http://paraview.org/Wiki/ParaView
>>>
>>> Search the list archives at: http://markmail.org/search/?q=ParaView
>>>
>>> Follow this link to subscribe/unsubscribe:
>>> http://public.kitware.com/mailman/listinfo/paraview
>>>
>>>
>>
>
___
Powered by www.kitware.com

Visit other Kitware open-source projects at 
http://ww

Re: [Paraview] [Non-DoD Source] Re: Superbuild repo change?

2017-02-15 Thread Angelini, Richard C (Rick) CIV USARMY RDECOM ARL (US)
Duh. “git submodule update” seems to fix things related to the qt and
scipy issue.

My Mac has Xcode version 6.2



Rick Angelini
USArmy Research Laboratory
CISD/HPC Architectures Team
Phone:  410-278-6266




-Original Message-
From: Ben Boeckel 
Reply-To: "ben.boec...@kitware.com" 
Date: Wednesday, February 15, 2017 at 11:34 AM
To: Rick Angelini 
Cc: ParaView 
Subject: [Non-DoD Source] Re: [Paraview] Superbuild repo change?

On Wed, Feb 15, 2017 at 13:50:13 +, Angelini, Richard C (Rick) CIV
USARMY RDECOM ARL (US) wrote:
> I did a fresh pull of the ParaView superbuild repository, and now I
>can’t do
> a clean build of PV 5.2.0 on my Mac (OSX 10.9.5).
> 
> First, I had to remove the entries for “qt” and “scipy" in the
> CMakeLists.txt:

You need to run `git submodule update` to update the common-superbuild
bits.

> After removing those entries, the cmake completes and the build starts
>and
> passes out in qt4.
> I’m not sure why it’s complaining about OS X 10.7 or later?)

What version of Xcode are you using?

--Ben


smime.p7s
Description: S/MIME cryptographic signature
___
Powered by www.kitware.com

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Please keep messages on-topic and check the ParaView Wiki at: 
http://paraview.org/Wiki/ParaView

Search the list archives at: http://markmail.org/search/?q=ParaView

Follow this link to subscribe/unsubscribe:
http://public.kitware.com/mailman/listinfo/paraview


Re: [Paraview] Superbuild repo change?

2017-02-15 Thread Ben Boeckel
On Wed, Feb 15, 2017 at 13:50:13 +, Angelini, Richard C (Rick) CIV USARMY 
RDECOM ARL (US) wrote:
> I did a fresh pull of the ParaView superbuild repository, and now I can’t do
> a clean build of PV 5.2.0 on my Mac (OSX 10.9.5).
> 
> First, I had to remove the entries for “qt” and “scipy" in the
> CMakeLists.txt:

You need to run `git submodule update` to update the common-superbuild
bits.

> After removing those entries, the cmake completes and the build starts and
> passes out in qt4. 
> I’m not sure why it’s complaining about OS X 10.7 or later?)

What version of Xcode are you using?

--Ben
___
Powered by www.kitware.com

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Please keep messages on-topic and check the ParaView Wiki at: 
http://paraview.org/Wiki/ParaView

Search the list archives at: http://markmail.org/search/?q=ParaView

Follow this link to subscribe/unsubscribe:
http://public.kitware.com/mailman/listinfo/paraview


Re: [Paraview] volume vs volume

2017-02-15 Thread Andy Bauer
As a side note, the Mesh Quality filter does not work on all 3D cell types.
I think prisms and pyramids are not supported.

On Wed, Feb 15, 2017 at 9:07 AM, Dennis Conklin  wrote:

> Oops – meant Mesh Quality filter
>
>
>
> *From:* Dennis Conklin
> *Sent:* Wednesday, February 15, 2017 7:56 AM
> *To:* Paraview (paraview@paraview.org) 
> *Subject:* Re: [Paraview] volume vs volume
>
>
>
> Alan,
>
>
>
> A quick and dirty way to get individual element volumes is to use the mesh
> refinement filter and set the Quality measure to volume.   Then the
> “Quality” variable in the elements is actually volume.
>
>
>
> Dennis
>
> ___
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at http://www.kitware.com/
> opensource/opensource.html
>
> Please keep messages on-topic and check the ParaView Wiki at:
> http://paraview.org/Wiki/ParaView
>
> Search the list archives at: http://markmail.org/search/?q=ParaView
>
> Follow this link to subscribe/unsubscribe:
> http://public.kitware.com/mailman/listinfo/paraview
>
>
___
Powered by www.kitware.com

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Please keep messages on-topic and check the ParaView Wiki at: 
http://paraview.org/Wiki/ParaView

Search the list archives at: http://markmail.org/search/?q=ParaView

Follow this link to subscribe/unsubscribe:
http://public.kitware.com/mailman/listinfo/paraview


Re: [Paraview] One render view on Paraview Catalyst

2017-02-15 Thread Andy Bauer
Hi,

In the ParaView GUI you can set the Remote Render Threshold (under
Edit->Settings...->Render View) to a very large number to ensure that all
rendered data gets delivered to the client for rendering. In general this
is a bad way to do things though since that can use a lot of bandwidth and
memory.

If you are trying to just have a single render view in Catalyst with a
parallel run, I don't think it's possible to get just a single window. You
either need to have a window for each MPI process or no windows at all. For
no windows at all you will need to use either OSMesa or EGL for offscreen
rendering.

--Andy


On Wed, Feb 15, 2017 at 3:49 AM, Lukáš Kresta 
wrote:

> I generated python script for Catalyst from Paraview. When I run my code
> with MPI, I get render window for every MPI process. But i want to have
> only one window for all MPI processes.
>
> I already tried have script for view only on root and on another only
> script for live visualization (without view), but I still get view for
> every MPI process.
>
> Have someone some idea how to "fix" my problem?
>
> ___
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at http://www.kitware.com/
> opensource/opensource.html
>
> Please keep messages on-topic and check the ParaView Wiki at:
> http://paraview.org/Wiki/ParaView
>
> Search the list archives at: http://markmail.org/search/?q=ParaView
>
> Follow this link to subscribe/unsubscribe:
> http://public.kitware.com/mailman/listinfo/paraview
>
>
___
Powered by www.kitware.com

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Please keep messages on-topic and check the ParaView Wiki at: 
http://paraview.org/Wiki/ParaView

Search the list archives at: http://markmail.org/search/?q=ParaView

Follow this link to subscribe/unsubscribe:
http://public.kitware.com/mailman/listinfo/paraview


[Paraview] Examples of Field Variables Manipulation for Exodus Multi-block datasets

2017-02-15 Thread Dennis Conklin
All,

I can't find a good example of manipulating Field Variables (Global Variables) 
in Exodus Multi-block datasets.

For instance, I wrote a filter to calculate the total_volume of a mesh.   
Currently I print this out to the screen.  I would like to add a Field variable 
of Total_volume but I have no idea how to do this.

Does anyone have an example of how to access (read) field variables and/or how 
to add one.

Thanks for any hints

Dennis
___
Powered by www.kitware.com

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Please keep messages on-topic and check the ParaView Wiki at: 
http://paraview.org/Wiki/ParaView

Search the list archives at: http://markmail.org/search/?q=ParaView

Follow this link to subscribe/unsubscribe:
http://public.kitware.com/mailman/listinfo/paraview


Re: [Paraview] volume vs volume

2017-02-15 Thread Dennis Conklin
Oops - meant Mesh Quality filter

From: Dennis Conklin
Sent: Wednesday, February 15, 2017 7:56 AM
To: Paraview (paraview@paraview.org) 
Subject: Re: [Paraview] volume vs volume

Alan,

A quick and dirty way to get individual element volumes is to use the mesh 
refinement filter and set the Quality measure to volume.   Then the "Quality" 
variable in the elements is actually volume.

Dennis
___
Powered by www.kitware.com

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Please keep messages on-topic and check the ParaView Wiki at: 
http://paraview.org/Wiki/ParaView

Search the list archives at: http://markmail.org/search/?q=ParaView

Follow this link to subscribe/unsubscribe:
http://public.kitware.com/mailman/listinfo/paraview


[Paraview] Superbuild repo change?

2017-02-15 Thread Angelini, Richard C (Rick) CIV USARMY RDECOM ARL (US)
I did a fresh pull of the ParaView superbuild repository, and now I can’t do
a clean build of PV 5.2.0 on my Mac (OSX 10.9.5).

First, I had to remove the entries for “qt” and “scipy" in the
CMakeLists.txt:

-- Determined source version for paraview: 5.2.0
CMake Error at superbuild/CMakeLists.txt:112 (include):
  include could not find load file:
qt

CMake Error at superbuild/CMakeLists.txt:112 (include):
  include could not find load file:
scipy

After removing those entries, the cmake completes and the build starts and
passes out in qt4. 
I’m not sure why it’s complaining about OS X 10.7 or later?)

[ 19%] Built target boost
[ 24%] Built target visitbridge
[ 27%] Built target libxml2
[ 29%] Performing build step for 'qt4'
clang: error: invalid deployment target for -stdlib=libc++ (requires OS X
10.7 or later)
clang: error: invalid deployment target for -stdlib=libc++ (requires OS X
10.7 or later)
clang: error: invalid deployment target for -stdlib=libc++ (requires OS X
10.7 or later)
make[4]: *** [.obj/release-static/qsimplecodec.o] Error 1
make[4]: *** Waiting for unfinished jobs
make[4]: *** [.obj/release-static/qlatincodec.o] Error 1
make[4]: *** [.obj/release-static/qisciicodec.o] Error 1
clang: error: invalid deployment target for -stdlib=libc++ (requires OS X
10.7 or later)
make[4]: *** [.obj/release-static/qtextcodec.o] Error 1
clang: error: invalid deployment target for -stdlib=libc++ (requires OS X
10.7 or later)
make[4]: *** [.obj/release-static/qtsciicodec.o] Error 1
clang: error: invalid deployment target for -stdlib=libc++ (requires OS X
10.7 or later)
make[4]: *** [.obj/release-static/qutfcodec.o] Error 1
clang: error: invalid deployment target for -stdlib=libc++ (requires OS X
10.7 or later)
clang: error: invalid deployment target for -stdlib=libc++ (requires OS X
10.7 or later)
make[4]: *** [.obj/release-static/qmalloc.o] Error 1
make[4]: *** [.obj/release-static/qglobal.o] Error 1
make[3]: *** [sub-tools-bootstrap-make_default-ordered] Error 2
CMake Error at /Users/angel/PV/Build/superbuild/sb-qt4-build.cmake:43
(message):
  Failed with exit code 2


make[2]: *** [superbuild/qt4/stamp/qt4-build] Error 1
make[1]: *** [superbuild/CMakeFiles/qt4.dir/all] Error 2
make: *** [all] Error 2



Rick Angelini
USArmy Research Laboratory
CISD/HPC Architectures Team
Phone:  410-278-6266




smime.p7s
Description: S/MIME cryptographic signature
___
Powered by www.kitware.com

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Please keep messages on-topic and check the ParaView Wiki at: 
http://paraview.org/Wiki/ParaView

Search the list archives at: http://markmail.org/search/?q=ParaView

Follow this link to subscribe/unsubscribe:
http://public.kitware.com/mailman/listinfo/paraview


Re: [Paraview] paraview compilation issue

2017-02-15 Thread Utkarsh Ayachit
Can you attach your CMakeCache.txt please?

Thanks
Utkarsh

On Wed, Feb 15, 2017 at 7:26 AM, Bishwajit Dutta  wrote:

> Hi All,
>
> I configured paraview to compile for CPU rendering with the below option
> on ubuntu 14.04 and Python 2.7.6:
>
> cmake ../ -DBUILD_TESTING=OFF -DCMAKE_BUILD_TYPE=Release
> -DPARAVIEW_ENABLE_CATALYST=ON -DPARAVIEW_ENABLE_PYTHON=ON
> -DPYTHON_LIBRARY=$PYTHON_LIBRARY -DPYTHON_INCLUDE_DIR=$PYTHON_INCLUDE_DIR
> -DPARAVIEW_USE_MPI=ON -DMPI_HEADER_PATH=$MPI_HEADER_PATH
> -DCMAKE_INSTALL_PREFIX=$BD_INSTALL_PATH -DPARAVIEW_BUILD_QT_GUI=OFF
> -DVTK_USE_X=OFF -DOPENGL_INCLUDE_DIR=$BD_INSTALL_PATH/include
> -DOPENGL_gl_LIBRARY=$BD_INSTALL_PATH/lib/libOSMesa.so
> -DOPENGL_glu_LIBRARY=$BD_INSTALL_PATH/lib/libGLU.so
> -DVTK_OPENGL_HAS_OSMESA=ON -DOSMESA_INCLUDE_DIR=$BD_INSTALL_PATH/include
> -DOSMESA_LIBRARY=$BD_INSTALL_PATH/lib/libOSMesa.so
>
> Now I am getting the below compilation error:
>
> LOGs-
> #make
> 
> ...
> CMakeFiles/vtkWrappingPythonCore.dir/PyVTKTemplate.cxx.o: In function
> `PyVTKTemplate_Keys(_object*, _object*)':
> PyVTKTemplate.cxx:(.text+0x1511): undefined reference to
> `PyArg_ParseTuple'
> PyVTKTemplate.cxx:(.text+0x1527): undefined reference to
> `PyModule_GetDict'
> PyVTKTemplate.cxx:(.text+0x1534): undefined reference to `PyList_New'
> PyVTKTemplate.cxx:(.text+0x156c): undefined reference to `PyDict_Next'
> PyVTKTemplate.cxx:(.text+0x1597): undefined reference to `PyList_Append'
> CMakeFiles/vtkWrappingPythonCore.dir/PyVTKTemplate.cxx.o: In function
> `PyVTKTemplate_Size(_object*)':
> PyVTKTemplate.cxx:(.text+0x15c5): undefined reference to
> `PyModule_GetDict'
> PyVTKTemplate.cxx:(.text+0x160c): undefined reference to `PyDict_Next'
> CMakeFiles/vtkWrappingPythonCore.dir/PyVTKTemplate.cxx.o: In function
> `PyVTKTemplate_New':
> PyVTKTemplate.cxx:(.text+0x1679): undefined reference to `PyType_Ready'
> PyVTKTemplate.cxx:(.text+0x1691): undefined reference to `PyTuple_New'
> PyVTKTemplate.cxx:(.text+0x169c): undefined reference to
> `PyString_FromString'
> CMakeFiles/vtkWrappingPythonCore.dir/PyVTKTemplate.cxx.o: In function
> `PyVTKTemplate_AddItem':
> PyVTKTemplate.cxx:(.text+0x172c): undefined reference to
> `PyModule_GetDict'
> PyVTKTemplate.cxx:(.text+0x173a): undefined reference to
> `PyDict_SetItemString'
> PyVTKTemplate.cxx:(.text+0x174a): undefined reference to `PyExc_TypeError'
> PyVTKTemplate.cxx:(.text+0x1759): undefined reference to `PyErr_SetString'
> CMakeFiles/vtkWrappingPythonCore.dir/PyVTKTemplate.cxx.o: In function
> `PyVTKTemplate_Repr(_object*)':
> PyVTKTemplate.cxx:(.text+0x4a): undefined reference to
> `PyString_FromFormat'
> CMakeFiles/vtkWrappingPythonCore.dir/PyVTKTemplate.cxx.o:(.data.rel+0x8):
> undefined reference to `PyType_Type'
> CMakeFiles/vtkWrappingPythonCore.dir/PyVTKTemplate.cxx.o:(.data.rel+0x90):
> undefined reference to `PyObject_GenericGetAttr'
> CMakeFiles/vtkWrappingPythonCore.dir/PyVTKTemplate.cxx.o:(.data.rel+0x100):
> undefined reference to `PyModule_Type'
> CMakeFiles/vtkWrappingPythonCore.dir/vtkSmartPyObject.cxx.o: In function
> `vtkSmartPyObject::~vtkSmartPyObject()':
> vtkSmartPyObject.cxx:(.text+0x35): undefined reference to
> `Py_IsInitialized'
> collect2: error: ld returned 1 exit status
> make[2]: *** [lib/libvtkWrappingPython27Core-pv5.0.so.1] Error 1
> make[1]: *** 
> [VTK/Wrapping/PythonCore/CMakeFiles/vtkWrappingPythonCore.dir/all]
> Error 2
> make: *** [all] Error 2
>
> --
>
> I have set the python lib and include paths. And also took care to do
> "apt-get install python-dev".
>
> Thank you in advance for help as I am new and running out of ideas.
>
> Also do the configuration options look ok for CPU based rendering?
>
> BR,
> Bishwajit
>
>
> ___
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at http://www.kitware.com/
> opensource/opensource.html
>
> Please keep messages on-topic and check the ParaView Wiki at:
> http://paraview.org/Wiki/ParaView
>
> Search the list archives at: http://markmail.org/search/?q=ParaView
>
> Follow this link to subscribe/unsubscribe:
> http://public.kitware.com/mailman/listinfo/paraview
>
>
___
Powered by www.kitware.com

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Please keep messages on-topic and check the ParaView Wiki at: 
http://paraview.org/Wiki/ParaView

Search the list archives at: http://markmail.org/search/?q=ParaView

Follow this link to subscribe/unsubscribe:
http://public.kitware.com/mailman/listinfo/paraview


Re: [Paraview] volume vs volume

2017-02-15 Thread Dennis Conklin
Alan,

A quick and dirty way to get individual element volumes is to use the mesh 
refinement filter and set the Quality measure to volume.   Then the "Quality" 
variable in the elements is actually volume.

Dennis
___
Powered by www.kitware.com

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Please keep messages on-topic and check the ParaView Wiki at: 
http://paraview.org/Wiki/ParaView

Search the list archives at: http://markmail.org/search/?q=ParaView

Follow this link to subscribe/unsubscribe:
http://public.kitware.com/mailman/listinfo/paraview


[Paraview] paraview compilation issue

2017-02-15 Thread Bishwajit Dutta
Hi All,

I configured paraview to compile for CPU rendering with the below option on
ubuntu 14.04 and Python 2.7.6:

cmake ../ -DBUILD_TESTING=OFF -DCMAKE_BUILD_TYPE=Release
-DPARAVIEW_ENABLE_CATALYST=ON -DPARAVIEW_ENABLE_PYTHON=ON
-DPYTHON_LIBRARY=$PYTHON_LIBRARY -DPYTHON_INCLUDE_DIR=$PYTHON_INCLUDE_DIR
-DPARAVIEW_USE_MPI=ON -DMPI_HEADER_PATH=$MPI_HEADER_PATH
-DCMAKE_INSTALL_PREFIX=$BD_INSTALL_PATH -DPARAVIEW_BUILD_QT_GUI=OFF
-DVTK_USE_X=OFF -DOPENGL_INCLUDE_DIR=$BD_INSTALL_PATH/include
-DOPENGL_gl_LIBRARY=$BD_INSTALL_PATH/lib/libOSMesa.so
-DOPENGL_glu_LIBRARY=$BD_INSTALL_PATH/lib/libGLU.so
-DVTK_OPENGL_HAS_OSMESA=ON -DOSMESA_INCLUDE_DIR=$BD_INSTALL_PATH/include
-DOSMESA_LIBRARY=$BD_INSTALL_PATH/lib/libOSMesa.so

Now I am getting the below compilation error:

LOGs-
#make

...
CMakeFiles/vtkWrappingPythonCore.dir/PyVTKTemplate.cxx.o: In function
`PyVTKTemplate_Keys(_object*, _object*)':
PyVTKTemplate.cxx:(.text+0x1511): undefined reference to `PyArg_ParseTuple'
PyVTKTemplate.cxx:(.text+0x1527): undefined reference to `PyModule_GetDict'
PyVTKTemplate.cxx:(.text+0x1534): undefined reference to `PyList_New'
PyVTKTemplate.cxx:(.text+0x156c): undefined reference to `PyDict_Next'
PyVTKTemplate.cxx:(.text+0x1597): undefined reference to `PyList_Append'
CMakeFiles/vtkWrappingPythonCore.dir/PyVTKTemplate.cxx.o: In function
`PyVTKTemplate_Size(_object*)':
PyVTKTemplate.cxx:(.text+0x15c5): undefined reference to `PyModule_GetDict'
PyVTKTemplate.cxx:(.text+0x160c): undefined reference to `PyDict_Next'
CMakeFiles/vtkWrappingPythonCore.dir/PyVTKTemplate.cxx.o: In function
`PyVTKTemplate_New':
PyVTKTemplate.cxx:(.text+0x1679): undefined reference to `PyType_Ready'
PyVTKTemplate.cxx:(.text+0x1691): undefined reference to `PyTuple_New'
PyVTKTemplate.cxx:(.text+0x169c): undefined reference to
`PyString_FromString'
CMakeFiles/vtkWrappingPythonCore.dir/PyVTKTemplate.cxx.o: In function
`PyVTKTemplate_AddItem':
PyVTKTemplate.cxx:(.text+0x172c): undefined reference to `PyModule_GetDict'
PyVTKTemplate.cxx:(.text+0x173a): undefined reference to
`PyDict_SetItemString'
PyVTKTemplate.cxx:(.text+0x174a): undefined reference to `PyExc_TypeError'
PyVTKTemplate.cxx:(.text+0x1759): undefined reference to `PyErr_SetString'
CMakeFiles/vtkWrappingPythonCore.dir/PyVTKTemplate.cxx.o: In function
`PyVTKTemplate_Repr(_object*)':
PyVTKTemplate.cxx:(.text+0x4a): undefined reference to `PyString_FromFormat'
CMakeFiles/vtkWrappingPythonCore.dir/PyVTKTemplate.cxx.o:(.data.rel+0x8):
undefined reference to `PyType_Type'
CMakeFiles/vtkWrappingPythonCore.dir/PyVTKTemplate.cxx.o:(.data.rel+0x90):
undefined reference to `PyObject_GenericGetAttr'
CMakeFiles/vtkWrappingPythonCore.dir/PyVTKTemplate.cxx.o:(.data.rel+0x100):
undefined reference to `PyModule_Type'
CMakeFiles/vtkWrappingPythonCore.dir/vtkSmartPyObject.cxx.o: In function
`vtkSmartPyObject::~vtkSmartPyObject()':
vtkSmartPyObject.cxx:(.text+0x35): undefined reference to `Py_IsInitialized'
collect2: error: ld returned 1 exit status
make[2]: *** [lib/libvtkWrappingPython27Core-pv5.0.so.1] Error 1
make[1]: ***
[VTK/Wrapping/PythonCore/CMakeFiles/vtkWrappingPythonCore.dir/all] Error 2
make: *** [all] Error 2

--

I have set the python lib and include paths. And also took care to do
"apt-get install python-dev".

Thank you in advance for help as I am new and running out of ideas.

Also do the configuration options look ok for CPU based rendering?

BR,
Bishwajit
___
Powered by www.kitware.com

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Please keep messages on-topic and check the ParaView Wiki at: 
http://paraview.org/Wiki/ParaView

Search the list archives at: http://markmail.org/search/?q=ParaView

Follow this link to subscribe/unsubscribe:
http://public.kitware.com/mailman/listinfo/paraview


[Paraview] Problem testing PV 5.3.0 RC1

2017-02-15 Thread Guillaume Jacquenot
Hello,

I am testing ParaView-5.3.0-RC1-Qt5-OpenGL2-Windows-64bit.

I run into a problem when using PV with a script. When I launch a simple
script with the command

D:\ParaView-5.3.0-RC1-Qt5-OpenGL2-Windows-64bit\bin\paraview.exe
--script=testSphere.py

I have the following error message in the console, and nothing happens

Cannot open data file " \paraview.exe " (:0, )

Below is testSphere.py

from paraview.simple import *
paraview.simple._DisableFirstRenderCameraReset()
sphere1 = Sphere()
renderView1 = GetActiveViewOrCreate('RenderView')
sphere1Display = Show(sphere1, renderView1)
renderView1.ResetCamera()


My initial goal was to check that the following code works with PV5.3.
For version PV 5.2 it failed, whereas previously it succeeded

import os
import tempfile
import numpy as np
outputFilename = os.path.join(tempfile.mkdtemp(), 'dummy.npz')
varName='Time'
np.savez(outputFilename, **{varName:np.random.rand(3,4)})
d = np.load(outputFilename)
time = d[varName]
d.close()
os.remove(outputFilename)
print('Success PV can create a NPZ file and read its content : ' +
outputFilename)

I had reported this bug,

http://public.kitware.com/pipermail/paraview/2017-January/038890.html

and a bug issue had been opened:

https://gitlab.kitware.com/paraview/paraview-superbuild/issues/43


Guillaume Jacquenot
___
Powered by www.kitware.com

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Please keep messages on-topic and check the ParaView Wiki at: 
http://paraview.org/Wiki/ParaView

Search the list archives at: http://markmail.org/search/?q=ParaView

Follow this link to subscribe/unsubscribe:
http://public.kitware.com/mailman/listinfo/paraview


[Paraview] One render view on Paraview Catalyst

2017-02-15 Thread Lukáš Kresta
I generated python script for Catalyst from Paraview. When I run my code
with MPI, I get render window for every MPI process. But i want to have
only one window for all MPI processes.

I already tried have script for view only on root and on another only
script for live visualization (without view), but I still get view for
every MPI process.

Have someone some idea how to "fix" my problem?
___
Powered by www.kitware.com

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Please keep messages on-topic and check the ParaView Wiki at: 
http://paraview.org/Wiki/ParaView

Search the list archives at: http://markmail.org/search/?q=ParaView

Follow this link to subscribe/unsubscribe:
http://public.kitware.com/mailman/listinfo/paraview