forked from lijiext/lammps
Commit JT 092419
- corrected read_restart in exchange (same correct as in Neel)
This commit is contained in:
parent
af1e119a7c
commit
2fad4e0f97
|
@ -504,7 +504,7 @@ void PairSpinExchange::read_restart(FILE *fp)
|
|||
fread(&J1_mag[i][j],sizeof(double),1,fp);
|
||||
fread(&J1_mech[i][j],sizeof(double),1,fp);
|
||||
fread(&J2[i][j],sizeof(double),1,fp);
|
||||
fread(&J2[i][j],sizeof(double),1,fp);
|
||||
fread(&J3[i][j],sizeof(double),1,fp);
|
||||
fread(&cut_spin_exchange[i][j],sizeof(double),1,fp);
|
||||
}
|
||||
MPI_Bcast(&J1_mag[i][j],1,MPI_DOUBLE,0,world);
|
||||
|
|
|
@ -643,10 +643,8 @@ void PairSpinNeel::allocate()
|
|||
memory->create(q3,n+1,n+1,"pair/spin/soc/neel:q3");
|
||||
|
||||
memory->create(cutsq,n+1,n+1,"pair/spin/soc/neel:cutsq");
|
||||
|
||||
}
|
||||
|
||||
|
||||
/* ----------------------------------------------------------------------
|
||||
proc 0 writes to restart file
|
||||
------------------------------------------------------------------------- */
|
||||
|
|
Loading…
Reference in New Issue