Skip to content

Commit

Permalink
Merge pull request lammps#2044 from stanmoore1/kk_reax_full
Browse files Browse the repository at this point in the history
Remove full neigh list option in Kokkos ReaxFF
  • Loading branch information
akohlmey authored Apr 29, 2020
2 parents 7508660 + a88364a commit feed730
Show file tree
Hide file tree
Showing 3 changed files with 57 additions and 376 deletions.
10 changes: 6 additions & 4 deletions src/KOKKOS/fix_qeq_reax_kokkos.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,6 @@ using namespace FixConst;
#define SMALL 0.0001
#define EV_TO_KCAL_PER_MOL 14.4

#define TEAMSIZE 128

/* ---------------------------------------------------------------------- */

template<class DeviceType>
Expand Down Expand Up @@ -726,7 +724,9 @@ void FixQEqReaxKokkos<DeviceType>::cg_solve1()
const int inum = list->inum;
F_FLOAT tmp, sig_old, b_norm;

const int teamsize = TEAMSIZE;
int teamsize;
if (execution_space == Host) teamsize = 1;
else teamsize = 128;

// sparse_matvec( &H, x, q );
FixQEqReaxKokkosSparse12Functor<DeviceType> sparse12_functor(this);
Expand Down Expand Up @@ -861,7 +861,9 @@ void FixQEqReaxKokkos<DeviceType>::cg_solve2()
const int inum = list->inum;
F_FLOAT tmp, sig_old, b_norm;

const int teamsize = TEAMSIZE;
int teamsize;
if (execution_space == Host) teamsize = 1;
else teamsize = 128;

// sparse_matvec( &H, x, q );
FixQEqReaxKokkosSparse32Functor<DeviceType> sparse32_functor(this);
Expand Down
Loading

0 comments on commit feed730

Please sign in to comment.