mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
Updating time selection
This commit is contained in:
@ -233,7 +233,7 @@
|
|||||||
</StringVectorProperty>
|
</StringVectorProperty>
|
||||||
|
|
||||||
<!-- Available times array -->
|
<!-- Available times array -->
|
||||||
<StringVectorProperty
|
<!-- <StringVectorProperty
|
||||||
name="TimeArrayInfo"
|
name="TimeArrayInfo"
|
||||||
information_only="1">
|
information_only="1">
|
||||||
<ArraySelectionInformationHelper
|
<ArraySelectionInformationHelper
|
||||||
@ -255,6 +255,7 @@
|
|||||||
</RequiredProperties>
|
</RequiredProperties>
|
||||||
</ArraySelectionDomain>
|
</ArraySelectionDomain>
|
||||||
</StringVectorProperty>
|
</StringVectorProperty>
|
||||||
|
-->
|
||||||
|
|
||||||
</SourceProxy>
|
</SourceProxy>
|
||||||
</ProxyGroup>
|
</ProxyGroup>
|
||||||
|
|||||||
@ -194,14 +194,6 @@ void Foam::vtkPV3Foam::initializeTime()
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
// preserve the currently selected values
|
|
||||||
const stringList selectedEntries = getSelectedArrayEntries
|
|
||||||
(
|
|
||||||
arraySelection
|
|
||||||
);
|
|
||||||
// Clear current time lists
|
|
||||||
arraySelection->RemoveAllArrays();
|
|
||||||
|
|
||||||
// "constant" is implicit - skip it
|
// "constant" is implicit - skip it
|
||||||
// All the time selections are enabled by default
|
// All the time selections are enabled by default
|
||||||
for (label timeI = 1; timeI < times.size(); ++timeI)
|
for (label timeI = 1; timeI < times.size(); ++timeI)
|
||||||
@ -211,29 +203,6 @@ void Foam::vtkPV3Foam::initializeTime()
|
|||||||
times[timeI].name().c_str()
|
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";
|
cout<<"Internally:\n";
|
||||||
output_->Print(cout);
|
output_->Print(cout);
|
||||||
|
|
||||||
cout<< " has " << output_->GetNumberOfBlocks() << " blocks\n";
|
cout<< " has " << output_->GetNumberOfBlocks() << " blocks\n";
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -687,7 +656,7 @@ void Foam::vtkPV3Foam::Update
|
|||||||
output_->Print(cout);
|
output_->Print(cout);
|
||||||
cout<< " has " << output_->GetNumberOfBlocks() << " blocks\n";
|
cout<< " has " << output_->GetNumberOfBlocks() << " blocks\n";
|
||||||
output_->GetInformation()->Print(cout);
|
output_->GetInformation()->Print(cout);
|
||||||
|
|
||||||
cout <<"ShouldIReleaseData :" << output_->ShouldIReleaseData() << "\n";
|
cout <<"ShouldIReleaseData :" << output_->ShouldIReleaseData() << "\n";
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user