git-svn-id: svn://svn.icms.temple.edu/lammps-ro/trunk@7133 f3b2605a-c512-4ea7-a41b-209d697bcdaa
This commit is contained in:
@ -34,8 +34,10 @@
|
||||
#include "error.h"
|
||||
#include "cuda.h"
|
||||
#include "cuda_modify_flags.h"
|
||||
#include "math_const.h"
|
||||
|
||||
using namespace LAMMPS_NS;
|
||||
using namespace MathConst;
|
||||
|
||||
#define BIG 1.0e20
|
||||
#define MASSDELTA 0.1
|
||||
@ -53,7 +55,6 @@ FixShakeCuda::FixShakeCuda(LAMMPS *lmp, int narg, char **arg) :
|
||||
MPI_Comm_rank(world,&me);
|
||||
MPI_Comm_size(world,&nprocs);
|
||||
neighbor_step=true;
|
||||
PI = 4.0*atan(1.0);
|
||||
|
||||
virial_flag = 1;
|
||||
create_attribute = 1;
|
||||
@ -2183,7 +2184,7 @@ void FixShakeCuda::stats()
|
||||
r3 = sqrt(delx*delx + dely*dely + delz*delz);
|
||||
|
||||
angle = acos((r1*r1 + r2*r2 - r3*r3) / (2.0*r1*r2));
|
||||
angle *= 180.0/PI;
|
||||
angle *= 180.0/MY_PI;
|
||||
m = shake_type[i][2];
|
||||
a_count[m]++;
|
||||
a_ave[m] += angle;
|
||||
|
||||
Reference in New Issue
Block a user