You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
"Invalid layer index: $layer_idx. Model has $nL layers (including air). "*
64
+
"Valid earth layer indices are 2:$nL.",
65
+
)
66
+
67
+
Lair = model.layers[1]
68
+
Lsel = model.layers[layer_idx]
69
+
70
+
ρ =Matrix{T}(undef, 2, nF)
71
+
ε =similar(ρ)
72
+
μ =similar(ρ)
73
+
74
+
@inboundsfor j in1:nF
75
+
ρ[1, j] =T(Lair.rho_g[j])
76
+
ε[1, j] =T(Lair.eps_g[j])
77
+
μ[1, j] =T(Lair.mu_g[j])
78
+
79
+
ρ[2, j] =T(Lsel.rho_g[j])
80
+
ε[2, j] =T(Lsel.eps_g[j])
81
+
μ[2, j] =T(Lsel.mu_g[j])
82
+
end
83
+
84
+
return ρ, ε, μ
85
+
end
86
+
87
+
# """
88
+
# $(TYPEDSIGNATURES)
89
+
90
+
# Functor implementation for `EnforceLayer`.
91
+
92
+
# Takes a multi-layer `EarthModel` and returns a new two-layer model (air + one effective earth layer) based on the properties of the layer specified in the `EnforceLayer` instance.
93
+
94
+
# # Returns
95
+
# - A `Vector{EarthLayer}` containing two layers: the original air layer and the selected earth layer.
0 commit comments