Minor: IO change and sfcf change

parent c4730b25
...@@ -13,7 +13,7 @@ function read_prop(fname::String) ...@@ -13,7 +13,7 @@ function read_prop(fname::String)
end end
ihdr = Vector{Int32}(undef, 2) ihdr = Vector{Int32}(undef, 2)
BDIO_read(fb, ihdr) BDIO_read(fb, ihdr)
if (ihdr[1] != convert(Int32, 1653996111)) && (ihdr[2] != convert(Int32, 2)) if (ihdr[1] != convert(Int32, 1753996112)) && (ihdr[2] != convert(Int32, 5))
error("Wrong file format [header]") error("Wrong file format [header]")
end end
...@@ -81,7 +81,7 @@ Saves propagator `psi` in the file `fname` using the native (BDIO) format. ...@@ -81,7 +81,7 @@ Saves propagator `psi` in the file `fname` using the native (BDIO) format.
""" """
function save_prop(fname::String, psi, lp::SpaceParm{4,M,B,D}, dpar::DiracParam; run::Union{Nothing,String}=nothing) where {M,B,D} function save_prop(fname::String, psi, lp::SpaceParm{4,M,B,D}, dpar::DiracParam; run::Union{Nothing,String}=nothing) where {M,B,D}
ihdr = [convert(Int32, 1653996111),convert(Int32,2)] ihdr = [convert(Int32, 1753996112),convert(Int32,5)]
UID_HDR = 14 UID_HDR = 14
if isfile(fname) if isfile(fname)
......
...@@ -64,6 +64,6 @@ include("Solvers/Solvers.jl") ...@@ -64,6 +64,6 @@ include("Solvers/Solvers.jl")
using .Solvers using .Solvers
export CG! export CG!
export propagator!, bndpropagator!, Tbndpropagator!, bndtobnd export propagator!, bndpropagator!, Tbndpropagator!, bndtobnd
export fP, fA, kV, kT export fP, fA
end # module end # module
...@@ -26,7 +26,7 @@ include("Propagators.jl") ...@@ -26,7 +26,7 @@ include("Propagators.jl")
export propagator!, bndpropagator!, Tbndpropagator!, bndtobnd export propagator!, bndpropagator!, Tbndpropagator!, bndtobnd
include("sfcf.jl") include("sfcf.jl")
export fP, fA, kV, kT export fP, fA
end end
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment