lyc102 / ifem

iFEM is a MATLAB software package containing robust, efficient, and easy-following codes for the main building blocks of adaptive finite element methods on unstructured simplicial grids in both two and three dimensions.
https://lyc102.github.io/ifem/
GNU General Public License v3.0
205 stars 80 forks source link

conservative eleminterpolate #2

Closed stoiver closed 4 years ago

stoiver commented 5 years ago

@lyc102 noticed that the coarsening using eleminterpolate was not exactly conservative. So added a line to eleminterploate to update the value of the quantity on the coarsened element as the average of the values on the two child elements.

scaomath commented 4 years ago

Hi, @stoiver I noticed Long @lyc102 already fixed this issue instead of merging this pull request. So I shall close this, and you can use git fetch upstream to sync your fork.