Use @__DIR__ instead of Pkg.dir

this allows installing and loading the package from elsewhere
This commit is contained in:
Tony Kelman
2017-08-05 04:17:44 -04:00
committed by Jukka Aho
parent 3cc43fafd2
commit dcd24e8e01
21 changed files with 30 additions and 30 deletions
+1 -1
View File
@@ -11,7 +11,7 @@ function get_model(::Type{Val{Symbol("mesh tie with curved 2d block")}};
dual_basis=false, use_forwarddiff=true, finite_strain=false,
geometric_stiffness=false)
meshfile = Pkg.dir("JuliaFEM") * "/test/testdata/block_2d_curved.med"
meshfile = @__DIR__() * "/testdata/block_2d_curved.med"
mesh = aster_read_mesh(meshfile)
upper = Problem(Elasticity, "upper", 2)