Re: [Paraview] [EXTERNAL] Relative frequencies in Histogram plots

2015-01-09 Thread Scott, W Alan
Ethan,
Pretty sure you didn’t get a reply.  The simple answer is that it probably 
won’t work.  Mind writing up a feature request?  This is a pretty good idea.

Alan

From: ParaView [mailto:paraview-boun...@paraview.org] On Behalf Of Ethan Hereth
Sent: Wednesday, January 07, 2015 2:04 PM
To: paraview@paraview.org
Subject: [EXTERNAL] [Paraview] Relative frequencies in Histogram plots

Good afternoon and happy new year!

I have a colleague who would like to be able to plot the relative frequency of 
the histogram data instead of absolute bin count. I.e. instead of having the 
left axis say there are 100 things in bin one, he'd like for it to say that 5% 
of the things are in bin one.

Is this possible?

Thank you!

--
Ethan Alan Hereth
___
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] Programmable filter, looping over time steps and reimporting inputs

2015-01-09 Thread Omid Mahabadi
Thanks Utkarsh for your reply. I've gone through the blog a few times
already but I still don't understand the whole procedure. I even tried
to just run the example in the blog in a Programmable Source but it
doesn't work ('No module named numpy_interface'). Part of the issue
could be that I still don't fully understand the RequestInformation,
RequestUpdateExtent, and RequestData bits of the filter.

The input data that I'm working on in the pipeline (vtk unstructured
grid) already have different time steps. How can I update the values of
the inputs for the different time steps?

Thank you,
Omid
 
On 14-12-16 05:26 PM, Utkarsh Ayachit wrote:
> Check this blog: http://www.kitware.com/blog/home/post/783
> It should give you information on what you need to put in the Scripts
> for various passes of the filter.
>
> Utkarsh
>
>
> On Tue, Dec 16, 2014 at 5:12 PM, Omid Mahabadi
>  > wrote:
>
> Hi,
> I'm writing a python script for the Programmable Filter of
> ParaView to do some analysis on my simulation results. The
> simulations results are transient and hence the analysis has to be
> done over time steps (perhaps similar to integrate over time
> filter). All bits of my script are working fine. However, after
> spending a considerable amount of time on fiddling with the
> script, googling, reading mailing lists and the VTK documentation,
> I haven't found a way to "loop over time steps AND update the
> input" from within the script. I can loop over time steps using:
>
> from vtk import vtkStreamingDemandDrivenPipeline
> for time in
> outInfo.Get(vtkStreamingDemandDrivenPipeline.TIME_STEPS()):
> #Perform some analysis, for instance subtracting value_v
> for this time from value_v at time zero...
>
> However, the input data is still from the time step where I first
> applied the script. Of course, when I animate the results, the
> inputs will be updated, but I will need to achieve the same
> results from within my script in the Programmable Filter dialogue.
>
> How can I update the inputs from within my for loop or how can I
> modify the for loop or my script to achieve that? Can Programmable
> Filter handle my situation? If not, what is the alternative?
>
> Many thanks,
> Omid
>
> ___
> 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
>
> Follow this link to subscribe/unsubscribe:
> http://public.kitware.com/mailman/listinfo/paraview
>

-- 
Omid Mahabadi, Ph.D.
Geomechanica, Inc.
http://www.geomechanica.com/
Tel : +1-647-478-9767
Cell: +1-416-824-2408

___
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] [EXTERNAL] paraview cmake can't find proper qt

2015-01-09 Thread Scott, W Alan
Jeff,
I probably hit Qt with too big of a hammer, but try the following (Python, but 
you get the idea).

I believe that the most important single line below is setting the MOC 
executable.

Alan


'-DQT_INCLUDE_DIR:PATH='+qtInstallDir+'/include '+\
'-DQT_MOC_EXECUTABLE:FILEPATH='+qtInstallDir+'/bin/moc ' +\
'-DQT_QMAKE_EXECUTABLE:FILEPATH='+qtInstallDir+'/bin/qmake ' +\
'-DQT_UIC_EXECUTABLE:FILEPATH='+qtInstallDir+'/bin/uic '

  # During build, we are having issues linking to Qt - specifically the
  #   libQtXml.so library.  Let's add the Qt library path to LD_LIBRARY_PATH.

  path = os.environ.get('LD_LIBRARY_PATH')
  os.environ['LD_LIBRARY_PATH']=qtInstallDir+'/lib/:'+path



