Skip to content

Commit 0a41d98

Browse files
committed
Uses projdir for mesh file paths
Updates the mesh file paths to use `projdir` to ensure correct file resolution regardless of the current working directory. This improves the robustness of the tests by making them independent of the execution environment.
1 parent 2196274 commit 0a41d98

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

test/SimulationsTests/BoundaryConditions.jl

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,7 @@ using Gridap.FESpaces
44
@testset "Dirichlet BC testing analytical mapping" begin
55

66
meshfile = "test_BC1.msh"
7-
geomodel = GmshDiscreteModel("test/models/" * meshfile)
8-
7+
geomodel = GmshDiscreteModel(projdir("test/models/" * meshfile))
98
# Domains
109
order = 1
1110
degree = 1 * order
@@ -44,7 +43,7 @@ end
4443
@testset "Mesh movement stabilization" begin
4544

4645
meshfile = "test_BC2.msh"
47-
geomodel = GmshDiscreteModel("test/models/" * meshfile)
46+
geomodel = GmshDiscreteModel(projdir("test/models/" * meshfile))
4847

4948
Params = [6456.9137547089595, 896.4633794151492,
5049
1.999999451256222,
@@ -128,7 +127,7 @@ end
128127

129128
xh = FEFunction(Uu, zero_free_values(Uu))
130129
comp_model_vacmech = StaticNonlinearModel(res_vacmech, jac_vacmech, Uu, Vu, Du_air; nls=nls_vacmech, xh=xh)
131-
args_vacmech = Dict(:stepping => (nsteps=1, maxbisec=5), :ProjectDirichlet =>true)
130+
args_vacmech = Dict(:stepping => (nsteps=1, maxbisec=5), :ProjectDirichlet => true)
132131

133132
nsteps = 10
134133
flagconv = 1 # convergence flag 0 (max bisections) 1 (max steps)

0 commit comments

Comments
 (0)