|
1 | 1 | mutable struct GEQDSKFile |
2 | 2 | file::String # Source file |
| 3 | + time::Float64 # Time of the equilibrium reconstruction, in seconds |
3 | 4 | nw::Int # Number of horizontal R grid points |
4 | 5 | nh::Int # Number of vertical Z grid points |
5 | 6 | r::AbstractRange{Float64} # R grid points |
@@ -75,6 +76,7 @@ function readg(gfile) |
75 | 76 | s = split(desc) |
76 | 77 |
|
77 | 78 | time = Meta.parse(s[end-3]) |
| 79 | + time /= 1000.0 # Assume it was written in ms and convert to s |
78 | 80 | idum = Meta.parse(s[end-2]) |
79 | 81 | nw = Meta.parse(s[end-1]) |
80 | 82 | nh = Meta.parse(s[end]) |
@@ -160,7 +162,7 @@ function readg(gfile) |
160 | 162 | z = range(zmid - 0.5*zdim, zmid + 0.5*zdim, length=nh) |
161 | 163 | psi = range(simag, sibry, length=nw) |
162 | 164 |
|
163 | | - g = GEQDSKFile(gfile, nw,nh,r,z,rdim,zdim,rleft,zmid,nbbbs,rbbbs,zbbbs,limitr,rlim,zlim, |
| 165 | + g = GEQDSKFile(gfile,time,nw,nh,r,z,rdim,zdim,rleft,zmid,nbbbs,rbbbs,zbbbs,limitr,rlim,zlim, |
164 | 166 | rcentr,bcentr,rmaxis,zmaxis,simag,sibry,psi,current,fpol,pres,ffprim,pprime, |
165 | 167 | qpsi,psirz,rhovn) |
166 | 168 |
|
|
0 commit comments