Commit JT 092419

- corrected read_restart in exchange (same correct as in Neel)
This commit is contained in:
julient31 2019-09-24 14:50:55 -06:00
parent af1e119a7c
commit 2fad4e0f97
2 changed files with 1 additions and 3 deletions

View File

@ -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);

View File

@ -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
------------------------------------------------------------------------- */