Commit f965f380 authored by William F Godoy's avatar William F Godoy
Browse files

Regrid as a level array

parent 315e2fc2
...@@ -116,8 +116,8 @@ function _get_independent_variables(extractor::AbstractAmrex, parameters)::Dict{ ...@@ -116,8 +116,8 @@ function _get_independent_variables(extractor::AbstractAmrex, parameters)::Dict{
maxLevel = get(parameters, "amr.max_level", "") maxLevel = get(parameters, "amr.max_level", "")
independentVariables["amr.max_level"] = maxLevel == "" ? 1 : parse(Int32, maxLevel) independentVariables["amr.max_level"] = maxLevel == "" ? 1 : parse(Int32, maxLevel)
regrid = get(parameters, "amr.regrid_int", "") regrid = prod(parse.(Int64, split(get(parameters, "amr.regrid_int", ["0"]))))
independentVariables["amr.regrid_int"] = regrid == "" ? 1 : parse(Int32, regrid) independentVariables["amr.regrid_int"] = regrid == "" ? 1 : parse(Int64, regrid)
return independentVariables return independentVariables
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment