vtkInSituPParticlePathFilter.h
Go to the documentation of this file.
1 // SPDX-FileCopyrightText: Copyright (c) Kitware Inc.
2 // SPDX-License-Identifier: BSD-3-Clause
17 #ifndef vtkInSituPParticlePathFilter_h
18 #define vtkInSituPParticlePathFilter_h
19 
21 #include "vtkPVVTKExtensionsFiltersGeneralMPIModule.h" //needed for exports
22 
25 {
26 public:
28  void PrintSelf(ostream& os, vtkIndent indent) override;
29 
31 
36  void SetClearCache(bool);
37 
39 
42  void AddRestartConnection(vtkAlgorithmOutput* input);
43  void RemoveAllRestarts();
45 
47 
52  vtkSetMacro(RestartedSimulation, bool);
53  vtkGetMacro(RestartedSimulation, bool);
55 
57 
62  vtkSetMacro(FirstTimeStep, int);
63  vtkGetMacro(FirstTimeStep, int);
65 
66 protected:
68  ~vtkInSituPParticlePathFilter() override;
69 
78  std::vector<vtkDataSet*> GetSeedSources(vtkInformationVector* inputVector, int timeStep) override;
79 
85  int FillInputPortInformation(int port, vtkInformation* info) override;
86 
87  int RequestUpdateExtent(vtkInformation* request, vtkInformationVector** inputVector,
88  vtkInformationVector* outputVector) override;
89 
94  void AddRestartSeeds(vtkInformationVector**) override;
95 
105  void AssignSeedsToProcessors(double time, vtkDataSet* source, int sourceID, int ptId,
107  int& localAssignedCount) override;
108 
109 private:
111  void operator=(const vtkInSituPParticlePathFilter&) = delete;
112 
118  bool UseArrays;
119 
125  bool RestartedSimulation;
126 
128 
135  int FirstTimeStep;
136 };
137 #endif
138 
An In Situ Particle tracer for unsteady vector fields.
virtual void AddRestartSeeds(vtkInformationVector **)
For restarts of particle paths, we add in the ability to add in particles from a previous computation...
void PrintSelf(ostream &os, vtkIndent indent) override
void AssignSeedsToProcessors(double time, vtkDataSet *source, int sourceID, int ptId, vtkLegacyParticleTracerBaseNamespace::ParticleVector &localSeedPoints, int &localAssignedCount) override
Before starting the particle trace, classify all the injection/seed points according to which process...
virtual std::vector< vtkDataSet * > GetSeedSources(vtkInformationVector *inputVector, int timeStep)
Method to get the data set seed sources.
A Parallel Particle tracer for unsteady vector fields.
std::vector< ParticleInformation > ParticleVector
int RequestUpdateExtent(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector) override
#define VTKPVVTKEXTENSIONSFILTERSGENERALMPI_EXPORT
static vtkLegacyPParticlePathFilter * New()
int FillInputPortInformation(int port, vtkInformation *info) override