<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=ISO-8859-1">
<META content="MSHTML 6.00.6000.16981" name=GENERATOR></HEAD>
<BODY>
<DIV><SPAN class=531561514-17082010><FONT face=Arial color=#0000ff
size=2>Jacques,</FONT></SPAN></DIV>
<DIV><SPAN class=531561514-17082010><FONT face=Arial color=#0000ff
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=531561514-17082010><FONT face=Arial color=#0000ff
size=2>Utkarsh had a patch for preventing the opengl window popping up when
producing screenshots from a while ago. Not sure if this was implemented in the
latest releases of ParaView (I'm talking PV v3.6.2).</FONT></SPAN></DIV>
<DIV><SPAN class=531561514-17082010><FONT face=Arial color=#0000ff
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=531561514-17082010><FONT face=Arial color=#0000ff
size=2>Cheers,</FONT></SPAN></DIV>
<DIV><SPAN class=531561514-17082010><FONT face=Arial color=#0000ff
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=531561514-17082010><FONT face=Arial color=#0000ff
size=2>Adriano</FONT></SPAN></DIV><!-- Converted from text/plain format -->
<P><FONT size=2>===================================<BR><BR>Adriano Gagliardi
MEng PhD<BR>Business Sector Leader<BR>Computational Aerodynamics<BR>Aircraft
Research Association Ltd.<BR>Manton Lane<BR>Bedford<BR><BR>Tel: 01234 32
4644<BR>E-mail: agagliardi@ara.co.uk<BR>Url: www.ara.co.uk </FONT></P>
<DIV> </DIV><BR>
<DIV class=OutlookMessageHeader lang=en-us dir=ltr align=left>
<HR tabIndex=-1>
<FONT face=Tahoma size=2><B>From:</B> paraview-bounces@paraview.org
[mailto:paraview-bounces@paraview.org] <B>On Behalf Of </B>Jacques
Papper<BR><B>Sent:</B> 17 August 2010 15:07<BR><B>To:</B> pat
marion<BR><B>Cc:</B> ParaView<BR><B>Subject:</B> [Paraview]
CoProcessing<BR></FONT><BR></DIV>
<DIV></DIV>Hi All, <BR><BR>Although I've got the coprocessing to work somehow, I
still have a couple of problems :<BR><BR>-> I have pulled from git
yesterday.<BR><BR>1. None inside the python scripts generated by the plugin
throws up some issues :<BR><BR>Traceback (most recent call last):<BR> File
"<string>", line 2, in <module><BR> File
"/users/boreas01/jacques/TESTING/A6_saloon_50k/pvCopro.py", line 138, in
DoCoProcessing<BR>
DataRepresentation1.SelectOrientationVectors = [None, '']<BR> File
"/users/boreas01/jacques/PARAVIEW/ParaView-bin/Utilities/VTKPythonWrapping/site-packages/paraview/servermanager.py",
line 207, in __setattr__<BR> setter(self, value)<BR>
File
"/users/boreas01/jacques/PARAVIEW/ParaView-bin/Utilities/VTKPythonWrapping/site-packages/paraview/servermanager.py",
line 2367, in setProperty<BR> return
self.GetPropertyValue(propName)<BR> File
"/users/boreas01/jacques/PARAVIEW/ParaView-bin/Utilities/VTKPythonWrapping/site-packages/paraview/servermanager.py",
line 256, in SetPropertyWithName<BR> def
SetPropertyWithName(self, pname, arg):<BR> File
"/users/boreas01/jacques/PARAVIEW/ParaView-bin/Utilities/VTKPythonWrapping/site-packages/paraview/servermanager.py",
line 799, in SetData<BR> if len(values) ==
1:<BR>UnboundLocalError: local variable 'val' referenced before
assignment<BR><BR><BR>2. When Compiling with MESA, and switching offscreen
rendering ON I get problems at runtime when coprocessing (I have no problems
saving screenshots directly from within paraview) :<BR><BR><BR>--- Some of my
CMAKE settings :<BR>//Path to a
file.<BR>OPENGL_INCLUDE_DIR:PATH=/usr/include<BR><BR>//Path to a
library.<BR>OPENGL_gl_LIBRARY:FILEPATH=/usr/lib64/libGL.so<BR><BR>//Path to a
library.<BR>OPENGL_glu_LIBRARY:FILEPATH=/usr/lib64/libGLU.so<BR><BR>//Path to a
file.<BR>OPENGL_xmesa_INCLUDE_DIR:PATH=/usr/include<BR><BR>//Path to a
file.<BR>OSMESA_INCLUDE_DIR:PATH=/usr/include<BR><BR>//Path to a
library.<BR>OSMESA_LIBRARY:FILEPATH=/usr/lib64/libOSMesa.so<BR><BR>----- RunTime
error message ---- <BR><BR><BR>#0
Foam::error::printStack(Foam::Ostream&) in
"/users/boreas01/jacques/FOAMpro-1.6-dev/FOAM-dev/lib/linux64GccDPOpt/libFOAM.so"<BR>#1
Foam::sigSegv::sigSegvHandler(int) in
"/users/boreas01/jacques/FOAMpro-1.6-dev/FOAM-dev/lib/linux64GccDPOpt/libFOAM.so"<BR>#2
?? in "/lib64/libc.so.6"<BR>#3 __rawmemchr in
"/lib64/libc.so.6"<BR>#4 ?? in "/lib64/libc.so.6"<BR>#5 vsscanf in
"/lib64/libc.so.6"<BR>#6 _IO_sscanf in "/lib64/libc.so.6"<BR>#7
vtkOpenGLExtensionManager::ReadOpenGLExtensions() in
"/users/boreas01/jacques/PARAVIEW/ParaView-bin/bin/libvtkRendering.so.pv3.9"<BR>#8
vtkOpenGLExtensionManager::Update() in
"/users/boreas01/jacques/PARAVIEW/ParaView-bin/bin/libvtkRendering.so.pv3.9"<BR>#9
vtkOpenGLExtensionManager::ExtensionSupported(char const*) in
"/users/boreas01/jacques/PARAVIEW/ParaView-bin/bin/libvtkRendering.so.pv3.9"<BR>#10
vtkOpenGLRenderWindow::OpenGLInit() in
"/users/boreas01/jacques/PARAVIEW/ParaView-bin/bin/libvtkRendering.so.pv3.9"<BR>#11
vtkXOpenGLRenderWindow::Start() in
"/users/boreas01/jacques/PARAVIEW/ParaView-bin/bin/libvtkRendering.so.pv3.9"<BR>#12
vtkRenderWindow::DoStereoRender() in
"/users/boreas01/jacques/PARAVIEW/ParaView-bin/bin/libvtkRendering.so.pv3.9"<BR>#13
vtkRenderWindow::DoFDRender() in
"/users/boreas01/jacques/PARAVIEW/ParaView-bin/bin/libvtkRendering.so.pv3.9"<BR>#14
vtkRenderWindow::DoAARender() in
"/users/boreas01/jacques/PARAVIEW/ParaView-bin/bin/libvtkRendering.so.pv3.9"<BR>#15
vtkRenderWindow::Render() in
"/users/boreas01/jacques/PARAVIEW/ParaView-bin/bin/libvtkRendering.so.pv3.9"<BR>#16
vtkXOpenGLRenderWindow::Render() in
"/users/boreas01/jacques/PARAVIEW/ParaView-bin/bin/libvtkRendering.so.pv3.9"<BR>#17
vtkXOpenGLRenderWindowCommand(vtkClientServerInterpreter*, vtkObjectBase*, char
const*, vtkClientServerStream const&, vtkClientServerStream&) in
"/users/boreas01/jacques/PARAVIEW/ParaView-bin/bin/libvtkRenderingCS.so"<BR>#18
vtkClientServerInterpreter::ProcessCommandInvoke(vtkClientServerStream
const&, int) in
"/users/boreas01/jacques/PARAVIEW/ParaView-bin/bin/libvtkClientServer.so"<BR>#19
vtkClientServerInterpreter::ProcessOneMessage(vtkClientServerStream const&,
int) in
"/users/boreas01/jacques/PARAVIEW/ParaView-bin/bin/libvtkClientServer.so"<BR>#20
vtkClientServerInterpreter::ProcessStream(vtkClientServerStream const&) in
"/users/boreas01/jacques/PARAVIEW/ParaView-bin/bin/libvtkClientServer.so"<BR>#21
vtkSelfConnection::ProcessStreamLocally(vtkClientServerStream&) in
"/users/boreas01/jacques/PARAVIEW/ParaView-bin/bin/libvtkPVServerCommon.so"<BR>#22
vtkMPISelfConnection::SendStreamToDataServerRoot(vtkClientServerStream&) in
"/users/boreas01/jacques/PARAVIEW/ParaView-bin/bin/libvtkPVServerCommon.so"<BR>#23
vtkProcessModuleConnection::SendStream(unsigned int, vtkClientServerStream&)
in
"/users/boreas01/jacques/PARAVIEW/ParaView-bin/bin/libvtkPVServerCommon.so"<BR>#24
vtkProcessModuleConnectionManager::SendStream(long long, unsigned int,
vtkClientServerStream&, int) in
"/users/boreas01/jacques/PARAVIEW/ParaView-bin/bin/libvtkPVServerCommon.so"<BR>#25
vtkProcessModule::SendStream(long long, unsigned int,
vtkClientServerStream&, int) in
"/users/boreas01/jacques/PARAVIEW/ParaView-bin/bin/libvtkPVServerCommon.so"<BR>#26
vtkSMRenderViewProxy::PerformRender() in
"/users/boreas01/jacques/PARAVIEW/ParaView-bin/bin/libvtkPVServerManager.so"<BR>#27
vtkSMViewProxy::StillRender() in
"/users/boreas01/jacques/PARAVIEW/ParaView-bin/bin/libvtkPVServerManager.so"<BR>#28
vtkSMRenderViewProxy::CaptureWindow(int) in
"/users/boreas01/jacques/PARAVIEW/ParaView-bin/bin/libvtkPVServerManager.so"<BR>#29
vtkSMRenderViewProxy::WriteImage(char const*, char const*, int) in
"/users/boreas01/jacques/PARAVIEW/ParaView-bin/bin/libvtkPVServerManager.so"<BR>#30
?? at vtkSMRenderViewProxyPython.cxx:0<BR>#31
vtkPythonUtil::CallOverloadedMethod(PyMethodDef*, _object*, _object*) in
"/users/boreas01/jacques/PARAVIEW/ParaView-bin/bin/libvtkPythonCore.so.pv3.9"<BR>#32
PyObject_Call in "/usr/lib64/libpython2.6.so.1.0"<BR>#33
PyEval_EvalFrameEx in "/usr/lib64/libpython2.6.so.1.0"<BR>#34
PyEval_EvalCodeEx in "/usr/lib64/libpython2.6.so.1.0"<BR>#35
PyEval_EvalFrameEx in "/usr/lib64/libpython2.6.so.1.0"<BR>#36
PyEval_EvalCodeEx in "/usr/lib64/libpython2.6.so.1.0"<BR>#37
PyEval_EvalFrameEx in "/usr/lib64/libpython2.6.so.1.0"<BR>#38
PyEval_EvalFrameEx in "/usr/lib64/libpython2.6.so.1.0"<BR>#39
PyEval_EvalCodeEx in "/usr/lib64/libpython2.6.so.1.0"<BR>#40
PyEval_EvalCode in "/usr/lib64/libpython2.6.so.1.0"<BR>#41 ?? in
"/usr/lib64/libpython2.6.so.1.0"<BR>#42 PyRun_StringFlags in
"/usr/lib64/libpython2.6.so.1.0"<BR>#43 PyRun_SimpleStringFlags in
"/usr/lib64/libpython2.6.so.1.0"<BR>#44
vtkPVPythonInterpretor::RunSimpleString(char const*) in
"/users/boreas01/jacques/PARAVIEW/ParaView-bin/bin/libvtkPVPythonInterpretor.so"<BR>#45
vtkCPPythonScriptPipeline::CoProcess(vtkCPDataDescription*) in
"/users/boreas01/jacques/PARAVIEW/ParaView-bin/bin/libvtkCoProcessor.so"<BR>#46
vtkCPProcessor::CoProcess(vtkCPDataDescription*) in
"/users/boreas01/jacques/PARAVIEW/ParaView-bin/bin/libvtkCoProcessor.so"<BR><BR><BR>When
compiling without MESA and OFFSCREEN then it works fine but I get an annoying
window that pops up all the time...<BR><BR>3. I am able to use the Parallel
Multi Block Data Set Writer, on a very simple hex mesh. But when I use it on a
more complex mesh (including POLYHEDRA cells) I get the following error
:<BR><BR>When opening the file in paraview :<BR><BR>
<META content=1 name=qrichtext>
<STYLE type=text/css>P {
}
LI {
}
</STYLE>
<TABLE style="MARGIN: 4px">
<TBODY>
<TR>
<TD
style="BORDER-RIGHT: medium none; BORDER-TOP: medium none; BORDER-LEFT: medium none; BORDER-BOTTOM: medium none">
<P style="MARGIN: 0px; TEXT-INDENT: 0px"><SPAN
style="FONT-SIZE: 10pt; COLOR: rgb(128,0,0); FONT-FAMILY: 'Courier'">ERROR:
In /users/boreas01/jacques/PARAVIEW/ParaView/VTK/IO/vtkXMLParser.cxx, line
483</SPAN></P>
<P style="MARGIN: 0px; TEXT-INDENT: 0px"><SPAN
style="FONT-SIZE: 10pt; COLOR: rgb(128,0,0); FONT-FAMILY: 'Courier'">vtkXMLDataParser
(0x18aa700): Error parsing XML in stream at line 1, column 7, byte index
7: not well-formed (invalid token)</SPAN></P>
<P
style="FONT-SIZE: 10pt; MARGIN: 0px; COLOR: rgb(128,0,0); TEXT-INDENT: 0px; FONT-FAMILY: 'Courier'"></P>
<P
style="FONT-SIZE: 10pt; MARGIN: 0px; COLOR: rgb(128,0,0); TEXT-INDENT: 0px; FONT-FAMILY: 'Courier'"></P>
<P style="MARGIN: 0px; TEXT-INDENT: 0px"><SPAN
style="FONT-SIZE: 10pt; COLOR: rgb(128,0,0); FONT-FAMILY: 'Courier'">ERROR:
In /users/boreas01/jacques/PARAVIEW/ParaView/VTK/IO/vtkXMLReader.cxx, line
362</SPAN></P>
<P style="MARGIN: 0px; TEXT-INDENT: 0px"><SPAN
style="FONT-SIZE: 10pt; COLOR: rgb(128,0,0); FONT-FAMILY: 'Courier'">vtkXMLUnstructuredGridReader
(0x18cbbc0): Error parsing input file. ReadXMLInformation
aborting.</SPAN></P>
<P
style="FONT-SIZE: 10pt; MARGIN: 0px; COLOR: rgb(128,0,0); TEXT-INDENT: 0px; FONT-FAMILY: 'Courier'"></P>
<P
style="FONT-SIZE: 10pt; MARGIN: 0px; COLOR: rgb(128,0,0); TEXT-INDENT: 0px; FONT-FAMILY: 'Courier'"></P>
<P style="MARGIN: 0px; TEXT-INDENT: 0px"><SPAN
style="FONT-SIZE: 10pt; COLOR: rgb(128,0,0); FONT-FAMILY: 'Courier'">ERROR:
In
/users/boreas01/jacques/PARAVIEW/ParaView/VTK/Filtering/vtkExecutive.cxx,
line 756</SPAN></P>
<P style="MARGIN: 0px; TEXT-INDENT: 0px"><SPAN
style="FONT-SIZE: 10pt; COLOR: rgb(128,0,0); FONT-FAMILY: 'Courier'">vtkStreamingDemandDrivenPipeline
(0xdadf60): Algorithm vtkXMLUnstructuredGridReader(0x18cbbc0) returned
failure for request: vtkInformation (0x127b170)</SPAN></P>
<P style="MARGIN: 0px; TEXT-INDENT: 0px"><SPAN
style="FONT-SIZE: 10pt; COLOR: rgb(128,0,0); FONT-FAMILY: 'Courier'">Debug:
Off</SPAN></P>
<P style="MARGIN: 0px; TEXT-INDENT: 0px"><SPAN
style="FONT-SIZE: 10pt; COLOR: rgb(128,0,0); FONT-FAMILY: 'Courier'">Modified
Time: 80976</SPAN></P>
<P style="MARGIN: 0px; TEXT-INDENT: 0px"><SPAN
style="FONT-SIZE: 10pt; COLOR: rgb(128,0,0); FONT-FAMILY: 'Courier'">Reference
Count: 1</SPAN></P>
<P style="MARGIN: 0px; TEXT-INDENT: 0px"><SPAN
style="FONT-SIZE: 10pt; COLOR: rgb(128,0,0); FONT-FAMILY: 'Courier'">Registered
Events: (none)</SPAN></P>
<P style="MARGIN: 0px; TEXT-INDENT: 0px"><SPAN
style="FONT-SIZE: 10pt; COLOR: rgb(128,0,0); FONT-FAMILY: 'Courier'">Request:
REQUEST_INFORMATION</SPAN></P>
<P style="MARGIN: 0px; TEXT-INDENT: 0px"><SPAN
style="FONT-SIZE: 10pt; COLOR: rgb(128,0,0); FONT-FAMILY: 'Courier'">ALGORITHM_AFTER_FORWARD:
1</SPAN></P>
<P style="MARGIN: 0px; TEXT-INDENT: 0px"><SPAN
style="FONT-SIZE: 10pt; COLOR: rgb(128,0,0); FONT-FAMILY: 'Courier'">FORWARD_DIRECTION:
0</SPAN></P>
<P
style="FONT-SIZE: 10pt; MARGIN: 0px; COLOR: rgb(128,0,0); TEXT-INDENT: 0px; FONT-FAMILY: 'Courier'"></P></TD></TR></TBODY></TABLE><BR><BR>When
running the coprocessor I do not get any error message. And I am still
able to ouput png screenshots (when not using OFFSCREEN)... Is there an
incompatibility between the writers and the polyhedra cell type ? Or is it
possible that somewhere I am not filling in the cells / points properly ?
<BR><BR>Best, <BR>Jacques<BR><BR><BR><BR><BR><BR>
<DIV class=gmail_quote>2010/8/16 pat marion <SPAN dir=ltr><<A
href="mailto:pat.marion@kitware.com">pat.marion@kitware.com</A>></SPAN><BR>
<BLOCKQUOTE class=gmail_quote
style="PADDING-LEFT: 1ex; MARGIN: 0pt 0pt 0pt 0.8ex; BORDER-LEFT: rgb(204,204,204) 1px solid">cc'ing
the list.<BR><FONT color=#888888><BR>Pat</FONT>
<DIV>
<DIV></DIV>
<DIV class=h5><BR><BR>
<DIV class=gmail_quote>---------- Forwarded message ----------<BR>From: <B
class=gmail_sendername>Jacques Papper</B> <SPAN dir=ltr><<A
href="mailto:jacques.papper@gmail.com"
target=_blank>jacques.papper@gmail.com</A>></SPAN><BR>Date: Mon, Aug 16,
2010 at 1:55 PM<BR>Subject: Re: [Paraview] CoProcessing<BR>To: pat marion
<<A href="mailto:pat.marion@kitware.com"
target=_blank>pat.marion@kitware.com</A>><BR><BR><BR>Once again... My
mistake .. I'm not used to submodules ! <BR><BR>
<DIV class=gmail_quote>2010/8/16 Jacques Papper <SPAN dir=ltr><<A
href="mailto:jacques.papper@gmail.com"
target=_blank>jacques.papper@gmail.com</A>></SPAN>
<DIV>
<DIV></DIV>
<DIV><BR>
<BLOCKQUOTE class=gmail_quote
style="PADDING-LEFT: 1ex; MARGIN: 0pt 0pt 0pt 0.8ex; BORDER-LEFT: rgb(204,204,204) 1px solid">Hi,
I just pulled my git.. <BR><BR>CMake Error in
Utilities/VTKClientServer/Wrapping/CMakeLists.txt:<BR> Cannot find
source file "vtkParsePreprocess.c". Tried extensions .c .C<BR>
.c++ .cc .cpp .cxx .m .M .mm .h .hh .h++ .hm .hpp .hxx .in .txx<BR><BR>I
tried to configure and generate cmake but I get the same error when
generating... <BR><BR>Should I start from a clean cmake cache ?
<BR><BR>Jacques<BR><BR>
<DIV class=gmail_quote>2010/8/16 pat marion <SPAN dir=ltr><<A
href="mailto:pat.marion@kitware.com"
target=_blank>pat.marion@kitware.com</A>></SPAN>
<DIV>
<DIV></DIV>
<DIV><BR>
<BLOCKQUOTE class=gmail_quote
style="PADDING-LEFT: 1ex; MARGIN: 0pt 0pt 0pt 0.8ex; BORDER-LEFT: rgb(204,204,204) 1px solid">If
you can't upgrade your paraview version you could try hand applying the
patch to /users/boreas01/jacques/
<DIV>
<BLOCKQUOTE class=gmail_quote
style="PADDING-LEFT: 1ex; MARGIN: 0pt 0pt 0pt 0.8ex; BORDER-LEFT: rgb(204,204,204) 1px solid">PARAVIEW/ParaView-bin/Utilities/VTKPythonWrapping/site-packages/paraview/servermanager.py</BLOCKQUOTE></DIV>
<DIV><BR>The patch:<BR><BR><A
href="http://paraview.org/gitweb?p=ParaView.git;a=commitdiff;h=23027770320168c3f7877c6e4150d5ca834f3b9b"
target=_blank>http://paraview.org/gitweb?p=ParaView.git;a=commitdiff;h=23027770320168c3f7877c6e4150d5ca834f3b9b</A>
<BR></DIV><BR>Pat
<DIV>
<DIV></DIV>
<DIV><BR><BR>
<DIV class=gmail_quote>On Mon, Aug 16, 2010 at 11:01 AM, Jacques Papper
<SPAN dir=ltr><<A href="mailto:jacques.papper@gmail.com"
target=_blank>jacques.papper@gmail.com</A>></SPAN> wrote:<BR>
<BLOCKQUOTE class=gmail_quote
style="PADDING-LEFT: 1ex; MARGIN: 0pt 0pt 0pt 0.8ex; BORDER-LEFT: rgb(204,204,204) 1px solid">Hi,
<BR><BR>I'm sorry I was just rerunning to reproduce the error, and did
not realize I missed changing my input back to input.foam instead of
toto.foam .... <BR><BR>Here is the actual error message
:<BR><BR>Traceback (most recent call last):<BR> File
"<string>", line 2, in <module><BR> File
"/users/boreas01/jacques/TESTING/A6_saloon_50k/pvCopro.py", line 138, in
DoCoProcessing<BR>
DataRepresentation1.SelectOrientationVectors = [None, '']<BR> File
"/users/boreas01/jacques/PARAVIEW/ParaView-bin/Utilities/VTKPythonWrapping/site-packages/paraview/servermanager.py",
line 207, in __setattr__<BR> setter(self,
value)<BR> File
"/users/boreas01/jacques/PARAVIEW/ParaView-bin/Utilities/VTKPythonWrapping/site-packages/paraview/servermanager.py",
line 2367, in setProperty<BR> return
self.SetPropertyWithName(propName, value)<BR> File
"/users/boreas01/jacques/PARAVIEW/ParaView-bin/Utilities/VTKPythonWrapping/site-packages/paraview/servermanager.py",
line 256, in SetPropertyWithName<BR>
prop.SetData(arg)<BR> File
"/users/boreas01/jacques/PARAVIEW/ParaView-bin/Utilities/VTKPythonWrapping/site-packages/paraview/servermanager.py",
line 799, in SetData<BR>
self.SMProperty.SetElement(3, str(val))<BR>UnboundLocalError:
local variable 'val' referenced before
assignment<BR><BR><BR>Jacques<BR><BR>
<DIV class=gmail_quote>2010/8/16 Andy Bauer <SPAN dir=ltr><<A
href="mailto:andy.bauer@kitware.com"
target=_blank>andy.bauer@kitware.com</A>></SPAN>
<DIV>
<DIV></DIV>
<DIV><BR>
<BLOCKQUOTE class=gmail_quote
style="PADDING-LEFT: 1ex; MARGIN: 0pt 0pt 0pt 0.8ex; BORDER-LEFT: rgb(204,204,204) 1px solid">The
other thing is that there was a problem when outputting images from
coprocessing. Try updating to commit 2302777 to see if that's
it. <BR><FONT color=#888888><BR>Andy</FONT>
<DIV>
<DIV></DIV>
<DIV><BR><BR>
<DIV class=gmail_quote>On Mon, Aug 16, 2010 at 9:07 AM, pat marion
<SPAN dir=ltr><<A href="mailto:pat.marion@kitware.com"
target=_blank>pat.marion@kitware.com</A>></SPAN> wrote:<BR>
<BLOCKQUOTE class=gmail_quote
style="PADDING-LEFT: 1ex; MARGIN: 0pt 0pt 0pt 0.8ex; BORDER-LEFT: rgb(204,204,204) 1px solid">Hi
Jacques,<BR><BR>That error message seems to be unrelated to the
lines containing 'None' that you copied in a previous email.
It looks to me like your code that calls the coprocessor is not
inserting the vtk data set under the name 'test.foam'. In the
calling code you need something
like:<BR><BR>dataDesc->AddInput("test.foam")<BR>dataDesc->GetInputDescriptionByName("test.foam")->SetGrid(dataObject);<BR><FONT
color=#888888><BR>Pat</FONT>
<DIV>
<DIV></DIV>
<DIV><BR><BR>
<DIV class=gmail_quote>On Mon, Aug 16, 2010 at 8:35 AM, Jacques
Papper <SPAN dir=ltr><<A href="mailto:jacques.papper@gmail.com"
target=_blank>jacques.papper@gmail.com</A>></SPAN> wrote:<BR>
<BLOCKQUOTE class=gmail_quote
style="PADDING-LEFT: 1ex; MARGIN: 0pt 0pt 0pt 0.8ex; BORDER-LEFT: rgb(204,204,204) 1px solid">Hi
Pat, <BR><BR>This is what shows up for me
:<BR><BR>
datadescription.GetInputDescriptionByName(input_name).AllFieldsOff()<BR>AttributeError:
'NoneType' object has no attribute
'AllFieldsOff'<BR><BR><BR>Inside the Python script :<BR><BR>def
RequestDataDescription(datadescription):<BR>
"Callback to populate the request for current
timestep"<BR> timestep =
datadescription.GetTimeStep()<BR><BR><BR>
input_name = 'test.foam'<BR> if (timestep %
0.0004 == 0) :<BR>
datadescription.GetInputDescriptionByName(input_name).AllFieldsOn()<BR>
datadescription.GetInputDescriptionByName(input_name).GenerateMeshOn()<BR>
else:<BR>
datadescription.GetInputDescriptionByName(input_name).AllFieldsOff()<BR>
datadescription.GetInputDescriptionByName(input_name).GenerateMeshOff()<BR><BR><BR>Best,<BR><BR><BR>Jacques<BR><BR><BR>
<DIV class=gmail_quote>2010/8/13 pat marion <SPAN dir=ltr><<A
href="mailto:pat.marion@kitware.com"
target=_blank>pat.marion@kitware.com</A>></SPAN>
<DIV>
<DIV></DIV>
<DIV><BR>
<BLOCKQUOTE class=gmail_quote
style="PADDING-LEFT: 1ex; MARGIN: 0pt 0pt 0pt 0.8ex; BORDER-LEFT: rgb(204,204,204) 1px solid">Hi
Jacques,<BR><BR>My python trace files have similar lines, and I
am able to run them without error. I've only just tested
with latest git master, not 3.8. Can you copy the specific
error message you're getting so I can take a look?<BR><FONT
color=#888888><BR>Pat</FONT>
<DIV>
<DIV></DIV>
<DIV><BR><BR>
<DIV class=gmail_quote>On Fri, Aug 13, 2010 at 6:20 PM, Jacques
Papper <SPAN dir=ltr><<A
href="mailto:jacques.papper@gmail.com"
target=_blank>jacques.papper@gmail.com</A>></SPAN> wrote:<BR>
<BLOCKQUOTE class=gmail_quote
style="PADDING-LEFT: 1ex; MARGIN: 0pt 0pt 0pt 0.8ex; BORDER-LEFT: rgb(204,204,204) 1px solid">
Sorry I meant None... not Null :<BR> <BR>For example
:<BR><BR><BR>
DataRepresentation1.SelectOrientationVectors = [None,
'']<BR>
DataRepresentation1.SelectedMapperIndex = 'Projected
tetra'<BR>
DataRepresentation1.CubeAxesTickLocation =
'Inside'<BR>
DataRepresentation1.CubeAxesXAxisMinorTickVisibility =
1<BR>
DataRepresentation1.CubeAxesYAxisVisibility =
1<BR>
DataRepresentation1.SelectionPointLabelFontFamily =
'Arial'<BR>
DataRepresentation1.Source.ShaftResolution =
6<BR> DataRepresentation1.CubeAxesFlyMode =
'Closest Triad'<BR>
DataRepresentation1.SelectScaleArray = [None, '']<BR><BR><BR>
<DIV class=gmail_quote>2010/8/13 Andy Bauer <SPAN
dir=ltr><<A href="mailto:andy.bauer@kitware.com"
target=_blank>andy.bauer@kitware.com</A>></SPAN>
<DIV>
<DIV></DIV>
<DIV><BR>
<BLOCKQUOTE class=gmail_quote
style="PADDING-LEFT: 1ex; MARGIN: 0pt 0pt 0pt 0.8ex; BORDER-LEFT: rgb(204,204,204) 1px solid"><BR><BR>
<DIV class=gmail_quote>
<DIV>On Fri, Aug 13, 2010 at 3:39 AM, Jacques Papper <SPAN
dir=ltr><<A href="mailto:jacques.papper@gmail.com"
target=_blank>jacques.papper@gmail.com</A>></SPAN>
wrote:<BR>
<BLOCKQUOTE class=gmail_quote
style="PADDING-LEFT: 1ex; MARGIN: 0pt 0pt 0pt 0.8ex; BORDER-LEFT: rgb(204,204,204) 1px solid">I
found the problem... I was inserting PointData instead of
CellData :) ,,,<BR>Anyway it seems to be starting to work
now.. 2 things though :<BR><BR>-> Whenever I try to run
directly a python script exported from paraview (Through
the Coprocessing export state) it won't run until I remove
all references to LIC and all lines containing
Null...<BR><BR></BLOCKQUOTE></DIV>
<DIV>Now that you mention it, I didn't put in anything
special for plugins. Setting the plugins to auto-load
may work but my guess is that it won't. I'll look into
the plugin thing and the best way to do it in the script
generator.<BR><BR>What do you mean by Null? I don't
know what that is so you'll have to explain it to
me.<BR><BR> </DIV>
<DIV>
<BLOCKQUOTE class=gmail_quote
style="PADDING-LEFT: 1ex; MARGIN: 0pt 0pt 0pt 0.8ex; BORDER-LEFT: rgb(204,204,204) 1px solid">For
the LIC, is it because the python script doesn't
automatically load the LIC plugin ? <BR>For the Null, do
you have this problem as well ?<BR><BR>-> Is the Live
Source Data code already available in git ? I'd love to
test it out even if it is not robust yet.
<BR></BLOCKQUOTE></DIV>
<DIV><BR>We don't yet have permission to release the Live
Source Data code yet but I think it should be available in
the next couple of months. <BR></DIV>
<DIV>
<DIV></DIV>
<DIV>
<BLOCKQUOTE class=gmail_quote
style="PADDING-LEFT: 1ex; MARGIN: 0pt 0pt 0pt 0.8ex; BORDER-LEFT: rgb(204,204,204) 1px solid"><BR>Best,
<BR>Jacques<BR><BR><BR>
<DIV class=gmail_quote>2010/8/12 Andy Bauer <SPAN
dir=ltr><<A href="mailto:andy.bauer@kitware.com"
target=_blank>andy.bauer@kitware.com</A>></SPAN><BR>
<BLOCKQUOTE class=gmail_quote
style="PADDING-LEFT: 1ex; MARGIN: 0pt 0pt 0pt 0.8ex; BORDER-LEFT: rgb(204,204,204) 1px solid">You
probably want to add the field data to the specific
grids in the multiblock data set and not just the block
itself. As an example:<BR><BR>create
multiblock<BR>for each grid:<BR> create grid
points and cells<BR> add point and cell data to
grid<BR> add grid to block<BR><BR>Note that in
parallel for coprocessing that the block must have the
same structure on each process but whether a leaf node
is empty or not can change. For
example:<BR><BR>proc 0 mutliblock:<BR> block 0
-> unstructured grid<BR> block 1 -> uniform
grid<BR> block 2 -> NULL<BR>proc 1
multiblock:<BR> block 0 -> NULL<BR> block
1 -> NULL<BR> block 2 -> unstructured
grid<BR><BR>I'm not sure of all of the details but what
I do is that I set a block to only be non-NULL on a
single process.<BR><BR>Hope this helps,<BR><FONT
color=#888888>Andy</FONT>
<DIV>
<DIV></DIV>
<DIV><BR><BR>
<DIV class=gmail_quote>On Thu, Aug 12, 2010 at 2:38 PM,
Jacques Papper <SPAN dir=ltr><<A
href="mailto:jacques.papper@gmail.com"
target=_blank>jacques.papper@gmail.com</A>></SPAN>
wrote:<BR>
<BLOCKQUOTE class=gmail_quote
style="PADDING-LEFT: 1ex; MARGIN: 0pt 0pt 0pt 0.8ex; BORDER-LEFT: rgb(204,204,204) 1px solid">Hi
All, <BR><BR>I am making some more progress on this.
Everything was working until I tried adding field
data... I now get an explosion :<BR><BR>#2 ?? in
"/lib64/libc.so.6"<BR>#3
vtkDataArrayTemplate<double>::ComputeScalarRange(int)
in
"/users/boreas01/jacques/PARAVIEW/ParaView-bin/bin/libvtkCommon.so.pv3.9"<BR>#4
vtkDataArray::ComputeRange(int) in
"/users/boreas01/jacques/PARAVIEW/ParaView-bin/bin/libvtkCommon.so.pv3.9"<BR>#5
vtkPVArrayInformation::CopyFromObject(vtkObject*) in
"/users/boreas01/jacques/PARAVIEW/ParaView-bin/bin/libvtkPVServerCommon.so"<BR>#6
vtkPVDataSetAttributesInformation::CopyFromDataSetAttributes(vtkDataSetAttributes*)
in
"/users/boreas01/jacques/PARAVIEW/ParaView-bin/bin/libvtkPVServerCommon.so"<BR>#7
vtkPVDataInformation::CopyFromDataSet(vtkDataSet*) in
"/users/boreas01/jacques/PARAVIEW/ParaView-bin/bin/libvtkPVServerCommon.so"<BR>#8
vtkPVDataInformation::CopyFromObject(vtkObject*) in
"/users/boreas01/jacques/PARAVIEW/ParaView-bin/bin/libvtkPVServerCommon.so"<BR>#9
vtkPVCompositeDataInformation::CopyFromObject(vtkObject*)
in
"/users/boreas01/jacques/PARAVIEW/ParaView-bin/bin/libvtkPVServerCommon.so"<BR>#10
vtkPVDataInformation::CopyFromCompositeDataSet(vtkCompositeDataSet*)
in
"/users/boreas01/jacques/PARAVIEW/ParaView-bin/bin/libvtkPVServerCommon.so"<BR>#11
vtkPVDataInformation::CopyFromObject(vtkObject*) in
"/users/boreas01/jacques/PARAVIEW/ParaView-bin/bin/libvtkPVServerCommon.so"<BR>#12
vtkSelfConnection::GatherInformation(unsigned int,
vtkPVInformation*, vtkClientServerID) in
"/users/boreas01/jacques/PARAVIEW/ParaView-bin/bin/libvtkPVServerCommon.so"<BR>#13
vtkSynchronousMPISelfConnection::GatherInformation(unsigned
int, vtkPVInformation*, vtkClientServerID) in
"/users/boreas01/jacques/PARAVIEW/ParaView-bin/bin/libvtkPVServerCommon.so"<BR>#14
vtkSMOutputPort::GatherDataInformation() in
"/users/boreas01/jacques/PARAVIEW/ParaView-bin/bin/libvtkPVServerManager.so"<BR>#15
vtkSMOutputPort::GetDataInformation() in
"/users/boreas01/jacques/PARAVIEW/ParaView-bin/bin/libvtkPVServerManager.so"<BR>#16
vtkSMDataTypeDomain::IsInDomain(vtkSMSourceProxy*,
int) in
"/users/boreas01/jacques/PARAVIEW/ParaView-bin/bin/libvtkPVServerManager.so"<BR>#17
vtkSMDataTypeDomain::IsInDomain(vtkSMProperty*) in
"/users/boreas01/jacques/PARAVIEW/ParaView-bin/bin/libvtkPVServerManager.so"<BR>#18
vtkSMProperty::IsInDomains() in
"/users/boreas01/jacques/PARAVIEW/ParaView-bin/bin/libvtkPVServerManager.so"<BR>#19
vtkSMRenderViewProxy::CreateDefaultRepresentation(vtkSMProxy*,
int) in
"/users/boreas01/jacques/PARAVIEW/ParaView-bin/bin/libvtkPVServerManager.so"<BR>#20
?? at vtkSMRenderViewProxyPython.cxx:0<BR>#21
PyEval_EvalFrameEx in
"/usr/lib64/libpython2.6.so.1.0"<BR>#22
PyEval_EvalCodeEx in
"/usr/lib64/libpython2.6.so.1.0"<BR>#23
PyEval_EvalFrameEx in
"/usr/lib64/libpython2.6.so.1.0"<BR>#24
PyEval_EvalCodeEx in
"/usr/lib64/libpython2.6.so.1.0"<BR>#25
PyEval_EvalFrameEx in
"/usr/lib64/libpython2.6.so.1.0"<BR>#26
PyEval_EvalCodeEx in
"/usr/lib64/libpython2.6.so.1.0"<BR>#27
PyEval_EvalFrameEx in
"/usr/lib64/libpython2.6.so.1.0"<BR>#28
PyEval_EvalCodeEx in
"/usr/lib64/libpython2.6.so.1.0"<BR>#29
PyEval_EvalFrameEx in
"/usr/lib64/libpython2.6.so.1.0"<BR>#30
PyEval_EvalFrameEx in
"/usr/lib64/libpython2.6.so.1.0"<BR>#31
PyEval_EvalCodeEx in
"/usr/lib64/libpython2.6.so.1.0"<BR>#32
PyEval_EvalCode in
"/usr/lib64/libpython2.6.so.1.0"<BR>#33 ?? in
"/usr/lib64/libpython2.6.so.1.0"<BR>#34
PyRun_StringFlags in
"/usr/lib64/libpython2.6.so.1.0"<BR>#35
PyRun_SimpleStringFlags in
"/usr/lib64/libpython2.6.so.1.0"<BR>#36
vtkPVPythonInterpretor::RunSimpleString(char const*)
in
"/users/boreas01/jacques/PARAVIEW/ParaView-bin/bin/libvtkPVPythonInterpretor.so"<BR>#37
vtkCPPythonScriptPipeline::CoProcess(vtkCPDataDescription*)
in
"/users/boreas01/jacques/PARAVIEW/ParaView-bin/bin/libvtkCoProcessor.so"<BR>#38
vtkCPProcessor::CoProcess(vtkCPDataDescription*) in
"/users/boreas01/jacques/PARAVIEW/ParaView-bin/bin/libvtkCoProcessor.so"<BR><BR>Any
ideas where this can be coming from ?<BR>When I do not
add the field data it just complains about missing
fields so I know that the code is not completely
wrong...<BR>I am adding the data to the first block of
my multiblockdataset... Is that a problem ?
<BR><BR><BR><BR>Thanks ! <BR>Jacques<BR><BR><BR>
<DIV class=gmail_quote>2010/8/12 Jacques Papper <SPAN
dir=ltr><<A href="mailto:jacques.papper@gmail.com"
target=_blank>jacques.papper@gmail.com</A>></SPAN>
<DIV>
<DIV></DIV>
<DIV><BR>
<BLOCKQUOTE class=gmail_quote
style="PADDING-LEFT: 1ex; MARGIN: 0pt 0pt 0pt 0.8ex; BORDER-LEFT: rgb(204,204,204) 1px solid">Hi
Andy, Pat,<BR><BR>I have the skeleton of the
coprocessing working (for the moment I just tried by
populating the point field - no cells, no
data).<BR>I am trying to figure out the most
efficient way of transferring my data structure to
VTK with minimal copying and looping... <BR>I would
like to use the vtkUnstructuredGrid::SetCells()
method, which means I probably need to use the
vtkCellArray::SetCells() method, and therefore the
vtkIdType::SetArray() method... <BR>The problem is I
am not sure what the format of the array should be
?<BR>I am dealing with unstructured polyhedra cells
(most of which are known types like hex prism
etc..). <BR><BR>Of course, I could also use the
InsertNextCell() methods, but I was wondering if
there wasn't a more efficient way...
<BR><BR>Best,<BR>Jacques<BR><BR><BR>
<DIV class=gmail_quote>2010/8/9 Andy Bauer <SPAN
dir=ltr><<A href="mailto:andy.bauer@kitware.com"
target=_blank>andy.bauer@kitware.com</A>></SPAN>
<DIV>
<DIV></DIV>
<DIV><BR>
<BLOCKQUOTE class=gmail_quote
style="PADDING-LEFT: 1ex; MARGIN: 0pt 0pt 0pt 0.8ex; BORDER-LEFT: rgb(204,204,204) 1px solid">Hi
Jacques,<BR><BR>I put an example on the wiki based
on Pat's example for running a coprocessing.
It's at:<BR><A
href="http://paraview.org/Wiki/Coprocessing_example#Python_Scripts"
target=_blank>http://paraview.org/Wiki/Coprocessing_example#Python_Scripts</A><BR>Let
me know if you have any problems with it so that I
can fix any errors that I have.<BR><BR>Also, I
just made changes so that the coprocessing library
gets installed properly.<BR><BR>Thanks,<BR><FONT
color=#888888>Andy</FONT>
<DIV>
<DIV></DIV>
<DIV><BR><BR>
<DIV class=gmail_quote>On Wed, Aug 4, 2010 at 7:21
PM, Jacques Papper <SPAN dir=ltr><<A
href="mailto:jacques.papper@gmail.com"
target=_blank>jacques.papper@gmail.com</A>></SPAN>
wrote:<BR>
<BLOCKQUOTE class=gmail_quote
style="PADDING-LEFT: 1ex; MARGIN: 0pt 0pt 0pt 0.8ex; BORDER-LEFT: rgb(204,204,204) 1px solid">Thanks
Pat, <BR><BR>I am trying to compile my first
attempt.<BR>Although I do find the headers I
need, I am having some trouble identifying which
libraries I need to link to. <BR>For example, I
assume that I should be linking to
libvtkCoProcessor.so ... Although I find this
library in the compilation folder (under bin), I
do not find it in the make installed version
under lib... <BR>Is this normal ? <BR><BR>Best,
<BR>Jacques<BR><BR>
<DIV class=gmail_quote>2010/8/4 pat marion <SPAN
dir=ltr><<A
href="mailto:pat.marion@kitware.com"
target=_blank>pat.marion@kitware.com</A>></SPAN>
<DIV>
<DIV></DIV>
<DIV><BR>
<BLOCKQUOTE class=gmail_quote
style="PADDING-LEFT: 1ex; MARGIN: 0pt 0pt 0pt 0.8ex; BORDER-LEFT: rgb(204,204,204) 1px solid">Below
is a simple cxx program I have used for
testing. It creates one sphere per
process, positions the sphere as a function of
the process id, and the spheres grow/shrink over
time.<BR><BR>Pat<BR><BR>#include
"vtkCPProcessor.h"<BR>#include
"vtkCPPythonScriptPipeline.h"<BR>#include
"vtkMultiProcessController.h"<BR>#include
"vtkXMLUnstructuredGridReader.h"<BR>#include
"vtkUnstructuredGrid.h"<BR>#include
"vtkCPDataDescription.h"<BR>#include
"vtkCPInputDataDescription.h"<BR>#include
"vtkSmartPointer.h"<BR>#include
"vtkPolyData.h"<BR>#include
"vtkSphereSource.h"<BR><BR>#include
<stdio.h><BR>#include
<string><BR>#include
<sstream><BR><BR>static unsigned int
procId;<BR><BR>void myprint(const
std::string& str)<BR>{<BR>
printf("driver (%u): %s\n", procId,
str.c_str());<BR>}<BR><BR>class DataGenerator
{<BR>public:<BR><BR>
DataGenerator()<BR>
{<BR> this->Sphere =
vtkSmartPointer<vtkSphereSource>::New();<BR>
this->Sphere->SetThetaResolution(30);<BR>
this->Sphere->SetPhiResolution(30);<BR>
this->Sphere->SetCenter(procId*4.0, 0,
0);<BR> this->Index =
0;<BR> }<BR><BR>
vtkSmartPointer<vtkPolyData>
GetNext()<BR>
{<BR> double radius =
fabs(sin(0.1 *
this->Index));<BR>
this->Index++;<BR>
this->Sphere->SetRadius(1.0 +
radius);<BR>
this->Sphere->Update();<BR>
vtkSmartPointer<vtkPolyData> ret =
vtkSmartPointer<vtkPolyData>::New();<BR>
ret->DeepCopy(this->Sphere->GetOutput());<BR>
return ret;<BR>
}<BR><BR>protected:<BR><BR> int
Index;<BR>
vtkSmartPointer<vtkSphereSource>
Sphere;<BR> <BR><BR>};<BR><BR>int main(int
argc, char* argv[])<BR>{<BR> if (argc <
3)<BR> {<BR>
printf("Usage: %s <cp python file>
<number of steps>\n",
argv[0]);<BR> return
1;<BR> }<BR><BR>
std::string cpPythonFile = argv[1];<BR>
int nSteps = atoi(argv[2]);<BR><BR>
myprint("starting coprocessor");<BR><BR>
vtkCPProcessor* processor =
vtkCPProcessor::New();<BR>
processor->Initialize();<BR>
vtkCPPythonScriptPipeline* pipeline =
vtkCPPythonScriptPipeline::New();<BR><BR>
// mpi was initialized when we called
vtkCPPythonScriptPipeline::New()<BR>
procId =
vtkMultiProcessController::GetGlobalController()->GetLocalProcessId();<BR><BR><BR>
// read the coprocessing python file<BR>
myprint("loading pipeline python file: " +
cpPythonFile);<BR> int success =
pipeline->Initialize(cpPythonFile.c_str());<BR>
if (!success)<BR>
{<BR>
myprint("aborting");<BR>
return 1;<BR> }<BR><BR>
processor->AddPipeline(pipeline);<BR>
pipeline->Delete();<BR><BR> if (nSteps
== 0)<BR>
{<BR> return
0;<BR> }<BR><BR> //
create a data source<BR> DataGenerator
generator;<BR><BR> // do
coprocessing<BR> double tStart =
0.0;<BR> double tEnd = 1.0;<BR>
double stepSize = (tEnd -
tStart)/nSteps;<BR><BR>
vtkCPDataDescription* dataDesc =
vtkCPDataDescription::New();<BR>
dataDesc->AddInput("input");<BR><BR>
for (int i = 0; i < nSteps;
++i)<BR>
{<BR><BR> double currentTime =
tStart + stepSize*i;<BR>
std::stringstream timeStr;<BR>
timeStr << "time(" << i << ",
" << currentTime <<
")";<BR><BR><BR>
dataDesc->SetTimeData(currentTime,
i);<BR><BR> myprint("call
RequestDataDescription, " +
timeStr.str());<BR> int
do_coprocessing =
processor->RequestDataDescription(dataDesc);<BR><BR>
if
(do_coprocessing)<BR>
{<BR>
myprint("calling CoProcess, " +
timeStr.str());<BR><BR>
vtkSmartPointer<vtkDataObject> dataObject
=<BR>
generator.GetNext();<BR><BR>
dataDesc->GetInputDescriptionByName("input")->SetGrid(dataObject);<BR>
processor->CoProcess(dataDesc);<BR>
}<BR> }<BR><BR><BR>
myprint("finalizing");<BR>
dataDesc->Delete();<BR>
processor->Finalize();<BR>
processor->Delete();<BR><BR> return 0;
<DIV>
<DIV></DIV>
<DIV><BR>}<BR><BR><BR><BR>
<DIV class=gmail_quote>On Wed, Aug 4, 2010 at
12:14 PM, Andy Bauer <SPAN dir=ltr><<A
href="mailto:andy.bauer@kitware.com"
target=_blank>andy.bauer@kitware.com</A>></SPAN>
wrote:<BR>
<BLOCKQUOTE class=gmail_quote
style="PADDING-LEFT: 1ex; MARGIN: 0pt 0pt 0pt 0.8ex; BORDER-LEFT: rgb(204,204,204) 1px solid">Hi
Jacques,<BR><BR>There is a polyhedra cell type
in VTK now -- <A
href="http://www.vtk.org/doc/nightly/html/classvtkPolyhedron.html"
target=_blank>http://www.vtk.org/doc/nightly/html/classvtkPolyhedron.html</A><BR>As
far as I know it works with all of the proper
filters but since I haven't tried it yet I won't
promise that. The good news is that Will
Schroeder had a high interest in it and probably
worked on some of it so I'd assume that it's
working quite well right now.<BR><BR>As for
Phasta, it does run in parallel (as props to
their developers it was a finalist for the 2009
Gordon Bell prize). The grid is already
partitioned and each process runs the adaptor
and creates an unstructured grid from its
portion of the partitioned mesh. Thus,
there isn't any need for mpi calls in the
adaptor code. If you had ghost cell
information in your partitioned mesh and wanted
to get fancy you should be able to add that to
your partitioned grid to make some of the
filters faster but I haven't tried
that.<BR><FONT color=#888888><BR>Andy</FONT>
<DIV>
<DIV></DIV>
<DIV><BR><BR>
<DIV class=gmail_quote>On Wed, Aug 4, 2010 at
11:58 AM, Jacques Papper <SPAN dir=ltr><<A
href="mailto:jacques.papper@gmail.com"
target=_blank>jacques.papper@gmail.com</A>></SPAN>
wrote:<BR>
<BLOCKQUOTE class=gmail_quote
style="PADDING-LEFT: 1ex; MARGIN: 0pt 0pt 0pt 0.8ex; BORDER-LEFT: rgb(204,204,204) 1px solid">Thanks
a lot Andy, Takuya,<BR><BR>I'm using the
PhastaAdaptor, and the FortranAdaptorAPI as a
guide for the moment. <BR>I know there were
talks of getting POLYHEDRAL cell support in VTK.
Do you know if this is there yet?<BR>My dataset
is multiregion unstructured polyhedral mesh
domain decomposed amongst each processor.
<BR><BR>Is the Phasta code parallelized ? If so,
I do not see any MPI statements in the adaptor
code ?<BR><BR>Jacques<BR><BR>
<DIV class=gmail_quote>2010/8/4 Andy Bauer <SPAN
dir=ltr><<A
href="mailto:andy.bauer@kitware.com"
target=_blank>andy.bauer@kitware.com</A>></SPAN>
<DIV>
<DIV></DIV>
<DIV><BR>
<BLOCKQUOTE class=gmail_quote
style="PADDING-LEFT: 1ex; MARGIN: 0pt 0pt 0pt 0.8ex; BORDER-LEFT: rgb(204,204,204) 1px solid">Hi
Jacques,<BR><BR>What type of data set do you
have? Even though the PHASTA adaptor (
ParaView/CoProcessing/Adaptors/FortranAdaptors/PhastaAdaptor)
is for fortran code it may give you an
idea. Also stepping through the example in
ParaView/CoProcessing/CoProcessor/Testing/Cxx/PythonScriptCoProcessingExample.cxx
may help as well.<BR><BR>I'll spend some time
this week putting up a skeleton of a simulation
code on the coprocessing wiki that should
hopefully be easier to follow. I'll let
you know when it's done.<BR><FONT
color=#888888><BR>Andy<BR><BR></FONT>
<DIV class=gmail_quote>
<DIV>
<DIV></DIV>
<DIV>On Wed, Aug 4, 2010 at 8:02 AM, Jacques
Papper <SPAN dir=ltr><<A
href="mailto:jacques.papper@gmail.com"
target=_blank>jacques.papper@gmail.com</A>></SPAN>
wrote:<BR></DIV></DIV>
<BLOCKQUOTE class=gmail_quote
style="PADDING-LEFT: 1ex; MARGIN: 0pt 0pt 0pt 0.8ex; BORDER-LEFT: rgb(204,204,204) 1px solid">
<DIV>
<DIV></DIV>
<DIV>Hi All,<BR><BR>Sorry for my last post, I
figured out that I had wrongly set my
PYTHONPATH.. <BR>All the tests work ok now.
Still interested in CoProcessing adaptors
examples though :) <BR><BR>Thanks
<BR>Jacques<BR><BR>
<DIV class=gmail_quote>2010/8/4 Jacques Papper
<SPAN dir=ltr><<A
href="mailto:jacques.papper@gmail.com"
target=_blank>jacques.papper@gmail.com</A>></SPAN>
<DIV>
<DIV></DIV>
<DIV><BR>
<BLOCKQUOTE class=gmail_quote
style="PADDING-LEFT: 1ex; MARGIN: 0pt 0pt 0pt 0.8ex; BORDER-LEFT: rgb(204,204,204) 1px solid"><BR>
<DIV class=gmail_quote>Hi All, <BR><BR>I'm
starting to look into the ParaView CoProcessing
libraries. <BR>I just pulled from git today, and
compiled it all up following the guidelines in
:<BR><A
href="http://www.paraview.org/Wiki/CoProcessing"
target=_blank>http://www.paraview.org/Wiki/CoProcessing</A><BR>I
didn't find
:<BR><B>BUILD_PYTHON_COPROCESSING_ADAPTOR<BR></B>but
instead
:<BR>PARAVIEW_BUILD_PLUGIN_CoProcessingScriptGenerator<BR>anyway
the compilation went through without any
issues.<BR>I then tried :<BR><BR>ctest -R
CoProcessing<BR>Test project
/users/boreas01/jacques/PARAVIEW/ParaView-bin<BR>
Start 491: CoProcessingTestPythonScript<BR>1/3
Test #491: CoProcessingTestPythonScript
........... Passed
0.45 sec<BR> Start 492:
CoProcessingPythonScriptGridPlot<BR>2/3 Test
#492: CoProcessingPythonScriptGridPlot
.......***Failed 0.09
sec<BR> Start 493:
CoProcessingPythonScriptPressurePlot<BR>3/3 Test
#493: CoProcessingPythonScriptPressurePlot
...***Failed 0.09
sec<BR><BR>33% tests passed, 2 tests failed out
of 3<BR><BR>Total Test time (real) =
0.68 sec<BR><BR>The following tests
FAILED:<BR>
492 - CoProcessingPythonScriptGridPlot
(Failed)<BR>
493 - CoProcessingPythonScriptPressurePlot
(Failed)<BR>Errors while running CTest<BR><BR>Is
this a problem in my current installation or on
the master branch ? <BR><BR>Finally, I would
like to start writing an adaptor to a C++
parallelised code. Can you tell me what is the
closest code I can inspire myself from ?
<BR><BR><BR>Thank you, <BR><FONT
color=#888888><FONT
color=#888888>Jacques<BR></FONT></FONT></DIV><BR><BR>PS
sorry mixed up the subjects..
<BR></BLOCKQUOTE></DIV></DIV></DIV><BR><BR></DIV></DIV>
<DIV>_______________________________________________<BR>Powered
by <A href="http://www.kitware.com"
target=_blank>www.kitware.com</A><BR><BR>Visit
other Kitware open-source projects at <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 ParaView
Wiki at: <A
href="http://paraview.org/Wiki/ParaView"
target=_blank>http://paraview.org/Wiki/ParaView</A><BR><BR>Follow
this link to subscribe/unsubscribe:<BR><A
href="http://www.paraview.org/mailman/listinfo/paraview"
target=_blank>http://www.paraview.org/mailman/listinfo/paraview</A><BR><BR></DIV></BLOCKQUOTE></DIV><BR></BLOCKQUOTE></DIV></DIV></DIV><BR></BLOCKQUOTE></DIV><BR></DIV></DIV><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 <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 ParaView
Wiki at: <A
href="http://paraview.org/Wiki/ParaView"
target=_blank>http://paraview.org/Wiki/ParaView</A><BR><BR>Follow
this link to subscribe/unsubscribe:<BR><A
href="http://www.paraview.org/mailman/listinfo/paraview"
target=_blank>http://www.paraview.org/mailman/listinfo/paraview</A><BR><BR></BLOCKQUOTE></DIV><BR></DIV></DIV></BLOCKQUOTE></DIV></DIV></DIV><BR></BLOCKQUOTE></DIV><BR></DIV></DIV></BLOCKQUOTE></DIV></DIV></DIV><BR></BLOCKQUOTE></DIV></DIV></DIV><BR></BLOCKQUOTE></DIV><BR></DIV></DIV></BLOCKQUOTE></DIV><BR></BLOCKQUOTE></DIV></DIV></DIV><BR></BLOCKQUOTE></DIV></DIV></DIV><BR></BLOCKQUOTE></DIV><BR></DIV></DIV></BLOCKQUOTE></DIV></DIV></DIV><BR></BLOCKQUOTE></DIV><BR></DIV></DIV></BLOCKQUOTE></DIV><BR></DIV></DIV></BLOCKQUOTE></DIV></DIV></DIV><BR></BLOCKQUOTE></DIV><BR></DIV></DIV></BLOCKQUOTE></DIV></DIV></DIV><BR></BLOCKQUOTE></DIV></DIV></DIV><BR></DIV><BR></DIV></DIV><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 <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 ParaView Wiki at: <A
href="http://paraview.org/Wiki/ParaView"
target=_blank>http://paraview.org/Wiki/ParaView</A><BR><BR>Follow this link to
subscribe/unsubscribe:<BR><A
href="http://www.paraview.org/mailman/listinfo/paraview"
target=_blank>http://www.paraview.org/mailman/listinfo/paraview</A><BR><BR></BLOCKQUOTE></DIV><BR><p>**********************************************************************<br />This email contains information that is private and confidential and is intended only for the addressee.<br />If you are not the intended recipient please delete it and notify us immediately by e-mailing the sender.<br />Note: All email sent to or from this address may be accessed by someone other than the recipient, for<br />system management and security reasons.<br />Aircraft Research Association Ltd. Registered in England, Registration No 503668 Registered Office:<br />Manton Lane, Bedford MK41 7PF England VAT No GB 196351245</p><p>**********************************************************************</p>
</BODY></HTML>