Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Godoy, William
jexio
Commits
f965f380
Commit
f965f380
authored
Sep 18, 2020
by
William F Godoy
Browse files
Regrid as a level array
parent
315e2fc2
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/extractor/Amrex.jl
View file @
f965f380
...
@@ -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
(
Int
32
,
regrid
)
independentVariables
[
"amr.regrid_int"
]
=
regrid
==
""
?
1
:
parse
(
Int
64
,
regrid
)
return
independentVariables
return
independentVariables
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment