From f3c8add983269576db7edf91b30d2dfb57fddf94 Mon Sep 17 00:00:00 2001 From: lijas Date: Tue, 5 Nov 2024 12:45:29 +0100 Subject: [PATCH] try runic --- src/Dofs/DofHandler.jl | 8 +++++--- src/interpolations.jl | 2 +- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/src/Dofs/DofHandler.jl b/src/Dofs/DofHandler.jl index 8bc4ad8765..84f59e62b7 100644 --- a/src/Dofs/DofHandler.jl +++ b/src/Dofs/DofHandler.jl @@ -930,7 +930,7 @@ function evaluate_at_grid_nodes(dh::DofHandler, u::AbstractVector, fieldname::Sy end # Internal method that have the vtk option to allocate the output differently -function _evaluate_at_grid_nodes(dh::DofHandler{sdim}, u::AbstractVector{T}, fieldname::Symbol, ::Val{vtk}=Val(false)) where {T, vtk, sdim} +function _evaluate_at_grid_nodes(dh::DofHandler{sdim}, u::AbstractVector{T}, fieldname::Symbol, ::Val{vtk} = Val(false)) where {T, vtk, sdim} # Make sure the field exists fieldname ∈ getfieldnames(dh) || error("Field $fieldname not found.") # Figure out the return type (scalar or vector) @@ -966,8 +966,10 @@ function _evaluate_at_grid_nodes(dh::DofHandler{sdim}, u::AbstractVector{T}, fie end # Loop over the cells and use shape functions to compute the value -function _evaluate_at_grid_nodes!(data::Union{Vector,Matrix}, sdh::SubDofHandler, - u::AbstractVector{T}, cv::CellValues, drange::UnitRange) where {T} +function _evaluate_at_grid_nodes!( + data::Union{Vector, Matrix}, sdh::SubDofHandler, + u::AbstractVector{T}, cv::CellValues, drange::UnitRange + ) where {T} ue = zeros(T, length(drange)) for cell in CellIterator(sdh) # Note: We are only using the shape functions: no reinit!(cv, cell) necessary diff --git a/src/interpolations.jl b/src/interpolations.jl index 78fffd7655..8bf9edcbda 100644 --- a/src/interpolations.jl +++ b/src/interpolations.jl @@ -62,7 +62,7 @@ n_dbc_components(ip::Interpolation) = n_components(ip) Return the type of `shape_value(ip::Interpolation, ξ::Vec, ib::Int)`. """ -shape_value_type(::Interpolation, ::Type{T}) where {T <: Number} +shape_value_type(::Interpolation, ::Type{T}) where {T <: Number} shape_value_type(::ScalarInterpolation, ::Type{T}) where {T <: Number} = T shape_value_type(::VectorInterpolation{vdim}, ::Type{T}) where {vdim, T <: Number} = Vec{vdim, T}