Commit 4f195254 authored by Stan Moore's avatar Stan Moore Committed by Stan Gerald Moore (stamoor)
Browse files

Fixing bug with Kokkos and reading restart files

parent 9a0007a1
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -1593,7 +1593,7 @@ int AtomVecAngleKokkos::unpack_restart(double *buf)

  double **extra = atom->extra;
  if (atom->nextra_store) {
    int size = static_cast<int> (ubuf(buf[m++]).i) - m;
    int size = static_cast<int> (buf[0]) - m;
    for (int i = 0; i < size; i++) extra[nlocal][i] = buf[m++];
  }

+1 −1
Original line number Diff line number Diff line
@@ -1232,7 +1232,7 @@ int AtomVecAtomicKokkos::unpack_restart(double *buf)

  double **extra = atom->extra;
  if (atom->nextra_store) {
    int size = static_cast<int> (ubuf(buf[m++]).i) - m;
    int size = static_cast<int> (buf[0]) - m;
    for (int i = 0; i < size; i++) extra[nlocal][i] = buf[m++];
  }

+1 −1
Original line number Diff line number Diff line
@@ -1460,7 +1460,7 @@ int AtomVecBondKokkos::unpack_restart(double *buf)

  double **extra = atom->extra;
  if (atom->nextra_store) {
    int size = static_cast<int> (ubuf(buf[m++]).i) - m;
    int size = static_cast<int> (buf[0]) - m;
    for (int i = 0; i < size; i++) extra[nlocal][i] = buf[m++];
  }

+1 −1
Original line number Diff line number Diff line
@@ -1314,7 +1314,7 @@ int AtomVecChargeKokkos::unpack_restart(double *buf)

  double **extra = atom->extra;
  if (atom->nextra_store) {
    int size = static_cast<int> (ubuf(buf[m++]).i) - m;
    int size = static_cast<int> (buf[0]) - m;
    for (int i = 0; i < size; i++) extra[nlocal][i] = buf[m++];
  }

+1 −1
Original line number Diff line number Diff line
@@ -1936,7 +1936,7 @@ int AtomVecFullKokkos::unpack_restart(double *buf)

  double **extra = atom->extra;
  if (atom->nextra_store) {
    int size = static_cast<int> (ubuf(buf[m++]).i) - m;
    int size = static_cast<int> (buf[0]) - m;
    for (int i = 0; i < size; i++) extra[nlocal][i] = buf[m++];
  }

Loading