amrex.jl 633 Bytes
Newer Older
William F Godoy's avatar
William F Godoy committed
1

2
3
4
abstract type AbstractAmrex <: AbstractExtractor end

mutable struct Amrex <: AbstractAmrex 
William F Godoy's avatar
William F Godoy committed
5
6
7
  app::String
  outputPrefix::String
  degreesOfFreedom
8
9
  
  Amrex() = new()
William F Godoy's avatar
William F Godoy committed
10
11
12
13
14
end

function init(extractor::Amrex, outputPrefix::String)
  extractor.app = "Amrex"
  extractor.outputPrefix = outputPrefix
15
  extractor.degreesOfFreedom = [ 
William F Godoy's avatar
William F Godoy committed
16
17
18
19
20
21
            "max_step", 
            "amr.check_int",
            "amr.plot_int",
            "amr.n_cell",
            "amr.max_level"
        ]
22
23
24
25
26
27
28
29
30
31
end


function input_parser(inputFile::String) 
  parameters = Dict{String,String}()
  
  fileContents = readlines(inputFile)
  
  print(fileContents)
  
William F Godoy's avatar
William F Godoy committed
32
end