-Original Message-
From: ParaView [mailto:paraview-boun...@paraview.org] On Behalf Of Jeff Becker
Sent: Friday, January 09, 2015 11:00 AM
To: paraview@paraview.org
Subject: [EXTERNAL] [Paraview] paraview cmake can't find proper qt

Hi. My initial run of ccmake complained that my distro's qt was too old, so I 
downloaded and built/installed a supported version in 
/usr/local/Trolltech/Qt-4.8.6. Thus I set:

//Where can the qmake-qt4 library be found 
QT_QMAKE_EXECUTABLE:FILEPATH=/usr/local/Trolltech/Qt-4.8.6/bin/qmake

However, even though ccmake completes (allowing the g key to be activated), the 
qt libraries/executables listed in CMakeCache.txt are all from the distro's 
versions (in /usr/lib64/qt4). E.g.,

//Path to a library.
QT_CUSTOMWIDGETPLUGIN_PLUGIN_RELEASE:FILEPATH=/usr/lib64/qt4/plugins/designer/libcustomwidgetplugin.so

//Path to a program.
QT_DBUSCPP2XML_EXECUTABLE:FILEPATH=/usr/lib64/qt4/bin/qdbuscpp2xml

  Is there a QTHOME or similar variable I need to set to get the right 
libraries/executables? Thanks.

-jeff
___
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] problem building ParaView Examples

2015-01-09 Thread Jeff Becker

Almost there - make output below. Any ideas? Thanks.

-jeff

Scanning dependencies of target ParaViewExamples
[ 80%] Build examples as a separate project
Not searching for unused variables given on the command line.
Not searching for unused variables given on the command line.
Internal cmake changing into directory: 
/u/wk/jcbecker/ParaView-build/Examples/All

 CMake output ==
The C compiler identification is GNU 4.4.7
The CXX compiler identification is GNU 4.4.7
Check for working C compiler: /usr/bin/cc
Configuring
Check for working C compiler: /usr/bin/cc -- works
Detecting C compiler ABI info
Configuring
Detecting C compiler ABI info - done
Check for working CXX compiler: /usr/bin/c++
Configuring
Check for working CXX compiler: /usr/bin/c++ -- works
Detecting CXX compiler ABI info
Configuring
Detecting CXX compiler ABI info - done
Looking for Q_WS_X11
Configuring
Looking for Q_WS_X11 - found
Looking for Q_WS_WIN
Configuring
Looking for Q_WS_WIN - not found
Looking for Q_WS_QWS
Configuring
Looking for Q_WS_QWS - not found
Looking for Q_WS_MAC
Configuring
Looking for Q_WS_MAC - not found
Found Qt4: /usr/local/Trolltech/Qt-4.8.6/bin/qmake (found version "4.8.6")
Configuring
Found Qt4: /usr/local/Trolltech/Qt-4.8.6/bin/qmake (found version "4.8.6")
Configuring
Configuring
Configuring
Configuring
Configuring
Configuring
Configuring
Configuring
Configuring
Configuring
Configuring
Configuring
Configuring
Configuring
Configuring
Configuring
Configuring
Configuring
Configuring
Configuring
Configuring
Configuring
Configuring
Configuring
Configuring
Configuring
Configuring
Configuring
Configuring
Configuring
Configuring
Configuring
Configuring
Configuring
Configuring
Configuring
Configuring
Configuring
Configuring
Configuring
Configuring
Configuring
Configuring done
Generating
Generating
Generating
Generating
Generating
Generating
Generating
Generating
Generating
Generating
Generating
Generating
Generating
Generating
Generating
Generating
Generating
Generating
Generating
Generating
Generating
Generating
Generating done
Build files have been written to: /u/wk/jcbecker/ParaView-build/Examples/All
Found Qt4: /usr/local/Trolltech/Qt-4.8.6/bin/qmake (found version "4.8.6")
Configuring
Found Qt4: /usr/local/Trolltech/Qt-4.8.6/bin/qmake (found version "4.8.6")
Configuring
Configuring
Configuring
Configuring
Configuring
Configuring
Configuring
Configuring
Configuring
Configuring
Configuring
Configuring
Configuring
Configuring
Configuring
Configuring
Configuring
Configuring
Configuring
Configuring
Configuring
Configuring
Configuring
Configuring
Configuring
Configuring
Configuring
Configuring
Configuring
Configuring
Configuring
Configuring
Configuring
Configuring
Configuring
Configuring
Configuring
Configuring
Configuring
Configuring
Configuring
Configuring
Configuring done
Generating
Generating
Generating
Generating
Generating
Generating
Generating
Generating
Generating
Generating
Generating
Generating
Generating
Generating
Generating
Generating
Generating
Generating
Generating
Generating
Generating
Generating
Generating done
Build files have been written to: /u/wk/jcbecker/ParaView-build/Examples/All
 End CMake output ==
