Skip to content
This repository has been archived by the owner on Jun 24, 2022. It is now read-only.

Commit

Permalink
use more specific VERSION cutoff for converting .| result to BitArray
Browse files Browse the repository at this point in the history
worth noting the method definition of this as broadcast is implemented by Compat on 0.5
JuliaLang/Compat.jl#306
  • Loading branch information
tkelman authored Apr 5, 2017
1 parent 6ad9bcc commit 72e34b3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/mesh_tools/fem_boundary.jl
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ function findboundary(elem::AbstractArray;bdflag=[])
bdnode = find(is_bdnode)
end
is_bdelem = is_bdnode[elem[:,1]] .| is_bdnode[elem[:,2]] .| is_bdnode[elem[:,3]]
if VERSION < v"0.6-"
if VERSION < v"0.6.0-dev.1632" # Julia PR #17623 changed the result of broadcast(|, ...) from Array{Bool} to BitArray
is_bdelem = convert(BitArray,is_bdelem)
end
return(bdnode,bdedge,is_bdnode,is_bdelem)
Expand Down

0 comments on commit 72e34b3

Please sign in to comment.