Skip to content

Commit b4a511a

Browse files
committed
Updates
1 parent a26f5dd commit b4a511a

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

src/Calculations/calculation.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -558,7 +558,7 @@ function rm_tmp_flags!(c::Calculation{QE})
558558
end
559559

560560
infile_outfile_str(c::Calculation) = "< $(c.infile) > $(c.outfile)"
561-
remote_calcs(job, c::Calculation) = [RemoteHPC.Calculation(c.exec, Calculations.infile_outfile_str(c), c.run)]
561+
remote_calcs(job, c::Calculation) = [RemoteHPC.Process(c.exec, Calculations.infile_outfile_str(c), c.run)]
562562

563563
hasflag(exec::Exec, s::Symbol) = haskey(exec.flags, s)
564564

src/Calculations/wannier.jl

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -172,7 +172,7 @@ function Emin_from_projwfc(structure::Structure, states, bands::Vector{Band},
172172
end
173173

174174
function remote_calcs(job, _calculation::Calculation{Wannier90})
175-
calcs = RemoteHPC.Calculation[]
175+
calcs = RemoteHPC.Process[]
176176
filename = _calculation.infile
177177
should_run = _calculation.run
178178
nscf = getfirst(x -> Calculations.isnscf(x), job.calculations)
@@ -183,7 +183,7 @@ function remote_calcs(job, _calculation::Calculation{Wannier90})
183183
pw2wan_exec = Exec(name = "", dir=nscf.exec.dir, exec="pw2wannier90.x", modules=nscf.exec.modules)
184184

185185
preprocess = get(_calculation, :preprocess, false)
186-
return [RemoteHPC.Calculation(_calculation.exec, "-pp $filename > $(_calculation.outfile)", preprocess || should_run),
187-
RemoteHPC.Calculation(pw2wan_exec, "-pd .true. < pw2wan_$(splitext(filename)[1]).in > pw2wan_$(splitext(filename)[1]).out", preprocess || should_run),
188-
RemoteHPC.Calculation(_calculation.exec, "$filename > $(_calculation.outfile)", should_run)]
186+
return [RemoteHPC.Process(_calculation.exec, "-pp $filename > $(_calculation.outfile)", preprocess || should_run),
187+
RemoteHPC.Process(pw2wan_exec, "-pd .true. < pw2wan_$(splitext(filename)[1]).in > pw2wan_$(splitext(filename)[1]).out", preprocess || should_run),
188+
RemoteHPC.Process(_calculation.exec, "$filename > $(_calculation.outfile)", should_run)]
189189
end

src/Client/job.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -156,7 +156,7 @@ function RemoteHPC.save(job::Job, workflow = nothing; versioncheck=true, kwargs.
156156
@info "Job version: $(curver) => $(job.version)."
157157
end
158158
job.dir = Jobs.main_job_dir(job)
159-
remote_calcs = RemoteHPC.Calculation[]
159+
remote_calcs = RemoteHPC.Process[]
160160
for c in job.calculations
161161
append!(remote_calcs, Calculations.remote_calcs(job, c))
162162
end

0 commit comments

Comments
 (0)