amrexCastro.jl 734 Bytes
Newer Older
William F Godoy's avatar
William F Godoy committed
1

2
mutable struct AmrexCastro <: AbstractAmrex
William F Godoy's avatar
William F Godoy committed
3
4
5
  app::String
  degreesOfFreedom
  outputPrefix::String
6
7
  
  AmrexCastro() = new()
William F Godoy's avatar
William F Godoy committed
8
9
end

William F Godoy's avatar
William F Godoy committed
10
11
12
13
14
15
16
"""
   init!
   initialize members of the extractor::AmrexCastro type
   Using bang convention as init modifies the extractor::Amrex
   https://docs.julialang.org/en/v1/manual/style-guide/index.html#bang-convention-1
"""
function init!(extractor::AmrexCastro, outputPrefix::String)
William F Godoy's avatar
William F Godoy committed
17
  extractor.app = "AmrexCastro"
18
  extractor.degreesOfFreedom = [ 
William F Godoy's avatar
William F Godoy committed
19
20
21
22
23
24
25
26
27
28
            "max_step", 
            "amr.check_int",
            "amr.plot_int",
            "amr.n_cell",
            "amr.max_level",
            "castro.cfl", 
            "castro.max_grid_size"
        ]
  extractor.outputPrefix = outputPrefix
end