Skip to content

Commit

Permalink
Fix init of ods without x_points
Browse files Browse the repository at this point in the history
  • Loading branch information
orso82 committed Dec 10, 2024
1 parent bfc7960 commit 9e84c12
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/parameters/parameters_inits.jl
Original file line number Diff line number Diff line change
Expand Up @@ -550,8 +550,8 @@ function MXHboundary(ini::ParametersAllInits, dd::IMAS.dd; kw...)::MXHboundary

if boundary_from == :ods
# in case of ODS we have all information to generate MXHboundary
RX = [x_point.r for x_point in eqt.boundary.x_point]
ZX = [x_point.z for x_point in eqt.boundary.x_point]
RX = Float64[x_point.r for x_point in eqt.boundary.x_point]
ZX = Float64[x_point.z for x_point in eqt.boundary.x_point]
mxhb = MXHboundary(mxh, ini.equilibrium.xpoints in (:upper, :double), ini.equilibrium.xpoints in (:lower, :double), RX, ZX, pr, pz)
else
# all other cases we must reconcile mxh boundary with requested x-points
Expand Down

0 comments on commit 9e84c12

Please sign in to comment.