Commit JT 052819
- corrected examples in examples/SPIN/dipole_spin - modified warning message in src/SPIN/pair_spin_dipole_*.cpp
This commit is contained in:
@ -54,6 +54,6 @@ thermo_style custom step time v_magx v_magy v_magz v_magnorm v_tmag v_emag pe
|
|||||||
thermo 50
|
thermo 50
|
||||||
|
|
||||||
compute outsp all property/atom spx spy spz sp fmx fmy fmz
|
compute outsp all property/atom spx spy spz sp fmx fmy fmz
|
||||||
dump 100 all custom 1 dump_iron.lammpstrj type x y z c_outsp[1] c_outsp[2] c_outsp[3]
|
dump 1 all custom 100 dump_iron.lammpstrj type x y z c_outsp[1] c_outsp[2] c_outsp[3]
|
||||||
|
|
||||||
run 2000
|
run 2000
|
||||||
|
|||||||
@ -56,6 +56,6 @@ thermo_style custom step time v_magx v_magy v_magz v_magnorm v_tmag v_emag pe
|
|||||||
thermo 50
|
thermo 50
|
||||||
|
|
||||||
compute outsp all property/atom spx spy spz sp fmx fmy fmz
|
compute outsp all property/atom spx spy spz sp fmx fmy fmz
|
||||||
dump 100 all custom 1 dump_iron.lammpstrj type x y z c_outsp[1] c_outsp[2] c_outsp[3]
|
dump 1 all custom 100 dump_iron.lammpstrj type x y z c_outsp[1] c_outsp[2] c_outsp[3]
|
||||||
|
|
||||||
run 2000
|
run 2000
|
||||||
|
|||||||
@ -57,9 +57,6 @@ thermo_style custom step time v_magx v_magy v_magz v_magnorm v_tmag v_emag pe
|
|||||||
thermo 50
|
thermo 50
|
||||||
|
|
||||||
compute outsp all property/atom spx spy spz sp fmx fmy fmz
|
compute outsp all property/atom spx spy spz sp fmx fmy fmz
|
||||||
dump 100 all custom 1 dump_iron.lammpstrj type x y z c_outsp[1] c_outsp[2] c_outsp[3]
|
dump 1 all custom 100 dump_iron.lammpstrj type x y z c_outsp[1] c_outsp[2] c_outsp[3]
|
||||||
|
|
||||||
run 2000
|
run 2000
|
||||||
# min_style spin
|
|
||||||
# min_modify alpha_damp 1.0 discrete_factor 10
|
|
||||||
# minimize 1.0e-16 1.0e-16 10000 10000
|
|
||||||
|
|||||||
@ -152,15 +152,16 @@ void PairSpinDipoleCut::init_style()
|
|||||||
neighbor->requests[irequest]->half = 0;
|
neighbor->requests[irequest]->half = 0;
|
||||||
neighbor->requests[irequest]->full = 1;
|
neighbor->requests[irequest]->full = 1;
|
||||||
|
|
||||||
// checking if nve/spin is a listed fix
|
// checking if nve/spin or neb/spin are a listed fix
|
||||||
|
|
||||||
int ifix = 0;
|
int ifix = 0;
|
||||||
while (ifix < modify->nfix) {
|
while (ifix < modify->nfix) {
|
||||||
if (strcmp(modify->fix[ifix]->style,"nve/spin") == 0) break;
|
if (strcmp(modify->fix[ifix]->style,"nve/spin") == 0) break;
|
||||||
|
if (strcmp(modify->fix[ifix]->style,"neb/spin") == 0) break;
|
||||||
ifix++;
|
ifix++;
|
||||||
}
|
}
|
||||||
if (ifix == modify->nfix)
|
if ((ifix == modify->nfix) && (comm->me == 0))
|
||||||
error->all(FLERR,"pair/spin style requires nve/spin");
|
error->warning(FLERR,"Using pair/spin style without nve/spin or neb/spin");
|
||||||
|
|
||||||
// get the lattice_flag from nve/spin
|
// get the lattice_flag from nve/spin
|
||||||
|
|
||||||
|
|||||||
@ -154,15 +154,16 @@ void PairSpinDipoleLong::init_style()
|
|||||||
neighbor->requests[irequest]->half = 0;
|
neighbor->requests[irequest]->half = 0;
|
||||||
neighbor->requests[irequest]->full = 1;
|
neighbor->requests[irequest]->full = 1;
|
||||||
|
|
||||||
// checking if nve/spin is a listed fix
|
// checking if nve/spin or neb/spin are a listed fix
|
||||||
|
|
||||||
int ifix = 0;
|
int ifix = 0;
|
||||||
while (ifix < modify->nfix) {
|
while (ifix < modify->nfix) {
|
||||||
if (strcmp(modify->fix[ifix]->style,"nve/spin") == 0) break;
|
if (strcmp(modify->fix[ifix]->style,"nve/spin") == 0) break;
|
||||||
|
if (strcmp(modify->fix[ifix]->style,"neb/spin") == 0) break;
|
||||||
ifix++;
|
ifix++;
|
||||||
}
|
}
|
||||||
if (ifix == modify->nfix)
|
if ((ifix == modify->nfix) && (comm->me == 0))
|
||||||
error->all(FLERR,"pair/spin style requires nve/spin");
|
error->warning(FLERR,"Using pair/spin style without nve/spin or neb/spin");
|
||||||
|
|
||||||
// get the lattice_flag from nve/spin
|
// get the lattice_flag from nve/spin
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user