Change Dir: /u/wk/jcbecker/ParaView-build/Examples/All

Run Build Command:/usr/bin/gmake
gmake[3]: Entering directory `/u/wk/jcbecker/ParaView-build/Examples/All'
gmake[4]: Entering directory `/u/wk/jcbecker/ParaView-build/Examples/All'
gmake[5]: Entering directory `/u/wk/jcbecker/ParaView-build/Examples/All'
[  1%] Generating Documentation HTMLs from xmls
Processing wiki sources
Processing wiki filters
Processing wiki writers
Processing wiki readers
[  1%] Compiling Qt help project SMMyElevation.qhp
Building up file structure...
Insert custom filters...
Insert help data for filter section (1 of 1)...
Insert files...
Warning: The file 
/u/wk/jcbecker/ParaView-build/Examples/All/Plugins/Filter/doc/*.css does 
not exist! Skipping it.
Warning: The file 
/u/wk/jcbecker/ParaView-build/Examples/All/Plugins/Filter/doc/*.png does 
not exist! Skipping it.
Warning: The file 
/u/wk/jcbecker/ParaView-build/Examples/All/Plugins/Filter/doc/*.jpg does 
not exist! Skipping it.

Insert contents...
Insert indices...
Documentation successfully generated.
[  2%] Generating SMMyElevation_doc.h
-- Generate module: SMMyElevation
gmake[5]: *** No rule to make target 
`/u/wk/jcbecker/ParaView-build/bin/vtkWrapClientServer-pv4.3', needed by 
`Plugins/Filter/vtkMyElevationFilterClientServer.cxx'. Stop.

gmake[5]: Leaving directory `/u/wk/jcbecker/ParaView-build/Examples/All'
gmake[4]: *** [Plugins/Filter/CMakeFiles/SMMyElevation.dir/all] Error 2
gmake[4]: Leaving directory `/u/wk/jcbecker/ParaView-build/Examples/All'
gmake[3]: *** [all] Error 2
gmake[3]: Leaving directory `/u/wk/jcbecker/ParaView-build/Examples/All'
make[2]: *** [ParaViewExamples.done] Error 1
make[1]: *** [CMakeFiles/ParaViewExamples.dir/all] Error 2
make: *** [all] Error 2

___
Powered by ww

Re: [Paraview] [EXTERNAL] Re: Trace recorder missing color preset changes

2015-01-09 Thread Scott, W Alan
Thanks as always!

Alan

From: Utkarsh Ayachit [mailto:utkarsh.ayac...@kitware.com]
Sent: Friday, January 09, 2015 12:58 PM
To: Scott, W Alan
Cc: Mauldin, Jeffrey A.; paraview@paraview.org
Subject: Re: [Paraview] [EXTERNAL] Re: Trace recorder missing color preset 
changes

Alan,

Here;s an example to load a color map XML

lut = GetColorTransferFunction("RTData")
with open("/tmp/Blot.xml", "r") as f:
  data = f.read()
  lut.ApplyColorMap(data)


On Wed, Jan 7, 2015 at 3:34 PM, Scott, W Alan 
mailto:wasc...@sandia.gov>> wrote:
Ping?



