Files
lammps/src/OPENMP/improper_harmonic_omp.h
2022-10-24 11:08:26 -04:00

47 lines
1.4 KiB
C++

/* -*- c++ -*- ----------------------------------------------------------
LAMMPS - Large-scale Atomic/Molecular Massively Parallel Simulator
https://www.lammps.org/, Sandia National Laboratories
LAMMPS development team: developers@lammps.org
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: Axel Kohlmeyer (Temple U)
------------------------------------------------------------------------- */
#ifdef IMPROPER_CLASS
// clang-format off
ImproperStyle(harmonic/omp,ImproperHarmonicOMP);
// clang-format on
#else
#ifndef LMP_IMPROPER_HARMONIC_OMP_H
#define LMP_IMPROPER_HARMONIC_OMP_H
#include "improper_harmonic.h"
#include "thr_omp.h"
namespace LAMMPS_NS {
class ImproperHarmonicOMP : public ImproperHarmonic, public ThrOMP {
public:
ImproperHarmonicOMP(class LAMMPS *lmp);
void compute(int, int) override;
private:
template <int EVFLAG, int EFLAG, int NEWTON_BOND>
void eval(int ifrom, int ito, ThrData *const thr);
};
} // namespace LAMMPS_NS
#endif
#endif