|
|
@ -10,7 +10,7 @@ module io
|
|
|
|
|
|
|
|
|
|
|
|
integer :: outfilenum = 0, infilenum = 0
|
|
|
|
integer :: outfilenum = 0, infilenum = 0
|
|
|
|
character(len=100) :: outfiles(100), infiles(100), in_lattice_type=''
|
|
|
|
character(len=100) :: outfiles(100), infiles(100), in_lattice_type=''
|
|
|
|
logical :: force_overwrite, norefine
|
|
|
|
logical :: force_overwrite, norefine, all_new
|
|
|
|
real(kind=dp) :: in_lapa=0.0
|
|
|
|
real(kind=dp) :: in_lapa=0.0
|
|
|
|
public
|
|
|
|
public
|
|
|
|
contains
|
|
|
|
contains
|
|
|
@ -772,7 +772,7 @@ module io
|
|
|
|
!Now fit these into the global list of atom types, after this new_type_to_type is the actual global
|
|
|
|
!Now fit these into the global list of atom types, after this new_type_to_type is the actual global
|
|
|
|
!type of the atoms within this file
|
|
|
|
!type of the atoms within this file
|
|
|
|
do i = 1, new_atom_types
|
|
|
|
do i = 1, new_atom_types
|
|
|
|
call add_atom_type(new_type_to_name(i), new_type_to_type(i))
|
|
|
|
call add_atom_type(new_type_to_name(i), new_type_to_type(i), all_new)
|
|
|
|
end do
|
|
|
|
end do
|
|
|
|
!Read the number of lattice types, basisnum, and number of nodes for each lattice type
|
|
|
|
!Read the number of lattice types, basisnum, and number of nodes for each lattice type
|
|
|
|
read(11,*) new_lattice_types, (basisnum(i), i = lattice_types+1, lattice_types+new_lattice_types), &
|
|
|
|
read(11,*) new_lattice_types, (basisnum(i), i = lattice_types+1, lattice_types+new_lattice_types), &
|
|
|
@ -903,7 +903,7 @@ module io
|
|
|
|
print *, j
|
|
|
|
print *, j
|
|
|
|
do i = 1, j
|
|
|
|
do i = 1, j
|
|
|
|
call atommassspecies(atomic_masses(i), atomic_element)
|
|
|
|
call atommassspecies(atomic_masses(i), atomic_element)
|
|
|
|
call add_atom_type(atomic_element, atom_type_map(i))
|
|
|
|
call add_atom_type(atomic_element, atom_type_map(i), all_new)
|
|
|
|
print *, i, atom_type_map(i)
|
|
|
|
print *, i, atom_type_map(i)
|
|
|
|
end do
|
|
|
|
end do
|
|
|
|
|
|
|
|
|
|
|
@ -1057,7 +1057,7 @@ module io
|
|
|
|
!Read define atom_types by mass
|
|
|
|
!Read define atom_types by mass
|
|
|
|
do i = 1, j
|
|
|
|
do i = 1, j
|
|
|
|
call atommassspecies(atomic_masses(i), atomic_element)
|
|
|
|
call atommassspecies(atomic_masses(i), atomic_element)
|
|
|
|
call add_atom_type(atomic_element, atom_type_map(i))
|
|
|
|
call add_atom_type(atomic_element, atom_type_map(i), all_new)
|
|
|
|
end do
|
|
|
|
end do
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@ -1171,7 +1171,7 @@ module io
|
|
|
|
do i = 1, type_in
|
|
|
|
do i = 1, type_in
|
|
|
|
read(11,*) j, mass
|
|
|
|
read(11,*) j, mass
|
|
|
|
call ATOMMASSSPECIES(mass, atom_species)
|
|
|
|
call ATOMMASSSPECIES(mass, atom_species)
|
|
|
|
call add_atom_type(atom_species, type_map(i))
|
|
|
|
call add_atom_type(atom_species, type_map(i), all_new)
|
|
|
|
end do
|
|
|
|
end do
|
|
|
|
|
|
|
|
|
|
|
|
!Read useless info
|
|
|
|
!Read useless info
|
|
|
@ -1259,7 +1259,7 @@ module io
|
|
|
|
do i = 1, type_in
|
|
|
|
do i = 1, type_in
|
|
|
|
read(11,*) j, mass, textholder
|
|
|
|
read(11,*) j, mass, textholder
|
|
|
|
call ATOMMASSSPECIES(mass, atom_species)
|
|
|
|
call ATOMMASSSPECIES(mass, atom_species)
|
|
|
|
call add_atom_type(atom_species, type_map(i))
|
|
|
|
call add_atom_type(atom_species, type_map(i), all_new)
|
|
|
|
end do
|
|
|
|
end do
|
|
|
|
|
|
|
|
|
|
|
|
!Read useless info
|
|
|
|
!Read useless info
|
|
|
|