|
|
@ -127,7 +127,7 @@ module opt_delete
|
|
|
|
|
|
|
|
|
|
|
|
!Now zero out the larger index
|
|
|
|
!Now zero out the larger index
|
|
|
|
if(first) then
|
|
|
|
if(first) then
|
|
|
|
if(i > nei) then
|
|
|
|
if(i < nei) then
|
|
|
|
which_cell(:,i) = 0
|
|
|
|
which_cell(:,i) = 0
|
|
|
|
cycle atom_loop
|
|
|
|
cycle atom_loop
|
|
|
|
else
|
|
|
|
else
|
|
|
@ -135,7 +135,7 @@ module opt_delete
|
|
|
|
cell_list(num_nei,c(1) + ck, c(2) + cj, c(3) + ci) = 0
|
|
|
|
cell_list(num_nei,c(1) + ck, c(2) + cj, c(3) + ci) = 0
|
|
|
|
end if
|
|
|
|
end if
|
|
|
|
else
|
|
|
|
else
|
|
|
|
if(i < nei) then
|
|
|
|
if(i > nei) then
|
|
|
|
which_cell(:,i) = 0
|
|
|
|
which_cell(:,i) = 0
|
|
|
|
cycle atom_loop
|
|
|
|
cycle atom_loop
|
|
|
|
else
|
|
|
|
else
|
|
|
|