Commit Graph

950 Commits

Author SHA1 Message Date
Yenpure
fca79d21ba Error fixes for particle advection filter 2017-09-08 13:20:43 -04:00
Kenneth Moreland
856ed92013 Merge topic 'scatter-counting-default-constructor'
6a3ac261 Provide default constructor for ScatterCounting

Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !911
2017-09-05 11:23:20 -04:00
Robert Maynard
a68413937a Gradient fast paths now works on cellset permutations. 2017-09-04 12:06:21 -04:00
Kenneth Moreland
6a3ac2615c Provide default constructor for ScatterCounting
This allows you to defer its construction. The default constructor
will set up the scatter to have 0 inputs and 0 outputs, so using
it will likely quickly reveal an error.
2017-08-31 16:49:20 -06:00
Kenneth Moreland
16e4e6079c Fix spelling error of canonical
It was being spelled cononical.
2017-08-30 09:23:02 -06:00
Kenneth Moreland
b12a20a599 Fix issue where auto type was not resolving template parameters
Portal reference objects automatically cast to their value, but
that does not necessarily mean that it will cast correctly to
a subclass of that type.
2017-08-29 09:34:32 -07:00
Kenneth Moreland
3471dc27fe Expand usage of AverageByKey
The AverageByKey.h header file had a single function that used the
device adapter algorithm ReduceByKey method to do a simple averaging of
a field. I added a second method that can do an average when given a
vtkm::worklet::Keys object. I expect this to be a common use case as we
implement transforming fields from input to output in many algorithms.
2017-08-24 17:20:21 -06:00
Kenneth Moreland
8312fe54ab Merge topic 'cononical-face-edge-ids'
1d5a4d47 Update ExternalFaces worklet to use hashes
fc7b90ac Add hash function
b1e6c1e3 Add method for getting a cononical edge id
8e72dc73 Add method for getting a cononical face id

Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !900
2017-08-24 19:00:21 -04:00
Kenneth Moreland
1d5a4d470d Update ExternalFaces worklet to use hashes
Our experiments have shown using hashes and then resolving collisions to
be faster than trying to sort by Ids.
2017-08-24 12:11:45 -06:00
Robert Maynard
2e7d9e3c85 Merge topic 'introduce_neighborhood_worklet_type'
99f60c27 Add GameOfLife example to show off WorkletPointNeighborhood3x3x3.
ce803832 Adds WorkletPointNeighborhood and DispatcherPointNeighborhood types.

Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !864
2017-08-24 13:49:24 -04:00
Robert Maynard
ce80383238 Adds WorkletPointNeighborhood and DispatcherPointNeighborhood types.
VTK-m is now able to run algorithms on structured points that require the
local point neighbors in a highly efficient manner.
2017-08-23 16:42:00 -04:00
Sujin Philip
3a3665ee5e Fix missing DeviceAdapter in dispatchers 2017-08-22 13:00:28 -04:00
Kenneth Moreland
8e72dc738a Add method for getting a cononical face id
The cononical face id is stored in a vtkm::Id3 (independent of the
actual number of points in the face).
2017-08-17 15:48:47 -06:00
Sujin Philip
2141435a19 Refactor KDTree3D worklet 2017-08-17 15:25:08 -04:00
Robert Maynard
a487017fd1 Remove lines that only contain a semi-colon. 2017-08-16 14:31:17 -04:00
ayenpure
2c662457f0 Fix particle advection compile warnings 2017-08-10 22:19:50 -04:00
ayenpure
84f9ec47ee Fix particle advection build warning
-adding code to resolve build warnings for gcc 5+
-change the return object of steps in unit test
2017-08-10 21:32:42 -04:00
ayenpure
82067fc8f3 fix for particle advection build issue 2017-08-10 20:34:05 -04:00
Dave Pugmire
02bab1a6b7 Fix merge issue. 2017-08-10 16:34:39 -04:00
Dave Pugmire
e5a814d952 Merge branch 'pics_unittests' of gitlab.kitware.com:dpugmire/vtk-m into pics_unittests 2017-08-10 16:28:48 -04:00
Dave Pugmire
b23564a526 Merge branch 'master' of https://gitlab.kitware.com/vtk/vtk-m into pics_unittests 2017-08-10 16:18:18 -04:00
Abhishek Yenpure
e4116edab8 particle advection tests for rectilinear grid
-added tests for rectilinear grid
-fixing rectilinear grid evaluator for GPUs
2017-08-10 15:14:42 -04:00
Abhishek Yenpure
a3b4ad8b1a particle advection test fixes
-fixes for testing particle advection on the GPU.
-minor fixes for GPU
2017-08-10 13:39:47 -04:00
Thomas Otahal
89b2700298 Merge topic 'external-faces-production'
75517554 Move check for cell variables to it gets executed.
147247e8 Code formatting changes and compiler warning fixes.
a3fd135b Fix errors and warnings on Mac and Windows
347af497 Poly Data for External Faces
aeed7a07 Cell variables for External Faces
ad13e9b4 Merge branch 'master' into external-faces-production
ab25c160 External Faces Uniform and Rectilear grids

