# Move mesh function inquiry

**URL:** <https://community.freefem.org/t/move-mesh-function-inquiry/116>\
**Category:** General Discussion\
**Created:** [August 27, 2019, 5:36am UTC](https://community.freefem.org/t/move-mesh-function-inquiry/116 "2019-08-27T05:36:38Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![robin997](https://avatars.discourse-cdn.com/v4/letter/r/dfb087/32.png) [@robin997](https://community.freefem.org/u/robin997)\
**Post date:** [August 27, 2019, 5:36am UTC](https://community.freefem.org/t/move-mesh-function-inquiry/116/1 "2019-08-27T05:36:38Z")

</div>

Hello,

I have a question: Using the move mesh function, do the FE functions move with it, or is the mesh the only thing that is moved?

For example, having a delta function  
d(x) = 1 only at x = 0.  
If I move mesh at x=0 to x=2, is the function now:  
d(x) = 1 only at x = 2 ?

* * *

I found the answer in the doc:  
After the movemesh, FE function does not update. But we can move the value by:

> real[int] tmp(u.n);  
> tmp = u; //save the value  
> u = 0;//to change the FEspace and mesh associated with u  
> u = tmp;//set the value of u without any mesh update

Robin

---

<div class="post-metadata">

**Author:** ![frederichecht](https://yyz2.discourse-cdn.com/flex030/user_avatar/community.freefem.org/frederichecht/32/15_2.png) [@frederichecht](https://community.freefem.org/u/frederichecht)\
**Post date:** [August 27, 2019, 6:28am UTC](https://community.freefem.org/t/move-mesh-function-inquiry/116/2 "2019-08-27T06:28:46Z")

</div>

read the section 3.2.7 Movemesh of the doc.
