forked from lijiext/lammps
git-svn-id: svn://svn.icms.temple.edu/lammps-ro/trunk@9763 f3b2605a-c512-4ea7-a41b-209d697bcdaa
This commit is contained in:
parent
3fc7d1913d
commit
5563cb6124
|
@ -343,6 +343,16 @@ void AngleSDK::read_restart(FILE *fp)
|
|||
for (int i = 1; i <= atom->nangletypes; i++) setflag[i] = 1;
|
||||
}
|
||||
|
||||
/* ----------------------------------------------------------------------
|
||||
proc 0 writes to data file
|
||||
------------------------------------------------------------------------- */
|
||||
|
||||
void AngleSDK::write_data(FILE *fp)
|
||||
{
|
||||
for (int i = 1; i <= atom->nangletypes; i++)
|
||||
fprintf(fp,"%d %g %g\n",i,k[i],theta0[i]/MY_PI*180.0);
|
||||
}
|
||||
|
||||
/* ---------------------------------------------------------------------- */
|
||||
|
||||
void AngleSDK::ev_tally13(int i, int j, int nlocal, int newton_bond,
|
||||
|
|
|
@ -36,6 +36,7 @@ class AngleSDK : public Angle {
|
|||
double equilibrium_angle(int);
|
||||
void write_restart(FILE *);
|
||||
void read_restart(FILE *);
|
||||
void write_data(FILE *);
|
||||
double single(int, int, int, int);
|
||||
|
||||
protected:
|
||||
|
|
Loading…
Reference in New Issue