|
|
|
@ -468,8 +468,8 @@ module elements
|
|
|
|
|
|
|
|
|
|
do i = 1, atom_num
|
|
|
|
|
do j = 1, 3
|
|
|
|
|
if (r_atom(j,i) > max_bd(j)) max_bd(j) = r_atom(j,i) + lim_zero
|
|
|
|
|
if (r_atom(j,i) < min_bd(j)) min_bd(j) = r_atom(j,i) - lim_zero
|
|
|
|
|
if (r_atom(j,i) > max_bd(j)) max_bd(j) = r_atom(j,i) + tol
|
|
|
|
|
if (r_atom(j,i) < min_bd(j)) min_bd(j) = r_atom(j,i) - tol
|
|
|
|
|
end do
|
|
|
|
|
end do
|
|
|
|
|
|
|
|
|
@ -477,17 +477,18 @@ module elements
|
|
|
|
|
do inod = 1, ng_node(lat_ele(i))
|
|
|
|
|
do ibasis = 1, basisnum(lat_ele(i))
|
|
|
|
|
do j = 1, 3
|
|
|
|
|
if (r_node(j,ibasis,inod,i) > max_bd(j)) max_bd(j) = r_node(j,ibasis,inod,i) + lim_zero
|
|
|
|
|
if (r_node(j,ibasis,inod,i) < min_bd(j)) min_bd(j) = r_node(j,ibasis,inod,i) -lim_zero
|
|
|
|
|
|
|
|
|
|
if (r_node(j,ibasis,inod,i) > max_bd(j)) max_bd(j) = r_node(j,ibasis,inod,i) + tol
|
|
|
|
|
if (r_node(j,ibasis,inod,i) < min_bd(j)) min_bd(j) = r_node(j,ibasis,inod,i) - tol
|
|
|
|
|
end do
|
|
|
|
|
end do
|
|
|
|
|
end do
|
|
|
|
|
end do
|
|
|
|
|
|
|
|
|
|
do j = 1, 3
|
|
|
|
|
box_bd(2*j) = max_bd(j)
|
|
|
|
|
box_bd(2*j-1) = min_bd(j)
|
|
|
|
|
if(box_bc(j:j) == 's') then
|
|
|
|
|
box_bd(2*j) = max_bd(j)
|
|
|
|
|
box_bd(2*j-1) = min_bd(j)
|
|
|
|
|
end if
|
|
|
|
|
end do
|
|
|
|
|
end subroutine
|
|
|
|
|
|
|
|
|
|