Resolved Conflicts (i hope): src/REPLICA/neb.cpp src/REPLICA/prd.cpp src/REPLICA/tad.cpp src/REPLICA/verlet_split.cpp src/USER-CUDA/atom_vec_angle_cuda.h src/USER-CUDA/atom_vec_atomic_cuda.h src/USER-CUDA/atom_vec_charge_cuda.h src/USER-CUDA/atom_vec_full_cuda.h src/USER-CUDA/compute_pe_cuda.h src/USER-CUDA/compute_pressure_cuda.h src/USER-CUDA/compute_temp_cuda.h src/USER-CUDA/compute_temp_partial_cuda.h src/USER-CUDA/cuda.cpp src/USER-CUDA/cuda.h src/USER-CUDA/cuda_data.h src/USER-CUDA/cuda_neigh_list.h src/USER-CUDA/fft3d_cuda.h src/USER-CUDA/fft3d_wrap_cuda.h src/USER-CUDA/fix_addforce_cuda.h src/USER-CUDA/fix_aveforce_cuda.h src/USER-CUDA/fix_enforce2d_cuda.h src/USER-CUDA/fix_freeze_cuda.h src/USER-CUDA/fix_gravity_cuda.h src/USER-CUDA/fix_nve_cuda.h src/USER-CUDA/fix_set_force_cuda.h src/USER-CUDA/fix_temp_berendsen_cuda.h src/USER-CUDA/fix_temp_rescale_cuda.h src/USER-CUDA/fix_temp_rescale_limit_cuda.h src/USER-CUDA/fix_viscous_cuda.h src/USER-CUDA/pair_born_coul_long_cuda.h src/USER-CUDA/pair_buck_coul_cut_cuda.h src/USER-CUDA/pair_buck_coul_long_cuda.h src/USER-CUDA/pair_buck_cuda.h src/USER-CUDA/pair_cg_cmm_coul_cut_cuda.cpp src/USER-CUDA/pair_cg_cmm_coul_cut_cuda.h src/USER-CUDA/pair_cg_cmm_coul_debye_cuda.cpp src/USER-CUDA/pair_cg_cmm_coul_debye_cuda.h src/USER-CUDA/pair_cg_cmm_coul_long_cuda.cpp src/USER-CUDA/pair_cg_cmm_coul_long_cuda.h src/USER-CUDA/pair_cg_cmm_cuda.cpp src/USER-CUDA/pair_cg_cmm_cuda.h src/USER-CUDA/pair_eam_cuda.h src/USER-CUDA/pair_gran_hooke_cuda.h src/USER-CUDA/pair_lj96_cut_cuda.h src/USER-CUDA/pair_lj_charmm_coul_charmm_cuda.h src/USER-CUDA/pair_lj_charmm_coul_charmm_implicit_cuda.h src/USER-CUDA/pair_lj_charmm_coul_long_cuda.h src/USER-CUDA/pair_lj_class2_coul_cut_cuda.h src/USER-CUDA/pair_lj_class2_coul_long_cuda.h src/USER-CUDA/pair_lj_class2_cuda.h src/USER-CUDA/pair_lj_cut_coul_cut_cuda.h src/USER-CUDA/pair_lj_cut_coul_debye_cuda.h src/USER-CUDA/pair_lj_cut_coul_long_cuda.h src/USER-CUDA/pair_lj_cut_cuda.h src/USER-CUDA/pair_lj_cut_experimental_cuda.h src/USER-CUDA/pair_lj_expand_cuda.h src/USER-CUDA/pair_lj_gromacs_coul_gromacs_cuda.h src/USER-CUDA/pair_lj_gromacs_cuda.h src/USER-CUDA/pair_lj_sdk_coul_long_cuda.cpp src/USER-CUDA/pair_lj_sdk_coul_long_cuda.h src/USER-CUDA/pair_lj_sdk_cuda.h src/USER-CUDA/pair_lj_smooth_cuda.h src/USER-CUDA/pair_morse_cuda.h src/USER-CUDA/pair_sw_cuda.h src/USER-CUDA/pair_tersoff_cuda.h src/USER-CUDA/pair_tersoff_zbl_cuda.h src/USER-CUDA/pppm_cuda.h src/USER-CUDA/verlet_cuda.cpp src/USER-CUDA/verlet_cuda.h src/comm.cpp src/finish.cpp src/fix_rigid_nvt.h src/respa.cpp src/run.cpp
148 lines
3.8 KiB
C++
148 lines
3.8 KiB
C++
/* -*- c++ -*- ----------------------------------------------------------
|
|
LAMMPS - Large-scale Atomic/Molecular Massively Parallel Simulator
|
|
http://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.
|
|
------------------------------------------------------------------------- */
|
|
|
|
#ifdef PAIR_CLASS
|
|
|
|
PairStyle(table,PairTable)
|
|
|
|
#else
|
|
|
|
#ifndef LMP_PAIR_TABLE_H
|
|
#define LMP_PAIR_TABLE_H
|
|
|
|
#include "pair.h"
|
|
|
|
namespace LAMMPS_NS {
|
|
|
|
class PairTable : public Pair {
|
|
public:
|
|
PairTable(class LAMMPS *);
|
|
virtual ~PairTable();
|
|
|
|
virtual void compute(int, int);
|
|
void settings(int, char **);
|
|
void coeff(int, char **);
|
|
double init_one(int, int);
|
|
void write_restart(FILE *);
|
|
void read_restart(FILE *);
|
|
void write_restart_settings(FILE *);
|
|
void read_restart_settings(FILE *);
|
|
double single(int, int, int, int, double, double, double, double &);
|
|
void *extract(const char *, int &);
|
|
|
|
protected:
|
|
enum{LOOKUP,LINEAR,SPLINE,BITMAP};
|
|
|
|
int tabstyle,tablength;
|
|
struct Table {
|
|
int ninput,rflag,fpflag,match,ntablebits;
|
|
int nshiftbits,nmask;
|
|
double rlo,rhi,fplo,fphi,cut;
|
|
double *rfile,*efile,*ffile;
|
|
double *e2file,*f2file;
|
|
double innersq,delta,invdelta,deltasq6;
|
|
double *rsq,*drsq,*e,*de,*f,*df,*e2,*f2;
|
|
};
|
|
int ntables;
|
|
Table *tables;
|
|
|
|
int **tabindex;
|
|
|
|
void allocate();
|
|
void read_table(Table *, char *, char *);
|
|
void param_extract(Table *, char *);
|
|
void bcast_table(Table *);
|
|
void spline_table(Table *);
|
|
void compute_table(Table *);
|
|
void null_table(Table *);
|
|
void free_table(Table *);
|
|
void spline(double *, double *, int, double, double, double *);
|
|
double splint(double *, double *, double *, int, double);
|
|
};
|
|
|
|
}
|
|
|
|
#endif
|
|
#endif
|
|
|
|
/* ERROR/WARNING messages:
|
|
|
|
E: Pair distance < table inner cutoff
|
|
|
|
Two atoms are closer together than the pairwise table allows.
|
|
|
|
E: Pair distance > table outer cutoff
|
|
|
|
Two atoms are further apart than the pairwise table allows.
|
|
|
|
E: Illegal ... command
|
|
|
|
Self-explanatory. Check the input script syntax and compare to the
|
|
documentation for the command. You can use -echo screen as a
|
|
command-line option when running LAMMPS to see the offending line.
|
|
|
|
E: Unknown table style in pair_style command
|
|
|
|
Style of table is invalid for use with pair_style table command.
|
|
|
|
E: Illegal number of pair table entries
|
|
|
|
There must be at least 2 table entries.
|
|
|
|
E: Invalid pair table length
|
|
|
|
Length of read-in pair table is invalid
|
|
|
|
E: Invalid pair table cutoff
|
|
|
|
Cutoffs in pair_coeff command are not valid with read-in pair table.
|
|
|
|
E: Bitmapped table in file does not match requested table
|
|
|
|
Setting for bitmapped table in pair_coeff command must match table
|
|
in file exactly.
|
|
|
|
E: All pair coeffs are not set
|
|
|
|
All pair coefficients must be set in the data file or by the
|
|
pair_coeff command before running a simulation.
|
|
|
|
E: Cannot open file %s
|
|
|
|
The specified file cannot be opened. Check that the path and name are
|
|
correct.
|
|
|
|
E: Did not find keyword in table file
|
|
|
|
Keyword used in pair_coeff command was not found in table file.
|
|
|
|
E: Bitmapped table is incorrect length in table file
|
|
|
|
Number of table entries is not a correct power of 2.
|
|
|
|
E: Invalid keyword in pair table parameters
|
|
|
|
Keyword used in list of table parameters is not recognized.
|
|
|
|
E: Pair table parameters did not set N
|
|
|
|
List of pair table parameters must include N setting.
|
|
|
|
E: Pair table cutoffs must all be equal to use with KSpace
|
|
|
|
When using pair style table with a long-range KSpace solver, the
|
|
cutoffs for all atom type pairs must all be the same, since the
|
|
long-range solver starts at that cutoff.
|
|
|
|
*/
|