1
/* -*- c++ -*- ----------------------------------------------------------
2
LAMMPS - Large-scale Atomic/Molecular Massively Parallel Simulator
3
http://lammps.sandia.gov, Sandia National Laboratories
4
Steve Plimpton, sjplimp@sandia.gov
6
Copyright (2003) Sandia Corporation. Under the terms of Contract
7
DE-AC04-94AL85000 with Sandia Corporation, the U.S. Government retains
8
certain rights in this software. This software is distributed under
9
the GNU General Public License.
11
See the README file in the top-level LAMMPS directory.
12
------------------------------------------------------------------------- */
14
/* ----------------------------------------------------------------------
15
Contributing author: W. Michael Brown (Intel)
16
------------------------------------------------------------------------- */
20
PairStyle(lj/cut/intel,PairLJCutIntel)
24
#ifndef LMP_PAIR_LJ_CUT_INTEL_H
25
#define LMP_PAIR_LJ_CUT_INTEL_H
27
#include "pair_lj_cut.h"
28
#include "fix_intel.h"
32
class PairLJCutIntel : public PairLJCut {
35
PairLJCutIntel(class LAMMPS *);
37
virtual void compute(int, int);
44
template <class flt_t> class ForceConst;
45
template <class flt_t, class acc_t>
46
void compute(int eflag, int vflag, IntelBuffers<flt_t,acc_t> *buffers,
47
const ForceConst<flt_t> &fc);
48
template <int EVFLAG, int EFLAG, int NEWTON_PAIR, class flt_t, class acc_t>
49
void eval(const int offload, const int vflag,
50
IntelBuffers<flt_t,acc_t> * buffers,
51
const ForceConst<flt_t> &fc, const int astart, const int aend);
53
template <class flt_t, class acc_t>
54
void pack_force_const(ForceConst<flt_t> &fc,
55
IntelBuffers<flt_t, acc_t> *buffers);
57
// ----------------------------------------------------------------------
59
template <class flt_t>
62
typedef struct { flt_t cutsq, lj1, lj2, offset; } fc_packed1;
63
typedef struct { flt_t lj3, lj4; } fc_packed2;
65
_alignvar(flt_t special_lj[4],64);
69
ForceConst() : _ntypes(0) {}
70
~ForceConst() { set_ntypes(0, NULL, _cop); }
72
void set_ntypes(const int ntypes, Memory *memory, const int cop);
78
ForceConst<float> force_const_single;
79
ForceConst<double> force_const_double;
87
/* ERROR/WARNING messages:
89
E: The 'package intel' command is required for /intel styles