# Tgv=-10,-20,-30

**URL:** <https://community.freefem.org/t/tgv-10-20-30/4399>\
**Category:** Feature Request\
**Created:** [December 1, 2026, 2:53pm UTC](https://community.freefem.org/t/tgv-10-20-30/4399 "2026-12-01T14:53:30Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![fb77](https://yyz2.discourse-cdn.com/flex030/user_avatar/community.freefem.org/fb77/32/3796_2.png) [@fb77](https://community.freefem.org/u/fb77)\
**Post date:** [December 1, 2026, 2:53pm UTC](https://community.freefem.org/t/tgv-10-20-30/4399/1 "2026-12-01T14:53:30Z")

</div>

Hello everyone,

Currently, setting `tgv=-10` when using a `varf` sets the line of the matrix (corresponding to the dof involved in the `on()` boundary condition) to 0, and the right-hand side to \pi\_h g with g the function provided in the `on()` as rhs.  
Since this value `tgv=-10` is used to cancel the line, I think that the right-hand side should be also set to 0 (for the corresponding dof) instead of \pi\_h g, for coherence.  
Then the really desired right-hand side can be set separately, by adding another matrix and associated right-hand side, both with `tgv=-1`.

The same rule should be also applied for `tgv=-20`, `tgv=-30`.  
At least, for me this modified behaviour would simplify the coding of boundary conditions when the system involves several matrices that have to be added.
