Skip to content

Commit

Permalink
Core: refactoring spirit to self-contained library
Browse files Browse the repository at this point in the history
Moved julia bindings into core/julia/Spirit.
  • Loading branch information
GPMueller committed Feb 10, 2017
1 parent eac1967 commit c1bc4bf
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 8 deletions.
3 changes: 3 additions & 0 deletions core/julia/Spirit/simulation.jl
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
function Simulation_PlayPause(p_state, method_type, optimizer_type, n_iterations=-1, n_iterations_log=-1, idx_image=-1, idx_chain=-1)
ccall((:Simulation_PlayPause, spiritlib), Void, (Ptr{Void}, Cstring, Cstring, Cint, Cint, Cint, Cint), p_state, method_type, optimizer_type, n_iterations, n_iterations_log, idx_image, idx_chain)
end
4 changes: 2 additions & 2 deletions ui-julia/core/core.jl → core/julia/Spirit/spirit.jl
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
module core
module spirit

export State_Setup
export Simulation_PlayPause

# TODO: do this as a relative path
const corelib = "C:/Users/Gideon/Git/monospin/ui-julia/core/core.dll"
const spiritlib = "C:/Users/Gideon/Git/spirit/core/julia/Spirit/spirit.dll"

include("state.jl")
include("simulation.jl")
Expand Down
3 changes: 3 additions & 0 deletions core/julia/Spirit/state.jl
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
function State_Setup(config_file="")
return ccall((:State_Setup, spiritlib), Ptr{Void}, (Cstring,), config_file)
end
3 changes: 0 additions & 3 deletions ui-julia/core/simulation.jl

This file was deleted.

3 changes: 0 additions & 3 deletions ui-julia/core/state.jl

This file was deleted.

0 comments on commit c1bc4bf

Please sign in to comment.