Commit 99f42744 authored by julient31's avatar julient31
Browse files

Commit JT 052418 rm comments

parent 102be8dd
Loading
Loading
Loading
Loading
+0 −1
Changes for src/SPIN/compute_spin.cpp: 0 added lines, 1 removed line.
Original line number Diff line number Diff line
@@ -132,7 +132,6 @@ void ComputeSpin::compute_vector()
  magtot[2] *= scale;
  magtot[3] = sqrt((magtot[0]*magtot[0])+(magtot[1]*magtot[1])+(magtot[2]*magtot[2]));
  spintemperature = hbar*tempnumtot;    
  //spintemperature /= (2.0*kb*tempdenomtot);
  spintemperature /= (kb*tempdenomtot);
 
  vector[0] = magtot[0];
+0 −7
Changes for src/SPIN/fix_langevin_spin.cpp: 0 added lines, 7 removed lines.
Original line number Diff line number Diff line
@@ -134,10 +134,8 @@ void FixLangevinSpin::init()
  double hbar = force->hplanck/MY_2PI;	// eV/(rad.THz)
  double kb = force->boltz;		// eV/K
  D = (MY_2PI*alpha_t*gil_factor*kb*temp);
  //D = (alpha_t*gil_factor*kb*temp);
  D /= (hbar*dts);
  sigma = sqrt(2.0*D);
  //sigma = sqrt(D);
}

/* ---------------------------------------------------------------------- */
@@ -176,11 +174,6 @@ void FixLangevinSpin::add_temperature(double fmi[3])
  double rx = sigma*(2.0*random->uniform() - 1.0);
  double ry = sigma*(2.0*random->uniform() - 1.0);
  double rz = sigma*(2.0*random->uniform() - 1.0);
  //printf("test rd : %g \n",2.0*random->uniform() - 1.0);
  //printf("test gaussian : %g \n", random->gaussian());
  //double rx = sigma*(random->gaussian());
  //double ry = sigma*(random->gaussian());
  //double rz = sigma*(random->gaussian());

  // adding the random field