# Vector assembly on dirichlet dof

**URL:** <https://discourse.julialang.org/t/vector-assembly-on-dirichlet-dof/101410>\
**Category:** New to Julia\
**Tags:** gridap\
**Created:** [July 9, 2023, 6:55pm UTC](https://discourse.julialang.org/t/vector-assembly-on-dirichlet-dof/101410 "2023-07-09T18:55:45Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![mary](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/mary/32/53139_2.png) [@mary](https://discourse.julialang.org/u/mary)\
**Post date:** [July 9, 2023, 6:55pm UTC](https://discourse.julialang.org/t/vector-assembly-on-dirichlet-dof/101410/1 "2023-07-09T18:55:45Z")

</div>

Hi, I want to make a vector in my test space including dirichlet dofs and i run below code in gridap but it gives me the error indicating it belongs to interface. do you know how can i solve this?

```julia
    cv = assemble_vector(get_dirichlet_dof_values(fem_params.U0_Disp), fem_params.U0_Disp)

```

error

```julia
This function belongs to an interface definition and cannot be used.

Stacktrace:
 [1] error(s::String)
   @ Base .\error.jl:35
 [2] macro expansion
   @ C:\Users\marya\.julia\packages\Gridap\971dU\src\Helpers\Macros.jl:9 [inlined]
 [3] collect_cell_vector(test::TrialFESpace{Gridap.FESpaces.UnconstrainedFESpace{Vector{Float64}, Gridap.FESpaces.NodeToDofGlue{VectorValue{2, Int32}}}}, vec_contributions::Vector{Float64})
   @ Gridap.FESpaces C:\Users\marya\.julia\packages\Gridap\971dU\src\FESpaces\Assemblers.jl:377
 [4] assemble_vector(f::Vector{Float64}, a::Gridap.FESpaces.GenericSparseMatrixAssembler, V::TrialFESpace{Gridap.FESpaces.UnconstrainedFESpace{Vector{Float64}, Gridap.FESpaces.NodeToDofGlue{VectorValue{2, Int32}}}})
   @ Gridap.FESpaces C:\Users\marya\.julia\packages\Gridap\971dU\src\FESpaces\Assemblers.jl:325
 [5] assemble_vector(f::Vector{Float64}, V::TrialFESpace{Gridap.FESpaces.UnconstrainedFESpace{Vector{Float64}, Gridap.FESpaces.NodeToDofGlue{VectorValue{2, Int32}}}})
   @ Gridap.FESpaces C:\Users\marya\.julia\packages\Gridap\971dU\src\FESpaces\Assemblers.jl:352
 [6] top-level scope
   @ In[57]:1

```

thank you
