mirror of
https://github.com/JuliaFEM/JuliaFEM.jl.git
synced 2026-09-27 20:26:58 +00:00
Use @__DIR__ instead of Pkg.dir
this allows installing and loading the package from elsewhere
This commit is contained in:
@@ -7,7 +7,7 @@ using JuliaFEM.Postprocess
|
||||
using JuliaFEM.Testing
|
||||
|
||||
@testset "zero eigenmode model" begin
|
||||
meshfile = Pkg.dir("JuliaFEM") * "/test/testdata/primitives.med"
|
||||
meshfile = @__DIR__() * "/testdata/primitives.med"
|
||||
mesh = aster_read_mesh(meshfile, "TETRA_TET10_1")
|
||||
model = Problem(mesh, Elasticity, "TET", 3)
|
||||
update!(model.elements, "youngs modulus", 10.0)
|
||||
|
||||
Reference in New Issue
Block a user