Skip to content

Commit 2196274

Browse files
committed
Fixes file path issues in BC tests
Updates file paths for GmshDiscreteModel to ensure tests correctly locate mesh files, and changes parameter naming for better code readability.
1 parent b469239 commit 2196274

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

test/SimulationsTests/BoundaryConditions.jl

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +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)
7+
geomodel = GmshDiscreteModel("test/models/" * meshfile)
88

99
# Domains
1010
order = 1
@@ -44,16 +44,16 @@ end
4444
@testset "Mesh movement stabilization" begin
4545

4646
meshfile = "test_BC2.msh"
47-
geomodel = GmshDiscreteModel("./test/models/" * meshfile)
47+
geomodel = GmshDiscreteModel("test/models/" * meshfile)
4848

49-
μParams = [6456.9137547089595, 896.4633794151492,
49+
Params = [6456.9137547089595, 896.4633794151492,
5050
1.999999451256222,
5151
1.9999960497608036,
5252
11747.646562400318,
5353
0.7841068624959612, 1.5386288924587603]
5454

55-
model_vacuum_mech_ = NonlinearMooneyRivlin2D_CV=1 * μParams[1], μ1=μParams[1], μ2=0.0, α1=6.0, α2=1.0, γ=6.0)
56-
model_vacuum_mech = HessianRegularization(mechano=model_vacuum_mech_, δ=1e-6 * μParams[1])
55+
model_vacuum_mech_ = NonlinearMooneyRivlin2D_CV=1 * Params[1], μ1=Params[1], μ2=0.0, α1=6.0, α2=1.0, γ=6.0)
56+
model_vacuum_mech = HessianRegularization(mechano=model_vacuum_mech_, δ=1e-6 * Params[1])
5757

5858

5959
# Domains

0 commit comments

Comments
 (0)