Unverified Commit 7b3f9529 authored by Axel Kohlmeyer's avatar Axel Kohlmeyer
Browse files

whitespace cleanup and dead code removal

parent 36b645d2
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -177,7 +177,7 @@ void FixPrecessionSpin::min_setup(int vflag)

/* ---------------------------------------------------------------------- */

void FixPrecessionSpin::post_force(int vflag)
void FixPrecessionSpin::post_force(int /* vflag */)
{

  // update mag field with time (potential improvement)
+32 −37
Original line number Diff line number Diff line
@@ -19,6 +19,8 @@

#include <mpi.h>
#include <cmath>
#include <cstdlib>
#include <cstring>
#include "min_spin.h"
#include "universe.h"
#include "atom.h"
@@ -27,8 +29,6 @@
#include "output.h"
#include "timer.h"
#include "error.h"
#include <cstdlib>
#include <cstring>
#include "modify.h"
#include "math_special.h"
#include "math_const.h"
@@ -119,7 +119,7 @@ void MinSpin::reset_vectors()
int MinSpin::iterate(int maxiter)
{
  bigint ntimestep;
  double fmdotfm,fmdotfmall;
  double fmdotfm;
  int flag,flagall;

  for (int iter = 0; iter < maxiter; iter++) {
@@ -200,7 +200,6 @@ double MinSpin::evaluate_dt()
  double fmsq;
  double fmaxsqone,fmaxsqloc,fmaxsqall;
  int nlocal = atom->nlocal;
  int *mask = atom->mask;
  double **fm = atom->fm;

  // finding max fm on this proc.
@@ -243,7 +242,6 @@ double MinSpin::evaluate_dt()
void MinSpin::advance_spins(double dts)
{
  int nlocal = atom->nlocal;
  int *mask = atom->mask;
  double **sp = atom->sp;
  double **fm = atom->fm;
  double tdampx,tdampy,tdampz;
@@ -306,9 +304,6 @@ void MinSpin::advance_spins(double dts)

double MinSpin::fmnorm_sqr()
{
  int i,n;
  double *fmatom;

  int nlocal = atom->nlocal;
  double tx,ty,tz;
  double **sp = atom->sp;
+24 −24
Original line number Diff line number Diff line
@@ -342,7 +342,7 @@ void PairSpinDmi::compute_single_pair(int ii, double fmi[3])
  double delx,dely,delz;
  double spj[3];

  int i,j,jnum,itype,jtype,ntypes;
  int j,jnum,itype,jtype,ntypes;
  int k,locflag;
  int *jlist,*numneigh,**firstneigh;

+21 −21
Original line number Diff line number Diff line
@@ -325,7 +325,7 @@ void PairSpinExchange::compute_single_pair(int ii, double fmi[3])
  double delx,dely,delz;
  double spj[3];

  int i,j,jnum,itype,jtype,ntypes;
  int j,jnum,itype,jtype,ntypes;
  int k,locflag;
  int *jlist,*numneigh,**firstneigh;

+14 −14
Original line number Diff line number Diff line
@@ -332,7 +332,7 @@ void PairSpinMagelec::compute_single_pair(int ii, double fmi[3])
  double delx,dely,delz;
  double spj[3];

  int i,j,jnum,itype,jtype,ntypes;
  int j,jnum,itype,jtype,ntypes;
  int k,locflag;
  int *jlist,*numneigh,**firstneigh;

+41 −41

File changed.

Contains only whitespace changes.

+6 −6

File changed.

Contains only whitespace changes.

+8 −8

File changed.

Contains only whitespace changes.

+3 −3

File changed.

Contains only whitespace changes.

Loading