/* -*- c++ -*- ----------------------------------------------------------
   LAMMPS - Large-scale Atomic/Molecular Massively Parallel Simulator
   https://www.lammps.org/ Sandia National Laboratories
   Steve Plimpton, sjplimp@sandia.gov

   Copyright (2003) Sandia Corporation.  Under the terms of Contract
   DE-AC04-94AL85000 with Sandia Corporation, the U.S. Government retains
   certain rights in this software.  This software is distributed under
   the GNU General Public License.

   See the README file in the top-level LAMMPS directory.
------------------------------------------------------------------------- */

/* ----------------------------------------------------------------------
   Contributing author: Hasan Metin Aktulga, Purdue University
   (now at Lawrence Berkeley National Laboratory, hmaktulga@lbl.gov)

   Heavily modified and adapted for LAMMPS by the LAMMPS developers.
------------------------------------------------------------------------- */

#ifndef LMP_REAXFF_INLINE_H
#define LMP_REAXFF_INLINE_H

#include "accelerator_kokkos.h"    // for LAMMPS_INLINE

namespace ReaxFF {
struct LR_data {
  double H;
  double e_vdW, CEvd;
  double e_ele, CEclmb;

  LAMMPS_INLINE
  LR_data() {}

  LAMMPS_INLINE
  void operator=(const LR_data &rhs)
  {
    H = rhs.H;
    e_vdW = rhs.e_vdW;
    CEvd = rhs.CEvd;
    e_ele = rhs.e_ele;
    CEclmb = rhs.CEclmb;
  }
  LAMMPS_INLINE
  void operator=(const LR_data &rhs) volatile
  {
    H = rhs.H;
    e_vdW = rhs.e_vdW;
    CEvd = rhs.CEvd;
    e_ele = rhs.e_ele;
    CEclmb = rhs.CEclmb;
  }
};

struct cubic_spline_coef {
  double a, b, c, d;

  LAMMPS_INLINE
  cubic_spline_coef() {}

  LAMMPS_INLINE
  cubic_spline_coef(const cubic_spline_coef &_c)
  {
    a = _c.a;
    b = _c.b;
    c = _c.c;
    d = _c.d;
  }

  LAMMPS_INLINE
  void operator=(const cubic_spline_coef &rhs)
  {
    a = rhs.a;
    b = rhs.b;
    c = rhs.c;
    d = rhs.d;
  }

  LAMMPS_INLINE
  void operator=(const cubic_spline_coef &rhs) volatile
  {
    a = rhs.a;
    b = rhs.b;
    c = rhs.c;
    d = rhs.d;
  }
};
}    // namespace ReaxFF

#endif
