# Update Dirichlet boundary conditions

**URL:** <https://getfem.discourse.group/t/update-dirichlet-boundary-conditions/35>\
**Category:** Questions and issues\
**Created:** [March 15, 2024, 3:24pm UTC](https://getfem.discourse.group/t/update-dirichlet-boundary-conditions/35 "2024-03-15T15:24:59Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![jab2443](https://avatars.discourse-cdn.com/v4/letter/j/73ab20/32.png) [@jab2443](https://getfem.discourse.group/u/jab2443)\
**Post date:** [March 15, 2024, 3:24pm UTC](https://getfem.discourse.group/t/update-dirichlet-boundary-conditions/35/1 "2024-03-15T15:24:59Z")

</div>

Hello,

I have run into an issue and hope I am simply missing something obvious. I specify Dirichlet boundary conditions using add\_generalized\_Dirichlet\_condition\_with\_multipliers using the Python interface. I supply the optional argument dataname which references a pre-defined variable added with add\_initialized\_fem\_data. This works fine for the beginning of my problem or when the boundary condition remains constant through time.

However, I would like for the boundary condition to update with time. Changing the value of the data variable using set\_variable does not seem to result in a change in the applied boundary condition. Is there some other update function I need to call to get that change to propagate to the boundary condition?

Thank you,  
Janine

---

<div class="post-metadata">

**Author:** ![jab2443](https://avatars.discourse-cdn.com/v4/letter/j/73ab20/32.png) [@jab2443](https://getfem.discourse.group/u/jab2443)\
**Post date:** [March 17, 2024, 1:55pm UTC](https://getfem.discourse.group/t/update-dirichlet-boundary-conditions/35/2 "2024-03-17T13:55:02Z")

</div>

Hi,

Sorry, it seems I had run into a separate issue that was causing a singular matrix and not solving at all. Once I resolved that I was able to see updates to the boundary conditions.

Thanks,  
Janine
