can anyone help me in solving the error in collect_cell_matrix in gridap. i have searched about it and it seems that it is about gridap codes itself.
More information is needed to effectively suggest solutions. Please see
i get this error
AssertionError: ndims(eltype(cell_mat)) == 2
Stacktrace:
[1] collect_cell_matrix(trial::TrialFESpace{Gridap.FESpaces.UnconstrainedFESpace{Vector{Float64}, Gridap.FESpaces.NodeToDofGlue{VectorValue{2, Int32}}}}, test::Gridap.FESpaces.UnconstrainedFESpace{Vector{Float64}, Gridap.FESpaces.NodeToDofGlue{VectorValue{2, Int32}}}, a::Gridap.CellData.DomainContribution)
@ Gridap.FESpaces C:\Users\marya.julia\packages\Gridap\971dU\src\FESpaces\Assemblers.jl:399
[2] assemble_matrix(f::var"#41#43", a::Gridap.FESpaces.GenericSparseMatrixAssembler, U::TrialFESpace{Gridap.FESpaces.UnconstrainedFESpace{Vector{Float64}, Gridap.FESpaces.NodeToDofGlue{VectorValue{2, Int32}}}}, V::Gridap.FESpaces.UnconstrainedFESpace{Vector{Float64}, Gridap.FESpaces.NodeToDofGlue{VectorValue{2, Int32}}})
@ Gridap.FESpaces C:\Users\marya.julia\packages\Gridap\971dU\src\FESpaces\Assemblers.jl:285
[3] assemble_matrix(f::Function, U::TrialFESpace{Gridap.FESpaces.UnconstrainedFESpace{Vector{Float64}, Gridap.FESpaces.NodeToDofGlue{VectorValue{2, Int32}}}}, V::Gridap.FESpaces.UnconstrainedFESpace{Vector{Float64}, Gridap.FESpaces.NodeToDofGlue{VectorValue{2, Int32}}})
@ Gridap.FESpaces C:\Users\marya.julia\packages\Gridap\971dU\src\FESpaces\Assemblers.jl:342
[4] top-level scope
@ In[35]:1
i think the error comes from this function
function MatrixOf(fem_params)
return assemble_matrix(fem_params.U_Disp, fem_params.V0_Disp) do u, v
0.5 * ∫(((p->Em(p))∘pth) * C_mat)fem_params.dΩ
end
end
It would help to provide a MWE (see again the above mentioned link on helping others help you).