Exio.jl 419 Bytes
Newer Older
William F Godoy's avatar
William F Godoy committed
1
2
module Exio

William F Godoy's avatar
William F Godoy committed
3
export ExioH, exio_init, input_parser
William F Godoy's avatar
William F Godoy committed
4
5
6
7
8

include("extractor/extractor.jl")

mutable struct ExioH
  extractor::AbstractExtractor
9
10
  
  ExioH() = new()
William F Godoy's avatar
William F Godoy committed
11
12
13
end
  

William F Godoy's avatar
William F Godoy committed
14
function exio_init(app::String, outputPrefix::String)::ExioH
William F Godoy's avatar
William F Godoy committed
15

16
  exioH = ExioH()
William F Godoy's avatar
William F Godoy committed
17
18
  if app == "AmrexCastro"
    println("Hello AmrexCastro")
19
    exioH.extractor = AmrexCastro()
William F Godoy's avatar
William F Godoy committed
20
    init!(exioH.extractor, outputPrefix)
William F Godoy's avatar
William F Godoy committed
21
22
  end

23
  return exioH  
William F Godoy's avatar
William F Godoy committed
24
25
26
27
end
  

end