From: ParaView 
[mailto:paraview-boun...@paraview.org] On 
Behalf Of Scott, W Alan
Sent: Tuesday, December 23, 2014 10:54 AM
To: Utkarsh Ayachit
Cc: Mauldin, Jeffrey A.; paraview@paraview.org
Subject: Re: [Paraview] [EXTERNAL] Re: Trace recorder missing color preset 
changes

Correct, the user has a specific XML file / block of code he wants to load.  He 
is working on a car engine, with a few hundred blocks.  He is coloring the car 
engine by material type – aluminum, steel, rubber, copper, etc.

Alan

From: Utkarsh Ayachit [mailto:utkarsh.ayac...@kitware.com]
Sent: Tuesday, December 23, 2014 8:35 AM
To: Scott, W Alan
Cc: paraview@paraview.org; Mauldin, Jeffrey A.
Subject: [EXTERNAL] Re: [Paraview] Trace recorder missing color preset changes

Alan,

What does your user want to do exactly? Does he have a color XML that he wants 
to load?

On Mon, Dec 22, 2014 at 9:38 PM, Scott, W Alan 
mailto:wasc...@sandia.gov>> wrote:
There is an issue with the trace recorder missing color preset changes.  I 
wrote up a bug here: http://www.paraview.org/Bug/view.php?id=15116.  However, I 
need the python for a user so that he can manually edit the trace script and 
change color presets.  Does anyone either know the python I need, or where to 
find it?

Thanks,

Alan


___
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

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] [EXTERNAL] Re: Trace recorder missing color preset changes

2015-01-09 Thread Utkarsh Ayachit
Alan,

Here;s an example to load a color map XML

lut = GetColorTransferFunction("RTData")
with open("/tmp/Blot.xml", "r") as f:
  data = f.read()
  lut.ApplyColorMap(data)


On Wed, Jan 7, 2015 at 3:34 PM, Scott, W Alan  wrote:

>  Ping?
>
>
>
>
>
>
>
> *From:* ParaView [mailto:paraview-boun...@paraview.org] *On Behalf Of *Scott,
> W Alan
> *Sent:* Tuesday, December 23, 2014 10:54 AM
> *To:* Utkarsh Ayachit
> *Cc:* Mauldin, Jeffrey A.; paraview@paraview.org
> *Subject:* Re: [Paraview] [EXTERNAL] Re: Trace recorder missing color
> preset changes
>
>
>
> Correct, the user has a specific XML file / block of code he wants to
> load.  He is working on a car engine, with a few hundred blocks.  He is
> coloring the car engine by material type – aluminum, steel, rubber, copper,
> etc.
>
>
>
> Alan
>
>
>
> *From:* Utkarsh Ayachit [mailto:utkarsh.ayac...@kitware.com
> ]
> *Sent:* Tuesday, December 23, 2014 8:35 AM
> *To:* Scott, W Alan
> *Cc:* paraview@paraview.org; Mauldin, Jeffrey A.
> *Subject:* [EXTERNAL] Re: [Paraview] Trace recorder missing color preset
> changes
>
>
>
> Alan,
>
>
>
> What does your user want to do exactly? Does he have a color XML that he
> wants to load?
>
>
>
> On Mon, Dec 22, 2014 at 9:38 PM, Scott, W Alan  wrote:
>
> There is an issue with the trace recorder missing color preset changes.  I
> wrote up a bug here: http://www.paraview.org/Bug/view.php?id=15116.
> However, I need the python for a user so that he can manually edit the
> trace script and change color presets.  Does anyone either know the python
> I need, or where to find it?
>
>
>
> Thanks,
>
>
>
> Alan
>
>
>
>
> ___
> 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
>
> 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] paraview cmake can't find proper qt

2015-01-09 Thread Jeff Becker

Thanks Burlen. That helped!

On 01/09/2015 11:10 AM, Burlen Loring wrote:

Hi Jeff,

Here are the vars that I set:

prepend-path PATH /work/apps/qt-4.8.2/bin
prepend-path MANPATH :/work/apps/qt-4.8.2/man
prepend-path LD_LIBRARY_PATH /work/apps/qt-4.8.2/lib
prepend-path LD_RUN_PATH /work/apps/qt-4.8.2/lib

