byuflowlab / VortexLattice.jl

A Comprehensive Julia implementation of the Vortex Lattice Method
MIT License
48 stars 11 forks source link

Second Order Problem: Functions, Structs Not Accessible Unless I run it in a common atom tab #1

Closed moore54 closed 6 years ago

moore54 commented 6 years ago

Added .juliarc.jl with push!(LOAD_PATH,"/Users/kmoore/Dropbox/CodeRepos/VLM.jl/src") and similar for CCBlade.jl etc

when I run propwing.jl ccblade runs fine, but it can't access any of the VLM structs or functions unless I open VLM in a new tab and run it first.

But this is second order, so just recording it.

andrewning commented 6 years ago

That's because you haven't used the right path. It should be

push!(LOAD_PATH,"/Users/kmoore/Dropbox/CodeRepos")
andrewning commented 6 years ago

That’s the easiest option if you aren’t changing the modules. But if you were making changes to VLM or CCBlade you’d want to load them up in a new tab anyway (or use Reload.jl)