From c52b20b10daf28bb4b8dbada2040afa11d80a133 Mon Sep 17 00:00:00 2001 From: andy <a.heather@opencfd.co.uk> Date: Mon, 16 Jun 2008 11:30:13 +0100 Subject: [PATCH] Updating time selection --- .../PV3FoamReader/PV3FoamReader_SM.xml | 3 +- .../PV3FoamReader/vtkPV3Foam/vtkPV3Foam.C | 35 ++----------------- 2 files changed, 4 insertions(+), 34 deletions(-) diff --git a/applications/utilities/postProcessing/graphics/PV3FoamReader/PV3FoamReader/PV3FoamReader_SM.xml b/applications/utilities/postProcessing/graphics/PV3FoamReader/PV3FoamReader/PV3FoamReader_SM.xml index 2ade90c00fb..c54cc2d45db 100644 --- a/applications/utilities/postProcessing/graphics/PV3FoamReader/PV3FoamReader/PV3FoamReader_SM.xml +++ b/applications/utilities/postProcessing/graphics/PV3FoamReader/PV3FoamReader/PV3FoamReader_SM.xml @@ -233,7 +233,7 @@ </StringVectorProperty> <!-- Available times array --> - <StringVectorProperty +<!-- <StringVectorProperty name="TimeArrayInfo" information_only="1"> <ArraySelectionInformationHelper @@ -255,6 +255,7 @@ </RequiredProperties> </ArraySelectionDomain> </StringVectorProperty> +--> </SourceProxy> </ProxyGroup> diff --git a/applications/utilities/postProcessing/graphics/PV3FoamReader/vtkPV3Foam/vtkPV3Foam.C b/applications/utilities/postProcessing/graphics/PV3FoamReader/vtkPV3Foam/vtkPV3Foam.C index 14961222ab9..9b071b2fc56 100644 --- a/applications/utilities/postProcessing/graphics/PV3FoamReader/vtkPV3Foam/vtkPV3Foam.C +++ b/applications/utilities/postProcessing/graphics/PV3FoamReader/vtkPV3Foam/vtkPV3Foam.C @@ -194,14 +194,6 @@ void Foam::vtkPV3Foam::initializeTime() return; } - // preserve the currently selected values - const stringList selectedEntries = getSelectedArrayEntries - ( - arraySelection - ); - // Clear current time lists - arraySelection->RemoveAllArrays(); - // "constant" is implicit - skip it // All the time selections are enabled by default for (label timeI = 1; timeI < times.size(); ++timeI) @@ -211,29 +203,6 @@ void Foam::vtkPV3Foam::initializeTime() times[timeI].name().c_str() ); } - - // TODO: select latestTime from the current selections - // restore selections - if (selectedEntries.size()) - { - // Update time selection according to the data just read in - setSelectedArrayEntries - ( - arraySelection, - selectedEntries - ); - - Info << "last selected: " << selectedEntries[selectedEntries.size()-1] << endl; - } - -/* - if (debug) - { - Info<< "Selecting time " << times[timeIndex].name() << endl; - } - - runTime.setTime(times[timeIndex], timeIndex); - */ } @@ -616,7 +585,7 @@ void Foam::vtkPV3Foam::Update cout<<"Internally:\n"; output_->Print(cout); - + cout<< " has " << output_->GetNumberOfBlocks() << " blocks\n"; } @@ -687,7 +656,7 @@ void Foam::vtkPV3Foam::Update output_->Print(cout); cout<< " has " << output_->GetNumberOfBlocks() << " blocks\n"; output_->GetInformation()->Print(cout); - + cout <<"ShouldIReleaseData :" << output_->ShouldIReleaseData() << "\n"; } } -- GitLab