JuliaGeodynamics / LaMEM.jl

Julia interface to LaMEM (Lithosphere and Mantle Evolution Model)
GNU General Public License v3.0
24 stars 12 forks source link

Update Grid.jl and add mesh refinement tests #25

Closed wenrongcao closed 6 months ago

wenrongcao commented 6 months ago

The pull request is to fix the issue "non-uniform grid implementation not working #24" submitted by Wenrong Cao. It turns out that lines in Grid.jl could cause the problem.

The current version of code only makes mesh refinement if the segment number >2 (minimum 3). The pull request is to change segment number >2 to segment number >=2 so minimum two segments can be also be refined to the mesh.

A test file is added using simple falling sphere. The test file assigns only two segment mesh refinement in all axes.

boriskaus commented 6 months ago

Great job, thanks!