# Issue with movemesh and Grid Spacing in 1D Domain with Material Removal

**URL:** https://community.freefem.org/t/issue-with-movemesh-and-grid-spacing-in-1d-domain-with-material-removal/3901
**Category:** General Discussion
**Created:** [May 6, 2025, 6:37am UTC](https://community.freefem.org/t/issue-with-movemesh-and-grid-spacing-in-1d-domain-with-material-removal/3901 "2025-05-06T06:37:21Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![goutham2023](https://yyz2.discourse-cdn.com/flex030/user_avatar/community.freefem.org/goutham2023/32/1759_2.png) [@goutham2023](https://community.freefem.org/u/goutham2023)
#### Post date: [May 6, 2025, 6:37am UTC](https://community.freefem.org/t/issue-with-movemesh-and-grid-spacing-in-1d-domain-with-material-removal/3901/1 "2025-05-06T06:37:21Z")

</div>

Hello FreeFem community,

I’m working on a 1D simulation involving material removal over time. I’m using the movemesh command to update the domain dimensions. However, after interpolation, I noticed that the grid spacing only changes in the first element, while the rest of the domain remains unchanged.

I’m attaching the code for your reference. Could you please take a look and let me know what might be going wrong?

Thanks for your time and support.

Best regards,  
[materialremoval.zip](https://community.freefem.org/uploads/short-url/qaykUdBIOZFAoqIQabnGTyY4KIH.zip) (3.5 KB)
