Skip to content

Commit

Permalink
fixed some infile outfile business
Browse files Browse the repository at this point in the history
  • Loading branch information
louisponet committed Nov 17, 2020
1 parent c1a28f8 commit 2f0e7dd
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
5 changes: 3 additions & 2 deletions src/inputAPI.jl
Original file line number Diff line number Diff line change
Expand Up @@ -259,8 +259,9 @@ end

function input_from_kpoints(template::DFInput, newname, kpoints, newflags...)
newcalc = DFInput(template, newname, newflags...)
newcalc.infile = join(newname, ".", splitext(infile(newcalc))[2:end])
newcalc.outfile = join(newname, ".", splitext(outfile(newcalc))[2:end])
newcalc.infile = newname * splitext(infilename(newcalc))[2]
newcalc.outfile = newname * splitext(outfilename(newcalc))[2]
@show newcalc.infile
setkpoints!(newcalc, kpoints, print=false)
return newcalc
end
Expand Down
2 changes: 1 addition & 1 deletion src/structure.jl
Original file line number Diff line number Diff line change
Expand Up @@ -275,7 +275,7 @@ function update_geometry!(str1::AbstractStructure, str2::AbstractStructure)
if id === nothing
@error "No atom of the species $(name(at1)) found in the second structure"
end
setposition!(at1, atoms(str2)[id].position_cryst, cell(str1))
set_position!(at1, atoms(str2)[id].position_cryst, cell(str1))
end
end

Expand Down

0 comments on commit 2f0e7dd

Please sign in to comment.