Skip to content

Commit

Permalink
Make FEMBeam.jl compatible with Julia v1.0 (#17)
Browse files Browse the repository at this point in the history
  • Loading branch information
ahojukka5 committed Sep 3, 2018
1 parent b2ef91a commit 7fa6416
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 8 deletions.
1 change: 0 additions & 1 deletion .travis.yml
Expand Up @@ -10,7 +10,6 @@ julia:

matrix:
allow_failures:
- julia: 1.0
- julia: nightly

after_success:
Expand Down
2 changes: 1 addition & 1 deletion REQUIRE
@@ -1,2 +1,2 @@
julia 0.7 1.0-
julia 1
FEMBase
10 changes: 8 additions & 2 deletions src/FEMBeam.jl
Expand Up @@ -2,10 +2,16 @@
# License is MIT: see https://github.com/JuliaFEM/FEMBeam.jl/blob/master/LICENSE

"""
FEMBeam - Beam implementation for JuliaFEM
FEMBeam
Beam implementation for JuliaFEM.
# Supported beams
- Euler-Bernoulli beam in 3d
- Euler-Bernoulli beam in 3D. Approximation of displacement field is done using
Hermite C1-continuous interpolation polynomials in bending and C0-continuous
Lagrange interpolation polynomials is axial direction and twisting. Each node
has 6 degrees of freedom.
"""
module FEMBeam
Expand Down
8 changes: 4 additions & 4 deletions src/beam2d.jl
Expand Up @@ -2,13 +2,13 @@
# License is MIT: see https://github.com/JuliaFEM/FEMBeam.jl/blob/master/LICENSE

"""
Beam2D - Euler-Bernoulli beam for 2d problems
Beam2D
Euler-Bernoulli beam for 2d problems.
"""
struct Beam2D <: FieldProblem end

function FEMBase.get_unknown_field_name(::Problem{Beam2D})
return "displacement"
end
FEMBase.get_unknown_field_name(::Problem{Beam2D}) = "displacement"

function FEMBase.assemble_elements!(::Problem{Beam2D}, ::Assembly,
elements::Vector{Element{B}}, ::Float64) where B
Expand Down

0 comments on commit 7fa6416

Please sign in to comment.