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 #include "math.h"
16 #include "string.h"
17 #include "stdlib.h"
18 #include "react_tce_kokkos.h"
19 #include "particle.h"
20 #include "collide.h"
21 #include "random_knuth.h"
22 #include "error.h"
23
24 // DEBUG
25 #include "update.h"
26
27 using namespace SPARTA_NS;
28
29 enum{DISSOCIATION,EXCHANGE,IONIZATION,RECOMBINATION}; // other files
30
31 /* ---------------------------------------------------------------------- */
32
ReactTCEKokkos(SPARTA * sparta,int narg,char ** arg)33 ReactTCEKokkos::ReactTCEKokkos(SPARTA *sparta, int narg, char **arg) :
34 ReactBirdKokkos(sparta, narg, arg) {}
35
36 /* ---------------------------------------------------------------------- */
37
init()38 void ReactTCEKokkos::init()
39 {
40 if (!collide || (strcmp(collide->style,"vss") != 0 && strcmp(collide->style,"vss/kk") != 0))
41 error->all(FLERR,"React tce can only be used with collide vss");
42
43 ReactBirdKokkos::init();
44 }
45