Skip to content

Commit

Permalink
Change print statements to debug output in src/io.jl
Browse files Browse the repository at this point in the history
Co-authored-by: Orso Meneghini <[email protected]>
  • Loading branch information
eldond and orso82 committed Aug 8, 2024
1 parent bd7ff14 commit 1045e2d
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/io.jl
Original file line number Diff line number Diff line change
Expand Up @@ -396,7 +396,7 @@ function geqdsk2imas!(
geqdsk_cocos = CoordinateConventions.identify_cocos(
sign(g.bcentr), sign(g.current), sign(g.qpsi[1]), sign(g.psi[end] - g.psi[1]), cocos_clockwise_phi,
)[1]
println(" identified COCOS=$geqdsk_cocos")
@debug " identified COCOS=$geqdsk_cocos"
end
tc = CoordinateConventions.transform_cocos(geqdsk_cocos, dd_cocos)

Expand Down Expand Up @@ -466,7 +466,7 @@ function geqdsk2imas!(
geqdsk_cocos = CoordinateConventions.identify_cocos(
sign(g.bcentr), sign(g.current), sign(g.qpsi[1]), sign(g.psi[end] - g.psi[1]), cocos_clockwise_phi,
)[1]
println(" identified COCOS=$geqdsk_cocos")
@debug " identified COCOS=$geqdsk_cocos"
end
tc = CoordinateConventions.transform_cocos(geqdsk_cocos, dd_cocos)

Expand Down Expand Up @@ -547,7 +547,7 @@ function derived_g2imas!(
geqdsk_cocos = CoordinateConventions.identify_cocos(
sign(g.bcentr), sign(g.current), sign(g.qpsi[1]), sign(g.psi[end] - g.psi[1]), cocos_clockwise_phi
)[1]
println(" identified COCOS=$geqdsk_cocos")
@debug " identified COCOS=$geqdsk_cocos"
end
tc = CoordinateConventions.transform_cocos(geqdsk_cocos, dd_cocos)

Expand Down Expand Up @@ -615,7 +615,7 @@ function geqdsk2wall!(
geqdsk_cocos = CoordinateConventions.identify_cocos(
sign(g.bcentr), sign(g.current), sign(g.qpsi[1]), sign(g.psi[end] - g.psi[1]), cocos_clockwise_phi,
)[1]
println(" identified COCOS=$geqdsk_cocos")
@debug " identified COCOS=$geqdsk_cocos"
end
tc = CoordinateConventions.transform_cocos(geqdsk_cocos, dd_cocos)
resize!(wall.description_2d, 1)
Expand Down Expand Up @@ -716,15 +716,15 @@ function imas2geqdsk(

bcentr = dd.equilibrium.vacuum_toroidal_field.b0[time_index] ./ tc["B"]
time = eqt.time
println("eqt.time = $(eqt.time), time out = $time")
@debug "eqt.time = $(eqt.time), time out = $time"
rleft = minimum(r)
rdim = maximum(r) - rleft
zdim = maximum(z) - minimum(z)
nw = length(r)
nh = length(z)
itime = Int(round(time * 1000))
gfile = "g" * lpad(shot, 6, '0') * "." * lpad(itime, 5, '0')
println("shot $shot, gfile = $gfile")
@debug "shot $shot, gfile = $gfile"

r = range(rleft, rleft + rdim, length=nw)
z = range(zmid - 0.5*zdim, zmid + 0.5*zdim, length=nh)
Expand Down

0 comments on commit 1045e2d

Please sign in to comment.