Skip to content

Commit

Permalink
precompile
Browse files Browse the repository at this point in the history
  • Loading branch information
taylormcd committed May 17, 2018
1 parent 1412fc0 commit ba1bf27
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions src/Xfoil.jl
Original file line number Diff line number Diff line change
Expand Up @@ -10,14 +10,18 @@ else
error("Xfoil.jl not properly installed. Please run Pkg.build(\"Xfoil\") then restart Julia.")
end

__precompile__()

# Get globals once for all future use
function __init__()
global const xfoilglobals = getglobals()
global const xfoilglobals_cs = getglobals_cs()
end

# Load methods for getting XFOIL globals
include("xfoilglobals.jl")
include("xfoilglobals_cs.jl")

# Get globals once for all future use
xfoilglobals = getglobals()
xfoilglobals_cs = getglobals_cs()

# Load basic methods for running XFOIL
include("xfoilbasic.jl")
include("xfoilbasic_cs.jl")
Expand Down

0 comments on commit ba1bf27

Please sign in to comment.