45 lines
1.4 KiB
C++
45 lines
1.4 KiB
C++
/* ----------------------------------------------------------------------
|
|
LAMMPS - Large-scale Atomic/Molecular Massively Parallel Simulator
|
|
https://lammps.sandia.gov/, 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.
|
|
------------------------------------------------------------------------- */
|
|
|
|
#include "pair_coul_cut_global_omp.h"
|
|
|
|
#include "error.h"
|
|
|
|
#include <cstring>
|
|
|
|
using namespace LAMMPS_NS;
|
|
|
|
/* ----------------------------------------------------------------------
|
|
set coeffs for one or more type pairs
|
|
------------------------------------------------------------------------- */
|
|
|
|
void PairCoulCutGlobalOMP::coeff(int narg, char **arg)
|
|
{
|
|
if (narg != 2)
|
|
error->all(FLERR,"Incorrect args for pair coefficients");
|
|
|
|
PairCoulCut::coeff(narg,arg);
|
|
}
|
|
|
|
|
|
/* ---------------------------------------------------------------------- */
|
|
|
|
void *PairCoulCutGlobalOMP::extract(const char *str, int &dim)
|
|
{
|
|
dim = 0;
|
|
if (strcmp(str,"cut_coul") == 0) return (void *) &cut_global;
|
|
dim = 2;
|
|
if (strcmp(str,"scale") == 0) return (void *) scale;
|
|
return nullptr;
|
|
}
|