[Paraview] AMR Contour

George Zagaris george.zagaris at kitware.com
Thu Oct 10 20:13:22 EDT 2013


Hi Matt,

I have inlined some responses below.

On Thu, Oct 10, 2013 at 4:33 PM, Matt <mat72 at gmx.com> wrote:

> Well it seems that for AMR data (vtkHierarchicalBoxDataSet), the common
> filter 'Contour' can be used, provided that the dataset is properly
> converted to point data (with 'Cell Data to Point Data' filter).

However the contour lines are not continuous and the common 'Contour'
> filter doesn't seem to account the composite field, only the fields on
> individual patches.


That's right, the common contour filter, contours each patch individually
and therefore
you get cracks across patch interfaces. If you don't care much about
producing a water-tight
contour surface (I am assuming your data is 3-D), one potential quick and
dirty solution could
be to extrude the boundaries of each patch (let's say by one layer of
cells) and contour that. This
approach will still produce cracks, but depending on your end goals, it
might be sufficient.



> I guess 'AMR Contour' (which crashes with my data)
> is intended to work with the composite solution?
>

Yes, that is contouring the dual and it will stitch the contours across
patch interfaces. However, to the best of my knowledge this is intended for
non-overlapping AMR, which is probably why you are running to problems.

Would it be possible to share a sample dataset with us? I have worked on a
dual-grid algorithm for overlapping, patch-based AMR and I can try to look
in to this.

Best,
George