Acked-by: Kitware Robot <kwrobot@kitware.com>
Acked-by: Kenneth Moreland <kmorel@sandia.gov>
Merge-request: !860
2017-08-09 16:00:01 -04:00
ayenpure
bc259e1523 Particle advection grid evaluators testing fix 2017-08-08 23:03:08 -04:00
Yenpure
9714ea36fa Particle advection test fix
-Added a worklet to execute evaluator test on device
-Fixing various compile issues
2017-08-08 16:19:02 -04:00
Robert Maynard
a143e2e8f5 Merge topic 'correct_visit_index'
07cd0f05 All scatters VisitIndex now are zero based.

Acked-by: Kitware Robot <kwrobot@kitware.com>
Acked-by: Kenneth Moreland <kmorel@sandia.gov>
Merge-request: !865
2017-08-08 11:17:01 -04:00
Robert Maynard
07cd0f0516 All scatters VisitIndex now are zero based.
Fixes #166
2017-08-08 09:38:04 -04:00
Yenpure
e99567fe16 Fixing template errors for particle advection 2017-08-04 14:07:40 -04:00
Sujin Philip
4db096bfb0 Update CellToPoint worklets
Update CellToPoint worklets that assume that a point will have atleast
one cell.
2017-08-04 12:43:26 -04:00
Yenpure
0daeee70ec Fix Needed : virtual like methods for Integrators 2017-08-03 16:55:44 -04:00
Thomas J. Otahal
147247e8a5 Code formatting changes and compiler warning fixes. 2017-08-03 14:08:06 -06:00
Thomas J. Otahal
a3fd135b97 Fix errors and warnings on Mac and Windows 2017-08-03 11:59:53 -06:00
Yenpure
2ba83cd101 particle advection refactoring
-removing the bounds object form integrators.
-some formatting changes
-changes to build successfully
2017-08-03 13:34:58 -04:00
Thomas J. Otahal
347af49722 Poly Data for External Faces
The external faces filter and worklet now pass input
PolyData (0D, 1D, and 2D) cells to the output. The external
faces filter has a flag to control this output (PassPolyData).
Added tests to the external faces filter and worklet.
2017-08-03 09:19:22 -06:00
Allison Vacanti
75590f1fc9 MSVC2013 lacks support for function type aliases.
Alas, VS 2013 will keep us from using "using" to declare function
signatures. Reverting to typedef until we bump our MSVC requirement.

This appears to be a compiler bug:
https://stackoverflow.com/questions/26349216
2017-08-02 12:02:25 -04:00
Yenpure
3668e098e3 Fixed particle advection build issues
-Merged short steps changes from AYenpure's branch
-Fixed build issues
-Fixedf merge issues
2017-08-02 10:02:21 -04:00
Yenpure
4b7bba836b Merge branch 'refactor_integrators' of https://gitlab.kitware.com/ayenpure/vtk-m into pics_unittests 2017-08-01 22:00:07 -04:00
Dave Pugmire
33ada346ae Add more unittests. Put field into evaluator. 2017-08-01 16:27:03 -04:00
Yenpure
a3938245d2 Particle Advection Enhancements
-Added support for short steps with a generic way to support for al
 types of integrators
-Added a base class for all integrators to leverage the generic
 way to handle taking steps and push particle out of spatial domain
2017-08-01 14:55:49 -04:00
Yenpure
12d8705796 Fixing inheritance related issues in Integrators 2017-07-31 16:58:36 -04:00
Yenpure
61c61ee93b Adding a base class for Integrators 2017-07-31 15:46:13 -04:00
Thomas J. Otahal
aeed7a07af Cell variables for External Faces
The External Faces filter and worklet now pass cell variables
through to the output data.
2017-07-31 08:06:33 -06:00
ayenpure
191888e010 Adding a base class for Integrators 2017-07-31 08:18:30 -04:00
Kenneth Moreland
897ec9ff5e Test and fix issues with WholeCellSetIn with structured grids 2017-07-28 15:02:05 -06:00
Kenneth Moreland
03b6f62d05 Add a test for the WholeCellSetIn argument
All types of cell sets should have a consistent interface. This is
tested (and fixed) for explicit and permutation cell sets. However, an
unfixed bug that has been identified is that permutation cell sets only
work for point to cell topologies. All others are not supported
correctly.
2017-07-28 13:46:37 -06:00
Yenpure
4afb72926c Fix: return same position for particle already out of bounds 2017-07-28 15:36:23 -04:00
Abhishek Yenpure
a72bdf5463 Fix to skip input particles already out of bounds 2017-07-28 11:54:14 -04:00
Yenpure
c5e2ee97fe particle advection enhancements
-Adding support to specify steps already taken by each particle
 to begin particle advection.
2017-07-26 16:35:43 -04:00
Yenpure
385d4045e9 Short step changes for particle advection
-Added preliminary code to test particles are pushed out
 of bounds
-related changes to support the feature
2017-07-26 11:03:30 -04:00