Commit eaaa10c6 authored by Yohann Bearzi's avatar Yohann Bearzi
Browse files

Ghost cells generator: backend change

The ghost cells generator, which used to only work for
vtkUnstructuredGrid, is now replaced by the new ghost cells generator
that works on vtkImageData, vtkRectilinearGrid, vtkStructuredGrid,
vtkUnstructuredGrid, and any vtkMultiBlockDataSet,
vtkPartitionedDataSet, and vtkPartitionedDataSetCollection composed of
the latter base types.

The old backend is being removed.
parent ff3bba1f
Pipeline #237488 waiting for manual action with stages
......@@ -363,7 +363,6 @@
<Proxy group="filters" name="TransposeTable" />
<Proxy group="filters" name="TriangleFilter" />
<Proxy group="filters" name="TubeFilter" />
<Proxy group="filters" name="UniversalGhostCellsGenerator" />
<Proxy group="filters" name="UnstructuredGradient" />
<Proxy group="filters" name="ValidateCells" />
<Proxy group="filters" name="VortexCores" />
......
......@@ -9,5 +9,5 @@ composite = GroupDatasets(Input=[wavelet1, wavelet2])
# We test if the ghost cells generator can be instantiated for composite data sets as well as
# data sets
generator1 = UniversalGhostCellsGenerator(Input=composite)
generator2 = UniversalGhostCellsGenerator(Input=wavelet1)
generator1 = GhostCellsGenerator(Input=composite)
generator2 = GhostCellsGenerator(Input=wavelet1)
......@@ -1701,86 +1701,6 @@
</InputProperty>
</SourceProxy>
<!-- ==================================================================== -->
<SourceProxy class="vtkUnstructuredGridGhostCellsGenerator"
label="Ghost Cells Generator"
name="GhostCellsGenerator">
<Documentation long_help="Generate ghost cells for unstructured grids."
short_help="Generate ghost cells for unstructured grids.">
The GhostCellGenerator operates on unstructured grids only.
This filter does not redistribute the input data, it only
generates ghost cells at processor boundaries by fetching
topological and geometrical information of those cells on
neighbor ranks. The filter can take advantage of global point
ids if they are available - if so it will perform faster,
otherwise point coordinates will be exchanged and processed.
</Documentation>
<InputProperty command="SetInputConnection"
name="Input">
<ProxyGroupDomain name="groups">
<Group name="sources" />
<Group name="filters" />
</ProxyGroupDomain>
<DataTypeDomain name="input_type" composite_data_supported="0">
<DataType value="vtkUnstructuredGrid" />
</DataTypeDomain>
<Documentation>This property specifies the input to the ghost cells
generator.</Documentation>
</InputProperty>
<IntVectorProperty command="SetBuildIfRequired"
default_values="0"
name="BuildIfRequired"
number_of_elements="1">
<Documentation>Specify if the filter must generate the ghost cells only
if required by the pipeline downstream. To force at least a fixed level
of ghosts, this must be set to 0 (unchecked).</Documentation>
<BooleanDomain name="bool" />
</IntVectorProperty>
<IntVectorProperty command="SetMinimumNumberOfGhostLevels"
number_of_elements="1"
default_values="1"
name="MinimumNumberOfGhostLevels">
<IntRangeDomain name="range" min="1" max="10" />
<Documentation>
When **BuildIfRequired** if off, use this to specify the minimum number of
ghost cells to request. The filter may request more ghost levels than indicated if a
downstream filter asked for more ghost levels.
</Documentation>
<Hints>
<PropertyWidgetDecorator type="GenericDecorator"
mode="enabled_state"
property="BuildIfRequired"
value="0" />
<!-- if BuildIfRequired !=0 , we disable this property -->
</Hints>
</IntVectorProperty>
<IntVectorProperty command="SetUseGlobalPointIds"
default_values="1"
name="UseGlobalIds"
number_of_elements="1"
panel_visibility="advanced">
<Documentation>Specify if the filter must take benefit of global point
ids if they exist or if point coordinates should be used instead.
</Documentation>
<BooleanDomain name="bool" />
</IntVectorProperty>
<StringVectorProperty command="SetGlobalPointIdsArrayName"
default_values="GlobalNodeIds"
name="GlobalPointIdsArrayName"
number_of_elements="1"
panel_visibility="never">
<Documentation>This property provides the name for the input array
containing the global point ids if the GlobalIds array of the point
data if not set. Default is GlobalNodeIds.</Documentation>
<Hints>
<PropertyWidgetDecorator type="ShowWidgetDecorator">
<Property name="UseGlobalIds" function="boolean" />
</PropertyWidgetDecorator>
</Hints>
</StringVectorProperty>
<!-- End vtkPUnstructuredGridGhostCellsGenerator -->
</SourceProxy>
<!-- ==================================================================== -->
<SourceProxy class="vtkPExtractExodusGlobalTemporalVariables"
label="Plot Global Variables Over Time"
......
......@@ -86,12 +86,15 @@
<!-- ==================================================================== -->
<SourceProxy class="vtkGhostCellsGenerator"
label="Universal Ghost Cells Generator"
name="UniversalGhostCellsGenerator">
label="Ghost Cells Generator"
name="GhostCellsGenerator">
<Documentation short_help="Generate ghosts.">
Generate ghost cells and ghost points in a composite data set. Ghosts are exchanged
between blocks / partitions of same type. Currently, only vtkImageData, vtkRectilinearGrid
and vtkStructuredGrid are implemented.
between blocks / partitions of same type. Currently, vtkImageData, vtkRectilinearGrid,
vtkStructuredGrid and vtkUnstructuredGrid are supported. Those input types can be
dispatched in vtkPartitionedDataSet or vtkPartitionedDataSetCollection. Inside a,
collection, 2 partitioned data sets do not exchange ghosts, but partitions inside a
partitioned data set do.
</Documentation>
<InputProperty command="SetInputConnection"
name="Input">
......@@ -107,9 +110,34 @@
</InputProperty>
<IntVectorProperty command="SetNumberOfGhostLayers"
default_values="1"
name="Number Of Ghost Layers"
name="MinimumNumberOfGhosts"
number_of_elements="1"
panel_visibility="default">
<Documentation>
When **BuildIfRequired** if off, use this to specify the minimum number of
ghost cells to request. The filter may request more ghost levels than indicated if a
downstream filter asked for more ghost levels.
</Documentation>
<IntRangeDomain name="range" min="1" max="100"/>
<Hints>
<PropertyWidgetDecorator type="GenericDecorator"
mode="visibility"
property="BuildIfRequired"
value="0">
</PropertyWidgetDecorator>
</Hints>
</IntVectorProperty>
<IntVectorProperty command="SetBuildIfRequired"
default_values="0"
name="BuildIfRequired"
number_of_elements="1">
<Documentation>
Specify if the filter must generate the ghost cells only
if required by the pipeline downstream. To force at least a fixed level
of ghosts, this must be set to 0 (unchecked).
</Documentation>
panel_visibility="advanced">
<BooleanDomain name="bool" />
</IntVectorProperty>
<!-- End CompositeDataSetGhostCellsGenerator -->
</SourceProxy>
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment