Merge branch 'spin-kokkos' of github.com:julient31/lammps into spin-kokkos

This commit is contained in:
julient31
2021-03-30 10:39:27 -06:00
7 changed files with 22 additions and 17 deletions

View File

@ -10,13 +10,9 @@ shell echo "test1"
atom_modify map array
lattice sc 3.0
region box block 0 2 0 1 0 1
shell echo "test1"
create_box 1 box
shell echo "test1"
create_atoms 1 box
shell echo "test1"
mass 1 55.845
set atom 1 spin 2.0 1.0 0.0 0.0
set atom 2 spin 2.0 0.0 1.0 0.0

View File

@ -3,6 +3,7 @@
clear
units metal
atom_style spin
# atom_style spin/kk
dimension 3
boundary p p p
@ -46,4 +47,8 @@ variable tmag equal c_out_mag[6]
thermo_style custom step time v_tmag temp v_emag ke pe etotal
thermo 200
run 100000
compute outsp all property/atom spx spy spz sp fmx fmy fmz
dump 1 all custom 10 dump_iron.lammpstrj type x y z c_outsp[1] c_outsp[2] c_outsp[3]
# run 100000
run 10000

View File

@ -4,8 +4,9 @@
rm res_*.dat
# compute Lammps
./../../../../src/lmp_serial \
-in in.spin.iron-nve
# mpirun -np 1 ../../../../src/lmp_kokkos_mpi_only \
# -k on -sf kk -in in.spin.iron-nve
../../../../src/lmp_serial -in in.spin.iron-nve
in="$(grep -n Step log.lammps | awk -F ':' '{print $1}')"
en="$(grep -n Loop log.lammps | awk -F ':' '{print $1}')"
in="$(echo "$in+1" | bc -l)"