I’ve been getting a segmentation fault when I try to run fix move in the following script,
(I’m simply trying to have a fixed velocity on each individual atom in the group “outer”. I’d like to run the rest of the atoms as a typical NVT simulation.)
CuO PacMan for COMB3 potential
units metal
atom_style charge
atom_modify map array
boundary p s s
read_restart restart.20900.92_14
variable uy atomfile VY.in
variable uz atomfile VZ.in
variable ux atomfile Vx.in
variable xa atom v_ux
variable ya atom v_uy
variable za atom v_uz
region lips cylinder x {CY} {CZ} 55 0 EDGE units box side out
region inside cylinder x {CY} {CZ} 55 0 EDGE units box side in
group outer region lips
group in region inside
mass 1 63.546
group type1 type 1
compute charge1 type1 property/atom q
compute q1 type1 reduce ave c_charge1
mass 2 16.00
group type2 type 2
compute charge2 type2 property/atom q
compute q2 type2 reduce ave c_charge2
pair_style comb3 polar_off
pair_coeff * * …/…/…/potentials/ffield.comb3 Cu O
neighbor 0.2 bin
neigh_modify every 1 delay 0 check yes
timestep 0.001
thermo_style custom step temp etotal pe evdwl ecoul c_q1 c_q2 press vol
thermo_modify norm yes
fix m outer move variable NULL NULL NULL v_xa v_ya v_za
velocity in create 5.0 3482028
fix 1 in nvt/omp temp 5.0 5.0 0.1
fix 2 all qeq/comb 1 0.001 file fq.min.out
#dump myDump all custom 10 dump.CuO.crack id type x y z q
write_dump all custom dump.test id v_xa v_ya v_za
restart 100 restart.*.94_14
thermo_style custom step temp etotal pxx cpu vol
thermo 1
#minimize 1e-6 1.0e-6 100000 200000
run 1
The following is returned by all MPI grids:
[Neo:09479] *** Process received signal ***
[Neo:09479] Signal: Segmentation fault (11)
[Neo:09479] Signal code: Address not mapped (1)
When I look at the write_dump file each of my xa, ya, za variables comes out to the correct values, and the atomfile input files are the correct format. If I remove the fix move, I no longer get a segmentation fault.
I’m running LAMMPS from 15 August 2014 on Ubuntu.
Any ideas why this is happening/options to avoid it?
Mike