Skip to content

Commit

Permalink
Refactored unit-tests in UnitTestKokkosViews.C. (spdomin#59)
Browse files Browse the repository at this point in the history
This refactoring supports our design experimentation related to
element-algorithms.

* Adds two classes that mimic element-algorithms:
  TestElemAlgorithmWithVectors, TestElemAlgorithmWithViews

* Illustrates the scratch-array resizing strategy which finds max
  nodes-per-elem and num-integ-points prior to the bucket loop and
  performs max resize, making subsequent resize operations fast.

* Illustrates Kokkos views with shared-memory-views as prototyped
  by Christian in a separate repo.

* Encapsulates looping mechanisms as described in recent meeting.

* Some 'kokkos-helper' stuff (typedefs, small functions etc) are at
  the top of the file, essentially similar to the stuff that
  Christian had in the KokkosInterface.h header in his repo.

* The test 'main' functions are at the bottom of the file, this is
  where you should start reading if you are interested in exploring.
  • Loading branch information
alanw0 authored and spdomin committed Jan 11, 2017
1 parent 691f4a3 commit 5ee91b4
Show file tree
Hide file tree
Showing 2 changed files with 408 additions and 174 deletions.
Loading

0 comments on commit 5ee91b4

Please sign in to comment.