>
> On Sun, Oct 06, 2013 at 04:30:59PM +0200, Matt wrote:
> > Hi,
> >
> > I am having trouble to use 'AMR Contour' filter. I have tried with two
> > versions of ParaView (3.8 on Linux 2.6.18 amd64 and 4.1 on Windows XP
> > x86) and every time it results in a segfault. The problem can be
> > reproduced by using 'Hierarchical Fractal' source as AMR dataset and
> > then applying 'AMR Contour' filter. I face the same issues with datasets
> > generated by my own code or from other codes.
> >
> > Here is the backtrace for me:
> >
> >   *** glibc detected ***
> ParaView-3.8.1-Linux-x86_64/lib/paraview-3.8/paraview: free(): invalid
> pointer: 0x000000001aa82e90 ***
> >
> >   ======= Backtrace: =========
> >   /lib64/libc.so.6[0x3879a711df]
> >   /lib64/libc.so.6(cfree+0x4b)[0x3879a7163b]
> >
> ParaView-3.8.1-Linux-x86_64/lib/paraview-3.8/libvtkPVFilters.so(_ZN25vtkAMRDualGridHelperLevel12AddGridBlockEiiiP12vtkImageData+0x1a9)[0x2acacaa7e1e9]
> >
> ParaView-3.8.1-Linux-x86_64/lib/paraview-3.8/libvtkPVFilters.so(_ZN20vtkAMRDualGridHelper8AddBlockEiP12vtkImageData+0x11d)[0x2acacaa7e57d]
> >
> ParaView-3.8.1-Linux-x86_64/lib/paraview-3.8/libvtkPVFilters.so(_ZN20vtkAMRDualGridHelper10InitializeEP25vtkHierarchicalBoxDataSetPKc+0x111)[0x2acacaa7ed91]
> >
> ParaView-3.8.1-Linux-x86_64/lib/paraview-3.8/libvtkPVFilters.so(_ZN17vtkAMRDualContour11RequestDataEP14vtkInformationPP20vtkInformationVectorS3_+0x179)[0x2acacaa77429]
> >
> ParaView-3.8.1-Linux-x86_64/lib/paraview-3.8/libvtkFiltering.so.pv3.8(_ZN12vtkExecutive13CallAlgorithmEP14vtkInformationiPP20vtkInformationVectorS3_+0x54)[0x2acacfbe23c4]
> >
> ParaView-3.8.1-Linux-x86_64/lib/paraview-3.8/libvtkFiltering.so.pv3.8(_ZN23vtkDemandDrivenPipeline11ExecuteDataEP14vtkInformationPP20vtkInformationVectorS3_+0x4c)[0x2acacfbd5f1c]
> >
> ParaView-3.8.1-Linux-x86_64/lib/paraview-3.8/libvtkFiltering.so.pv3.8(_ZN24vtkCompositeDataPipeline11ExecuteDataEP14vtkInformationPP20vtkInformationVectorS3_+0xc7)[0x2acacfbb7f87]
> >
> ParaView-3.8.1-Linux-x86_64/lib/paraview-3.8/libvtkFiltering.so.pv3.8(_ZN23vtkDemandDrivenPipeline14ProcessRequestEP14vtkInformationPP20vtkInformationVectorS3_+0x293)[0x2acacfbd8ea3]
> >
> ParaView-3.8.1-Linux-x86_64/lib/paraview-3.8/libvtkFiltering.so.pv3.8(_ZN32vtkStreamingDemandDrivenPipeline14ProcessRequestEP14vtkInformationPP20vtkInformationVectorS3_+0x19c)[0x2acacfcd970c]
> >
> ParaView-3.8.1-Linux-x86_64/lib/paraview-3.8/libvtkFiltering.so.pv3.8(_ZN24vtkCompositeDataPipeline14ProcessRequestEP14vtkInformationPP20vtkInformationVectorS3_+0x79)[0x2acacfbb85a9]
> >
> ParaView-3.8.1-Linux-x86_64/lib/paraview-3.8/libvtkFiltering.so.pv3.8(_ZN23vtkDemandDrivenPipeline10UpdateDataEi+0x9e)[0x2acacfbd7a9e]
> >
> ParaView-3.8.1-Linux-x86_64/lib/paraview-3.8/libvtkFiltering.so.pv3.8(_ZN32vtkStreamingDemandDrivenPipeline6UpdateEi+0x7b)[0x2acacfcd8efb]
> >
> ParaView-3.8.1-Linux-x86_64/lib/paraview-3.8/libvtkFilteringCS.so(_Z19vtkAlgorithmCommandP26vtkClientServerInterpreterP13vtkObjectBasePKcRK21vtkClientServerStreamRS5_+0x1a5b)[0x2acacd875a4b]
> >
> ParaView-3.8.1-Linux-x86_64/lib/paraview-3.8/libvtkFilteringCS.so(_Z36vtkMultiBlockDataSetAlgorithmCommandP26vtkClientServerInterpreterP13vtkObjectBasePKcRK21vtkClientServerStreamRS5_+0x205)[0x2acacd8cb015]
> >
> ParaView-3.8.1-Linux-x86_64/lib/paraview-3.8/libvtkPVFiltersCS.so(_Z24vtkAMRDualContourCommandP26vtkClientServerInterpreterP13vtkObjectBasePKcRK21vtkClientServerStreamRS5_+0x699)[0x2acaca7be5c9]
> >
> ParaView-3.8.1-Linux-x86_64/lib/paraview-3.8/libvtkClientServer.so(_ZN26vtkClientServerInterpreter20ProcessCommandInvokeERK21vtkClientServerStreami+0x16c)[0x2acacdc11a7c]
> >
> ParaView-3.8.1-Linux-x86_64/lib/paraview-3.8/libvtkClientServer.so(_ZN26vtkClientServerInterpreter17ProcessOneMessageERK21vtkClientServerStreami+0x37f)[0x2acacdc123ef]
> >
> ParaView-3.8.1-Linux-x86_64/lib/paraview-3.8/libvtkClientServer.so(_ZN26vtkClientServerInterpreter13ProcessStreamERK21vtkClientServerStream+0x1d)[0x2acacdc128ad]
> >
> ParaView-3.8.1-Linux-x86_64/lib/paraview-3.8/libvtkPVServerCommon.so(_ZN17vtkSelfConnection20ProcessStreamLocallyER21vtkClientServerStream+0x20)[0x2acacb2c3920]
> >
> ParaView-3.8.1-Linux-x86_64/lib/paraview-3.8/libvtkPVServerCommon.so(_ZN26vtkProcessModuleConnection10SendStreamEjR21vtkClientServerStream+0x61)[0x2acacb26f641]
> >
> ParaView-3.8.1-Linux-x86_64/lib/paraview-3.8/libvtkPVServerCommon.so(_ZN33vtkProcessModuleConnectionManager10SendStreamEijR21vtkClientServerStreami+0x39)[0x2acacb271989]
> >
> ParaView-3.8.1-Linux-x86_64/lib/paraview-3.8/libvtkPVServerCommon.so(_ZN16vtkProcessModule10SendStreamEijR21vtkClientServerStreami+0x63)[0x2acacb276bb3]
> >
> ParaView-3.8.1-Linux-x86_64/lib/paraview-3.8/libvtkPVServerManager.so(_ZN15vtkSMOutputPort22UpdatePipelineInternalEdb+0x1f2)[0x2acac707b062]
> >
> ParaView-3.8.1-Linux-x86_64/lib/paraview-3.8/libvtkPVServerManager.so(_ZN16vtkSMSourceProxy14UpdatePipelineEd+0x4d)[0x2acac70ecfed]
> >
> ParaView-3.8.1-Linux-x86_64/lib/paraview-3.8/libpqCore.so(_ZNK15pqDisplayPolicy20getPreferredViewTypeEP12pqOutputPortb+0x1a1)[0x2acac59e2da1]
> >
> ParaView-3.8.1-Linux-x86_64/lib/paraview-3.8/libpqCore.so(_ZNK15pqDisplayPolicy16getPreferredViewEP12pqOutputPortP6pqView+0x43)[0x2acac59e2a33]
> >
> ParaView-3.8.1-Linux-x86_64/lib/paraview-3.8/libpqCore.so(_ZNK15pqDisplayPolicy29createPreferredRepresentationEP12pqOutputPortP6pqViewb+0x38)[0x2acac59e2758]
> >
> ParaView-3.8.1-Linux-x86_64/lib/paraview-3.8/libpqComponents.so(_ZN23pqObjectInspectorWidget4showEP16pqPipelineSource+0x6c)[0x2acac54ffbfc]
> >
> ParaView-3.8.1-Linux-x86_64/lib/paraview-3.8/libpqComponents.so(_ZN23pqObjectInspectorWidget6acceptEv+0x326)[0x2acac5500316]
> >
> ParaView-3.8.1-Linux-x86_64/lib/paraview-3.8/libpqComponents.so(_ZN23pqObjectInspectorWidget11qt_metacallEN11QMetaObject4CallEiPPv+0x126)[0x2acac55d2ce6]
> >
> ParaView-3.8.1-Linux-x86_64/lib/paraview-3.8/libQtCore.so.4(_ZN11QMetaObject8activateEP7QObjectPKS_iPPv+0x219)[0x2acaca250ac9]
> >
> ParaView-3.8.1-Linux-x86_64/lib/paraview-3.8/libQtGui.so.4(_ZN15QAbstractButton7clickedEb+0x32)[0x2acac964b5d2]
> >
> ParaView-3.8.1-Linux-x86_64/lib/paraview-3.8/libQtGui.so.4[0x2acac93692eb]
> >
> ParaView-3.8.1-Linux-x86_64/lib/paraview-3.8/libQtGui.so.4[0x2acac936a855]
> >
> ParaView-3.8.1-Linux-x86_64/lib/paraview-3.8/libQtGui.so.4(_ZN15QAbstractButton17mouseReleaseEventEP11QMouseEvent+0x7b)[0x2acac936aaab]
> >
> ParaView-3.8.1-Linux-x86_64/lib/paraview-3.8/libQtGui.so.4(_ZN7QWidget5eventEP6QEvent+0xba1)[0x2acac901ecf1]
> >
> ParaView-3.8.1-Linux-x86_64/lib/paraview-3.8/libQtGui.so.4(_ZN15QAbstractButton5eventEP6QEvent+0x3f)[0x2acac9369d6f]
> >
> ParaView-3.8.1-Linux-x86_64/lib/paraview-3.8/libQtGui.so.4(_ZN11QPushButton5eventEP6QEvent+0x3d)[0x2acac940477d]
> >
> ParaView-3.8.1-Linux-x86_64/lib/paraview-3.8/libQtGui.so.4(_ZN19QApplicationPrivate13notify_helperEP7QObjectP6QEvent+0xae)[0x2acac8fc412e]
> >
> ParaView-3.8.1-Linux-x86_64/lib/paraview-3.8/libQtGui.so.4(_ZN12QApplication6notifyEP7QObjectP6QEvent+0x3d7)[0x2acac8fc7c37]
> >
> ParaView-3.8.1-Linux-x86_64/lib/paraview-3.8/libQtCore.so.4(_ZN16QCoreApplication14notifyInternalEP7QObjectP6QEvent+0x83)[0x2acaca23d653]
> >
> ParaView-3.8.1-Linux-x86_64/lib/paraview-3.8/libQtGui.so.4(_ZN19QApplicationPrivate14sendMouseEventEP7QWidgetP11QMouseEventS1_S1_PS1_R8QPointerIS0_Eb+0x136)[0x2acac8fc6fc6]
> >
> ParaView-3.8.1-Linux-x86_64/lib/paraview-3.8/libQtGui.so.4[0x2acac9046714]
> >
> ParaView-3.8.1-Linux-x86_64/lib/paraview-3.8/libQtGui.so.4(_ZN12QApplication15x11ProcessEventEP7_XEvent+0x672)[0x2acac9044e82]
> >
> ParaView-3.8.1-Linux-x86_64/lib/paraview-3.8/libQtGui.so.4[0x2acac906e222]
> >   /lib64/libglib-2.0.so.0(g_main_context_dispatch+0x1b4)[0x387f62cdb4]
> >   /lib64/libglib-2.0.so.0[0x387f62fc0d]
> >   /lib64/libglib-2.0.so.0(g_main_context_iteration+0x6e)[0x387f63011e]
> >
> ParaView-3.8.1-Linux-x86_64/lib/paraview-3.8/libQtCore.so.4(_ZN20QEventDispatcherGlib13processEventsE6QFlagsIN10QEventLoop17ProcessEventsFlagEE+0x65)[0x2acaca268285]
> >
> ParaView-3.8.1-Linux-x86_64/lib/paraview-3.8/libQtGui.so.4[0x2acac906e04f]
> >
> ParaView-3.8.1-Linux-x86_64/lib/paraview-3.8/libQtCore.so.4(_ZN10QEventLoop13processEventsE6QFlagsINS_17ProcessEventsFlagEE+0x35)[0x2acaca23c8f5]
> >
> ParaView-3.8.1-Linux-x86_64/lib/paraview-3.8/libQtCore.so.4(_ZN10QEventLoop4execE6QFlagsINS_17ProcessEventsFlagEE+0xac)[0x2acaca23cc4c]
> >
> ParaView-3.8.1-Linux-x86_64/lib/paraview-3.8/libQtCore.so.4(_ZN16QCoreApplication4execEv+0xbb)[0x2acaca23e9ab]
> >
> ParaView-3.8.1-Linux-x86_64/lib/paraview-3.8/paraview(main+0x155)[0x4065a5]
> >   /lib64/libc.so.6(__libc_start_main+0xf4)[0x3879a1d994]
> >
> ParaView-3.8.1-Linux-x86_64/lib/paraview-3.8/paraview(_ZN11QMainWindow5eventEP6QEvent+0x4a)[0x4063ba]
> >
> > Is there anything I missed with respect to the dataset or to the
> > parameters of the filter?
> >
> > _______________________________________________
> > 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://www.paraview.org/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
>
> Follow this link to subscribe/unsubscribe:
> http://www.paraview.org/mailman/listinfo/paraview
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.paraview.org/pipermail/paraview/attachments/20131010/a391eb04/attachment.htm>


More information about the ParaView mailing list