mirror of
https://github.com/JuliaFEM/JuliaFEM.jl.git
synced 2026-10-03 14:47:55 +00:00
Use @__DIR__ instead of Pkg.dir
this allows installing and loading the package from elsewhere
This commit is contained in:
@@ -49,7 +49,7 @@ using JuliaFEM.Testing
|
||||
end
|
||||
|
||||
function solve_rod_model_elasticity(eltype)
|
||||
fn = Pkg.dir("JuliaFEM") * "/test/testdata/rod_short.med"
|
||||
fn = @__DIR__() * "/testdata/rod_short.med"
|
||||
mesh = aster_read_mesh(fn, eltype)
|
||||
element_sets = join(keys(mesh.element_sets), ", ")
|
||||
info("element sets: $element_sets")
|
||||
|
||||
Reference in New Issue
Block a user