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
Copy file name to clipboardExpand all lines: src/modeling/core/coefficients.jl
+10-19Lines changed: 10 additions & 19 deletions
Original file line number
Diff line number
Diff line change
@@ -105,17 +105,8 @@ function duplicate_for_parallel(cache::ConductivityToDiffusivityCoefficientCache
105
105
)
106
106
end
107
107
108
-
"""
109
-
CoordinateSystemCoefficient(coordinate_system)
110
-
111
-
Helper to obtain the location in some possibly problem-specific coordinate system, e.g. for analytical coefficients (see [`AnalyticalCoefficient`](@ref)).
functionsetup_coefficient_cache(coefficient::CoordinateSystemCoefficient{<:CartesianCoordinateSystem}, qr::QuadratureRule{<:Any, <:AbstractArray{T}}, sdh::SubDofHandler) where T
141
+
functionsetup_coefficient_cache(cs::CartesianCoordinateSystem, qr::QuadratureRule{<:Any, <:AbstractArray{T}}, sdh::SubDofHandler) where T
151
142
cell =get_first_cell(sdh)
152
-
ip =getcoordinateinterpolation(coefficient.cs, cell)
143
+
ip =getcoordinateinterpolation(cs, cell)
153
144
fv = Ferrite.FunctionValues{0}(T, ip.ip, qr, ip) # We scalarize the interpolation again as an optimization step
functionsetup_coefficient_cache(coefficient::CoordinateSystemCoefficient{<:LVCoordinateSystem}, qr::QuadratureRule{<:Any, <:AbstractArray{T}}, sdh::SubDofHandler) where T
166
+
functionsetup_coefficient_cache(cs::LVCoordinateSystem, qr::QuadratureRule{<:Any, <:AbstractArray{T}}, sdh::SubDofHandler) where T
176
167
cell =get_first_cell(sdh)
177
-
ip =getcoordinateinterpolation(coefficient.cs, cell)
functionsetup_coefficient_cache(coefficient::CoordinateSystemCoefficient{<:BiVCoordinateSystem}, qr::QuadratureRule{<:Any,<:AbstractArray{T}}, sdh::SubDofHandler) where T
198
+
functionsetup_coefficient_cache(cs::BiVCoordinateSystem, qr::QuadratureRule{<:Any,<:AbstractArray{T}}, sdh::SubDofHandler) where T
208
199
cell =get_first_cell(sdh)
209
-
ip =getcoordinateinterpolation(coefficient.cs, cell)
0 commit comments