Skip to content

Commit

Permalink
Working version
Browse files Browse the repository at this point in the history
  • Loading branch information
davidavdav committed Mar 10, 2014
1 parent 227d4e5 commit ed1d13c
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/SGEArrays.jl
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
## SGEArrays.jl. Iterators for use in conjunction with Sun Grid Engine
## (c) 2014 David A. van Leeuwen
##
Module SGEArrays
module SGEArrays

export issgearray, sgearray
export issgearray, SGEArray

include("sgetypes.jl")
include("sgearray.jl")
Expand Down
2 changes: 1 addition & 1 deletion src/sgearray.jl
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
## (c) 2014 David A. van Leeuwen
##

issge() = haskey(ENV, "SGE_TASK_ID") && haskey(ENV, "SGE_TASK_LAST")
issgearray() = haskey(ENV, "SGE_TASK_ID") && haskey(ENV, "SGE_TASK_LAST")

Base.start(sge::SGEArray) = sge.start
Base.done(sge::SGEArray, state::Int) = state > length(sge.array)
Expand Down
2 changes: 1 addition & 1 deletion src/sgetypes.jl
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ type SGEArray
step::Int
array::Array
function SGEArray(a::Array)
if !issge()
if !issgearray()
a
else
start = int(ENV["SGE_TASK_ID"])
Expand Down

0 comments on commit ed1d13c

Please sign in to comment.