Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Modules
Visualization
Commits
83337970
Commit
83337970
authored
Mar 23, 2009
by
Mark Olesen
Browse files
#undef VTKPV3FOAM_DUALPORT to disable dual-port output for paraview reader
parent
b1a15105
Changes
3
Hide whitespace changes
Inline
Side-by-side
src/paraview-plugins/PV3FoamReader/PV3FoamReader/vtkPV3FoamReader.cxx
View file @
83337970
...
...
@@ -50,6 +50,7 @@ vtkPV3FoamReader::vtkPV3FoamReader()
output0_
=
NULL
;
#ifdef VTKPV3FOAM_DUALPORT
// Add second output for the Lagrangian
this
->
SetNumberOfOutputPorts
(
2
);
vtkMultiBlockDataSet
*
lagrangian
=
vtkMultiBlockDataSet
::
New
();
...
...
@@ -57,6 +58,7 @@ vtkPV3FoamReader::vtkPV3FoamReader()
this
->
GetExecutive
()
->
SetOutputData
(
1
,
lagrangian
);
lagrangian
->
Delete
();
#endif
TimeStepRange
[
0
]
=
0
;
TimeStepRange
[
1
]
=
0
;
...
...
@@ -319,15 +321,6 @@ int vtkPV3FoamReader::RequestData
)
);
vtkMultiBlockDataSet
*
lagrangianOutput
=
vtkMultiBlockDataSet
::
SafeDownCast
(
outputVector
->
GetInformationObject
(
1
)
->
Get
(
vtkMultiBlockDataSet
::
DATA_OBJECT
()
)
);
if
(
Foam
::
vtkPV3Foam
::
debug
)
{
cout
<<
"update output with "
...
...
@@ -376,7 +369,21 @@ int vtkPV3FoamReader::RequestData
#else
foamData_
->
Update
(
output
,
lagrangianOutput
);
#ifdef VTKPV3FOAM_DUALPORT
foamData_
->
Update
(
output
,
vtkMultiBlockDataSet
::
SafeDownCast
(
outputVector
->
GetInformationObject
(
1
)
->
Get
(
vtkMultiBlockDataSet
::
DATA_OBJECT
()
)
);
);
#else
foamData_
->
Update
(
output
,
output
);
#endif
if
(
ShowPatchNames
)
{
...
...
src/paraview-plugins/PV3FoamReader/vtkPV3Foam/vtkPV3Foam.C
View file @
83337970
...
...
@@ -465,7 +465,6 @@ void Foam::vtkPV3Foam::Update
cout
<<
"<beg> Foam::vtkPV3Foam::Update - output with "
<<
output
->
GetNumberOfBlocks
()
<<
" and "
<<
lagrangianOutput
->
GetNumberOfBlocks
()
<<
" blocks
\n
"
;
output
->
Print
(
cout
);
lagrangianOutput
->
Print
(
cout
);
printMemory
();
...
...
@@ -504,8 +503,10 @@ void Foam::vtkPV3Foam::Update
reader_
->
UpdateProgress
(
0
.
7
);
}
#ifdef VTKPV3FOAM_DUALPORT
// restart port1 at block=0
blockNo
=
0
;
#endif
convertMeshLagrangian
(
lagrangianOutput
,
blockNo
);
reader_
->
UpdateProgress
(
0
.
8
);
...
...
src/paraview-plugins/PV3FoamReader/vtkPV3Foam/vtkPV3Foam.H
View file @
83337970
...
...
@@ -71,6 +71,8 @@ SourceFiles
#include
"PrimitivePatchInterpolation.H"
#include
"volPointInterpolation.H"
#undef VTKPV3FOAM_DUALPORT
// * * * * * * * * * * * * * Forward Declarations * * * * * * * * * * * * * //
class
vtkDataArraySelection
;
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment