Unverified Commit 3cc740b9 authored by Axel Kohlmeyer's avatar Axel Kohlmeyer
Browse files

handle granular specific pair style flags consistently and make sure they are...

handle granular specific pair style flags consistently and make sure they are never accessed uninitialized
parent 03ee03c0
Loading
Loading
Loading
Loading
+0 −2
Original line number Diff line number Diff line
@@ -26,8 +26,6 @@ namespace LAMMPS_NS {

class PairGranHookeHistory : public Pair {
 public:
  int nondefault_history_transfer;

  PairGranHookeHistory(class LAMMPS *);
  virtual ~PairGranHookeHistory();
  virtual void compute(int, int);
+3 −0
Original line number Diff line number Diff line
@@ -100,6 +100,9 @@ Pair::Pair(LAMMPS *lmp) : Pointers(lmp)
  num_tally_compute = 0;
  list_tally_compute = NULL;

  nondefault_history_transfer = 0;
  beyond_contact = 0;

  // KOKKOS per-fix data masks

  execution_space = Host;