after sourcing this, typing "which qmake" in the shell where you're 
doing your build should print the path to your qt. then cmake should 
find your qt.


the above is an excerpt from a module file 
 which provides a convenient way to 
manage multiple installs.


Burlen

On 01/09/2015 09:59 AM, Jeff Becker wrote:
Hi. My initial run of ccmake complained that my distro's qt was too 
old, so I downloaded and built/installed a supported version in 
/usr/local/Trolltech/Qt-4.8.6. Thus I set:


//Where can the qmake-qt4 library be found
QT_QMAKE_EXECUTABLE:FILEPATH=/usr/local/Trolltech/Qt-4.8.6/bin/qmake

However, even though ccmake completes (allowing the g key to be 
activated), the qt libraries/executables listed in CMakeCache.txt are 
all from the distro's versions (in /usr/lib64/qt4). E.g.,


//Path to a library.
QT_CUSTOMWIDGETPLUGIN_PLUGIN_RELEASE:FILEPATH=/usr/lib64/qt4/plugins/designer/libcustomwidgetplugin.so 



//Path to a program.
QT_DBUSCPP2XML_EXECUTABLE:FILEPATH=/usr/lib64/qt4/bin/qdbuscpp2xml

 Is there a QTHOME or similar variable I need to set to get the right 
libraries/executables? Thanks.


-jeff
___
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] Python paraview.simple: Zoom To Data?

2015-01-09 Thread Liam
Hey guys,

Just one more question. How do you define:

far  = config.camFac

I cannot find in the code neither config nor camFac variable, so anybody
could explain me how to compute far variable?

This code has helped me so much. 

Yhanks in advance,

Liam


___
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 cmake can't find proper qt

2015-01-09 Thread Burlen Loring

Hi Jeff,

Here are the vars that I set:

   prepend-path PATH /work/apps/qt-4.8.2/bin
   prepend-path MANPATH :/work/apps/qt-4.8.2/man
   prepend-path LD_LIBRARY_PATH /work/apps/qt-4.8.2/lib
   prepend-path LD_RUN_PATH /work/apps/qt-4.8.2/lib

after sourcing this, typing "which qmake" in the shell where you're 
doing your build should print the path to your qt. then cmake should 
find your qt.


the above is an excerpt from a module file 
 which provides a convenient way to 
manage multiple installs.


Burlen

On 01/09/2015 09:59 AM, Jeff Becker wrote:
Hi. My initial run of ccmake complained that my distro's qt was too 
old, so I downloaded and built/installed a supported version in 
/usr/local/Trolltech/Qt-4.8.6. Thus I set:


//Where can the qmake-qt4 library be found
QT_QMAKE_EXECUTABLE:FILEPATH=/usr/local/Trolltech/Qt-4.8.6/bin/qmake

However, even though ccmake completes (allowing the g key to be 
activated), the qt libraries/executables listed in CMakeCache.txt are 
all from the distro's versions (in /usr/lib64/qt4). E.g.,


//Path to a library.
QT_CUSTOMWIDGETPLUGIN_PLUGIN_RELEASE:FILEPATH=/usr/lib64/qt4/plugins/designer/libcustomwidgetplugin.so 



//Path to a program.
QT_DBUSCPP2XML_EXECUTABLE:FILEPATH=/usr/lib64/qt4/bin/qdbuscpp2xml

 Is there a QTHOME or similar variable I need to set to get the right 
libraries/executables? Thanks.


-jeff
___
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] paraview cmake can't find proper qt

2015-01-09 Thread Jeff Becker
Hi. My initial run of ccmake complained that my distro's qt was too old, 
so I downloaded and built/installed a supported version in 
/usr/local/Trolltech/Qt-4.8.6. Thus I set:


//Where can the qmake-qt4 library be found
QT_QMAKE_EXECUTABLE:FILEPATH=/usr/local/Trolltech/Qt-4.8.6/bin/qmake

However, even though ccmake completes (allowing the g key to be 
activated), the qt libraries/executables listed in CMakeCache.txt are 
all from the distro's versions (in /usr/lib64/qt4). E.g.,


//Path to a library.
QT_CUSTOMWIDGETPLUGIN_PLUGIN_RELEASE:FILEPATH=/usr/lib64/qt4/plugins/designer/libcustomwidgetplugin.so

