1 /* ----------------------------------------------------------------------
2    SPARTA - Stochastic PArallel Rarefied-gas Time-accurate Analyzer
3    http://sparta.sandia.gov
4    Steve Plimpton, sjplimp@sandia.gov, Michael Gallis, magalli@sandia.gov
5    Sandia National Laboratories
6 
7    Copyright (2014) Sandia Corporation.  Under the terms of Contract
8    DE-AC04-94AL85000 with Sandia Corporation, the U.S. Government retains
9    certain rights in this software.  This software is distributed under
10    the GNU General Public License.
11 
12    See the README file in the top-level SPARTA directory.
13 ------------------------------------------------------------------------- */
14 
15 #ifdef COMPUTE_CLASS
16 
17 ComputeStyle(temp/kk,ComputeTempKokkos)
18 
19 #else
20 
21 #ifndef SPARTA_COMPUTE_TEMP_KOKKOS_H
22 #define SPARTA_COMPUTE_TEMP_KOKKOS_H
23 
24 #include "compute_temp.h"
25 #include "kokkos_type.h"
26 
27 namespace SPARTA_NS {
28 
29 class ComputeTempKokkos : public ComputeTemp {
30  public:
31   ComputeTempKokkos(class SPARTA *, int, char **);
32   virtual ~ComputeTempKokkos() {}
33   double compute_scalar();
34 
35   KOKKOS_INLINE_FUNCTION
36   void operator()(const int&, double&) const;
37 
38  private:
39   t_particle_1d d_particles;
40   t_species_1d d_species;
41 
42   double compute_scalar_kokkos();
43 };
44 
45 }
46 
47 #endif
48 #endif
49 
50 /* ERROR/WARNING messages:
51 
52 E: Illegal ... command
53 
54 Self-explanatory.  Check the input script syntax and compare to the
55 documentation for the command.  You can use -echo screen as a
56 command-line option when running SPARTA to see the offending line.
57 
58 */
59