Skip to content

Commit 6309808

Browse files
committed
add test for Gmsh import
1 parent 247d445 commit 6309808

File tree

2 files changed

+14
-0
lines changed

2 files changed

+14
-0
lines changed

test/runtests.jl

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,10 @@ end
5757
include("test_GMT.jl")
5858
end
5959

60+
@testset "Gmsh integration" begin
61+
include("test_Gmsh.jl")
62+
end
63+
6064
@testset "Event counts" begin
6165
include("test_event_counts.jl")
6266
end

test/test_Gmsh.jl

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
using Test
2+
using GeophysicalModelGenerator, GridapGmsh
3+
4+
5+
# Read a Gmsh file
6+
fname="test_files/subduction_ptatin.msh"
7+
fe_data, tag_names = import_Gmsh(fname)
8+
@test sum(fe_data.cellfields.regions) == 830
9+
10+

0 commit comments

Comments
 (0)