//Path to a program.
QT_DBUSCPP2XML_EXECUTABLE:FILEPATH=/usr/lib64/qt4/bin/qdbuscpp2xml

 Is there a QTHOME or similar variable I need to set to get the right 
libraries/executables? Thanks.


-jeff
___
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] PV 420 unable to read state file from PV 410

2015-01-09 Thread Utkarsh Ayachit
There have been changes merged in git/master since RC1. It should be
fixed in the next RC.

On Fri, Jan 9, 2015 at 9:16 AM, Richard Grenon  wrote:
> Hello,
>
> Same problem with PV 4.3.0 RC1 (tested on Linux 64 bits binaries)
>
> Best regards.
>
> Richard
>
>
> Le 01/10/2014 09:53, Richard Grenon a écrit :
>>
>> Hello Utkarsh.
>>
>> I attach an archive tar.gz file that contains two short structured
>> datasets and two pvsm state files:
>>
>> * dataset1.tp = ASCII Tecplot file that contains an IxJ structured
>> surface.
>> * dataset2.tp = ASCII Tecplot file that contains an IxJ structured surface
>> having a common boundary with the first one.
>> * merge.pvsm: reproduces the bad plot with missing part of surface after
>> MergeBlocks.
>> * merge420.pvsm : no missing part after MergeBlocks, but error message.
>>
>> "merge.pvsm" and "merge420.pvsm" contain the same simple pipeline, but
>> components were added in a different order.
>>
>> Richard
>>
>
>
> --
>  Richard GRENON
>  ONERA
>  Departement d'Aerodynamique Appliquee - DAAP/ACI
>  8 rue des Vertugadins
>  92190 MEUDON - FRANCE
>  phone : +33 1 46 73 42 17
>  fax   : +33 1 46 73 41 46
>  mailto:richard.gre...@onera.fr
>  http://www.onera.fr
>
> ___
> 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] Help with memory crash?

2015-01-09 Thread Burlen Loring

Hi Nikolaos,

One thing that I would suggest is to restructure your script so that you 
do not create new objects inside your loop. You can usually construct 
your rendering pipeline first then loop over the files(times, arrays, 
etc) modifying the existing pipeline objects and then calling Render 
followed by WriteImage. When you write your script that way you avoid 
the possibility of creating leaks. If you are convinced that there is a 
leak in ParaView we could advise on locating it, however I hesitate to 
give that advise prematurely. It's more likely that the issues are 
resulting from the way your script is structured.


Burlen

On 01/08/2015 09:57 AM, Nikolaos Beratlis wrote:
After reading about memory leaks I modified the script at the end by 
adding "del" after "Delete":


  Delete(DataRepresentation4)
  del DataRepresentation4
  Delete(Contour2)
  del Contour2
  Delete(DataRepresentation3)
  del DataRepresentation3
  Delete(Q_VP_xmf)
  del Q_VP_xmf
  Delete(DataRepresentation2)
  del DataRepresentation2
  Delete(Contour1)
  del Contour1
  Delete(DataRepresentation1)
  del DataRepresentation1
  Delete(cf_VP_xmf)
  del cf_VP_xmf

That should fully delete the objects from the memory and it helped a 
little but I still have memory leaks. Before the script memory usage 
in the Memory Inspector is 1.4Gb and after one iteration it increases 
to 4Gb, compared to 10Gb without the del statements. After 4 
iterations the memory usage increases to 8Gb. Any ideas on how to 
track and eliminate completely the memory leaks? I am forgetting to 
delete an object from the script?




On Wed, Jan 7, 2015 at 9:17 PM, Nikolaos Beratlis 
mailto:nikos.berat...@gmail.com>> wrote:


So I did some more tests by running the script interactively. I
used a smaller grid first, 2002 x 20 x 1000 points and ran it only
for 1 iteration. When Paraview loaded the memory usage on the
server was 1.04GB. After doing one iteration the memory usage
spiked to 10.42GB and remained like that when the script finished.
What I found out is the Delete statements make no difference at
all, with or without them the memory usage remained 10.42GB.
Performing more iterations in the script actually worsens this
problem, after 4 iterations the memory used increased to 14.32GB.
With a larger grid of 2002 x 100 x 1000 points the memory after
one iteration increased from 10.42GB before the script to 45.25GB
after the script. How can I properly delete all datasets and clear
the memory in Paraview?



