Merge pull request #4108 from MightyHelper/develop
Allow compute spin for groups other than `all`
This commit is contained in:
@ -215,9 +215,8 @@ void ComputeSpin::compute_vector()
|
|||||||
tempnum += tx*tx+ty*ty+tz*tz;
|
tempnum += tx*tx+ty*ty+tz*tz;
|
||||||
tempdenom += sp[i][0]*fm[i][0]+fm[i][1]*sp[i][1]+sp[i][2]*fm[i][2];
|
tempdenom += sp[i][0]*fm[i][0]+fm[i][1]*sp[i][1]+sp[i][2]*fm[i][2];
|
||||||
countsp++;
|
countsp++;
|
||||||
}
|
} else error->all(FLERR,"Compute compute/spin requires atom/spin style");
|
||||||
}
|
}
|
||||||
else error->all(FLERR,"Compute compute/spin requires atom/spin style");
|
|
||||||
}
|
}
|
||||||
|
|
||||||
MPI_Allreduce(mag,magtot,4,MPI_DOUBLE,MPI_SUM,world);
|
MPI_Allreduce(mag,magtot,4,MPI_DOUBLE,MPI_SUM,world);
|
||||||
|
|||||||
Reference in New Issue
Block a user