JuliaFEM / JuliaFEM.jl

The JuliaFEM software library is a framework that allows for the distributed processing of large Finite Element Models across clusters of computers using simple programming models. It is designed to scale up from single servers to thousands of machines, each offering local computation and storage.
http://juliafem.github.io/JuliaFEM.jl/latest/
MIT License
249 stars 66 forks source link

Failed to precompile JuliaFEM #253

Open osullivryan opened 4 years ago

osullivryan commented 4 years ago

Hello JuliaFEM Team!

Julia version: 1.3.1 OS: Ubuntu 19.1 JuliaFEM version: Latest

I am getting the following error when I attempt to import JuliaFEM:

julia> import JuliaFEM
[ Info: Precompiling JuliaFEM [f80590ac-b429-510a-8a99-e7c46989f22d]
┌ Warning: Package FEMBase does not have TimerOutputs in its dependencies:
...

I believe this is the same as #249, however that doesn't look to have been solved. Any ideas how I can get past this error and use the package?

Thanks!

TeroFrondelius commented 4 years ago
] dev FEMBase
cd("~/.julia/dev/FEMBase")
] activate .
add  TimerOutputs

If it works, please make a pull request.

osullivryan commented 4 years ago

That gets me past the FEMBase TimerOutputs problem, however it leads to a TypeError problem:

julia> import JuliaFEM
[ Info: Precompiling JuliaFEM [f80590ac-b429-510a-8a99-e7c46989f22d]
WARNING: could not import Base.start into JuliaFEM
WARNING: could not import Base.next into JuliaFEM
WARNING: could not import Base.done into JuliaFEM
WARNING: could not import Base.endof into JuliaFEM
ERROR: LoadError: LoadError: TypeError: in AbstractElement, in M, expected M<:FEMBase.AbstractFieldSet, got Type{FEMBasis.Seg2}
buwudaoli commented 3 years ago

I found a useful reference as https://github.com/JuliaFEM/FEMBeam.jl/issues/24 and I verified its effectiveness. Based on the suggestion from this report, I changed all reported code (in error message to) add <:FEMBase.AbstractFieldSet as the first arg in Element(...), and finally "test JuliaFEM" can work with Julia 1.3 on WIN10 (although there are still some test failures reported). I think this issue could be fixed by adding an overloaded Element function (with <:FEMBase.AbstractFieldSet as the first arg) in package FEMBase, hope some one can help to implement it later.