On Wed, Jan 7, 2015 at 2:55 PM, Nikolaos Beratlis
mailto:nikos.berat...@gmail.com>> wrote:

I am trying to run a script on a cluster with Paraview in
parallel. The cluster architecture is 16cores and 64GB per
node. The script reads in two XMF files, one contains a grid
of 2002x100x1000 points along with one variable. There is a
loop to perform two iterations:

try: paraview.simple
except: from paraview.simple import *
paraview.simple._DisableFirstRenderCameraReset()

RenderView1 = GetRenderView()
RenderView1.Background = [1.0, 1.0, 1.0]
view = GetActiveView()
view.ViewSize = [ 800, 500 ]

RenderView1.CenterAxesVisibility = 0
#RenderView1.OrientationAxesVisibility = 0

#Define variables
wdir =

'/lustre/groups/balarasgrp/nikosb/Research/Simulations/golfball/stationary/S120/Re20/gridC1/run_wm'
#wdir =

'/Users/nikosb/colone/Research/Simulations/golfball/stationary/S120/Re20/gridC1/run_wm'
#wdir =
'/Users/nikosb/Research/Simulations/SPHERE/Re100/gridC1/run'
Qval = 0.1
cfmin = -0.001
cfmax = 0.005

index = [None]*

m = 0
for i in range(0, 9):
  for j in range(0, 9):
for k in range(0, 9):
  for l in range(0, 9):
index[m] = chr(i+48)+chr(j+48)+chr(k+48)+chr(l+48)
m = m+1


for i in range(1,3):

  cf_VP_xmf = XDMFReader(
FileName=wdir+'/VPfield/XDMF/cf_VP'+index[i]+'.xmf' )

  cf_VP_xmf.Sets = []
  cf_VP_xmf.Grids = ['STL Grid']
  cf_VP_xmf.PointArrays = ['Cf']

  RenderView1 = GetRenderView()
  RenderView1.CenterOfRotation = [6.2286853790283203e-06,
2.5033950805664062e-06, 7.1227550506591797e-06]

  DataRepresentation1 = Show()
  DataRepresentation1.EdgeColor = [0.0, 0.0, 0.5762951094835]
DataRepresentation1.SelectionPointFieldDataArrayName = 'Cf'
  DataRepresentation1.ColorArrayName = ('POINT_DATA', 'Cf')
DataRepresentation1.ScalarOpacityUnitDistance =
0.03392870483226
  DataRepresentation1.ScaleFactor = 0.08557567596444

  a1_Cf_PVLookupTable = GetLookupTableForArray( "Cf", 1,
RGBPoints=[-0.0099065126851201057, 0.23001,
0.29899, 0

Re: [Paraview] PV 420 unable to read state file from PV 410

2015-01-09 Thread Richard Grenon

Hello,

Same problem with PV 4.3.0 RC1 (tested on Linux 64 bits binaries)

Best regards.

Richard


Le 01/10/2014 09:53, Richard Grenon a écrit :

Hello Utkarsh.

I attach an archive tar.gz file that contains two short structured 
datasets and two pvsm state files:


* dataset1.tp = ASCII Tecplot file that contains an IxJ structured 
surface.
* dataset2.tp = ASCII Tecplot file that contains an IxJ structured 
surface having a common boundary with the first one.
* merge.pvsm: reproduces the bad plot with missing part of surface 
after MergeBlocks.

* merge420.pvsm : no missing part after MergeBlocks, but error message.

"merge.pvsm" and "merge420.pvsm" contain the same simple pipeline, but 
components were added in a different order.


Richard




--
 Richard GRENON
 ONERA
 Departement d'Aerodynamique Appliquee - DAAP/ACI
 8 rue des Vertugadins
 92190 MEUDON - FRANCE
 phone : +33 1 46 73 42 17
 fax   : +33 1 46 73 41 46
 mailto:richard.gre...@onera.fr
 http://www.onera.fr

___
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