Skip to content

Commit

Permalink
Merge pull request #4845 from henrynjones/boxlib_to_amrex
Browse files Browse the repository at this point in the history
Rename BoxLib frontend as AMReX
  • Loading branch information
neutrinoceros committed May 28, 2024
2 parents 16370cc + 9da50db commit 9e165f7
Show file tree
Hide file tree
Showing 19 changed files with 567 additions and 20 deletions.
3 changes: 3 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,7 @@ Fortran = ["f90nml>=1.1"]
# We also normalize all target names to lower case for consistency.
adaptahop = []
ahf = []
amrex = []
amrvac = ["yt[Fortran]"]
art = []
arepo = ["yt[HDF5]"]
Expand Down Expand Up @@ -146,6 +147,7 @@ full = [
"ratarmount~=0.8.1;platform_system!='Windows' and platform_system!='Darwin'",
"yt[adaptahop]",
"yt[ahf]",
"yt[amrex]",
"yt[amrvac]",
"yt[art]",
"yt[arepo]",
Expand Down Expand Up @@ -348,6 +350,7 @@ addopts = '''
--ignore='yt/fields/tests/test_xray_fields.py'
--ignore='yt/frontends/adaptahop/tests/test_outputs.py'
--ignore='yt/frontends/ahf/tests/test_outputs.py'
--ignore='yt/frontends/amrex/tests/test_outputs.py'
--ignore='yt/frontends/amrvac/tests/test_outputs.py'
--ignore='yt/frontends/amrvac/tests/test_units_override.py'
--ignore='yt/frontends/arepo/tests/test_outputs.py'
Expand Down
37 changes: 22 additions & 15 deletions tests/tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,28 @@ answer_tests:
local_art_004: # PR 3081, 3101
- yt/frontends/art/tests/test_outputs.py:test_d9p

#copied from boxlib frontend
local_amrex_012:
- yt/frontends/amrex/tests/test_outputs.py:test_radadvect
- yt/frontends/amrex/tests/test_outputs.py:test_radtube
- yt/frontends/amrex/tests/test_outputs.py:test_star
- yt/frontends/amrex/tests/test_outputs.py:test_OrionDataset
- yt/frontends/amrex/tests/test_outputs.py:test_CastroDataset
- yt/frontends/amrex/tests/test_outputs.py:test_RT_particles
- yt/frontends/amrex/tests/test_outputs.py:test_units_override
- yt/frontends/amrex/tests/test_outputs.py:test_raw_fields

local_amrex_particles_010:
- yt/frontends/amrex/tests/test_outputs.py:test_LyA
- yt/frontends/amrex/tests/test_outputs.py:test_nyx_particle_io
- yt/frontends/amrex/tests/test_outputs.py:test_castro_particle_io
- yt/frontends/amrex/tests/test_outputs.py:test_langmuir
- yt/frontends/amrex/tests/test_outputs.py:test_plasma
- yt/frontends/amrex/tests/test_outputs.py:test_beam
- yt/frontends/amrex/tests/test_outputs.py:test_warpx_particle_io
- yt/frontends/amrex/tests/test_outputs.py:test_NyxDataset
- yt/frontends/amrex/tests/test_outputs.py:test_WarpXDataset

local_amrvac_009: # PR 2945
- yt/frontends/amrvac/tests/test_outputs.py:test_domain_size
- yt/frontends/amrvac/tests/test_outputs.py:test_bw_polar_2d
Expand Down Expand Up @@ -121,23 +143,8 @@ answer_tests:

local_boxlib_012:
- yt/frontends/boxlib/tests/test_outputs.py:test_radadvect
- yt/frontends/boxlib/tests/test_outputs.py:test_radtube
- yt/frontends/boxlib/tests/test_outputs.py:test_star
- yt/frontends/boxlib/tests/test_outputs.py:test_OrionDataset
- yt/frontends/boxlib/tests/test_outputs.py:test_CastroDataset
- yt/frontends/boxlib/tests/test_outputs.py:test_RT_particles
- yt/frontends/boxlib/tests/test_outputs.py:test_units_override
- yt/frontends/boxlib/tests/test_outputs.py:test_raw_fields

local_boxlib_particles_010:
- yt/frontends/boxlib/tests/test_outputs.py:test_LyA
- yt/frontends/boxlib/tests/test_outputs.py:test_nyx_particle_io
- yt/frontends/boxlib/tests/test_outputs.py:test_castro_particle_io
- yt/frontends/boxlib/tests/test_outputs.py:test_langmuir
- yt/frontends/boxlib/tests/test_outputs.py:test_plasma
- yt/frontends/boxlib/tests/test_outputs.py:test_beam
- yt/frontends/boxlib/tests/test_outputs.py:test_warpx_particle_io
- yt/frontends/boxlib/tests/test_outputs.py:test_NyxDataset
- yt/frontends/boxlib/tests/test_outputs.py:test_WarpXDataset

local_ramses_005: # PR 3856
Expand Down
3 changes: 2 additions & 1 deletion yt/frontends/__init__.py
Original file line number Diff line number Diff line change
@@ -1,12 +1,13 @@
__all__ = [
"adaptahop",
"ahf",
"amrex",
"amrvac",
"art",
"artio",
"athena",
"athena_pp",
"boxlib",
"boxlib", # the boxlib frontend is deprecated, use 'amrex'
"cf_radial",
"chimera",
"chombo",
Expand Down
File renamed without changes.
24 changes: 24 additions & 0 deletions yt/frontends/amrex/api.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
from . import tests
from .data_structures import (
AMReXDataset,
AMReXHierarchy,
BoxlibDataset,
BoxlibGrid,
BoxlibHierarchy,
CastroDataset,
MaestroDataset,
NyxDataset,
NyxHierarchy,
OrionDataset,
OrionHierarchy,
WarpXDataset,
WarpXHierarchy,
)
from .fields import (
BoxlibFieldInfo,
CastroFieldInfo,
MaestroFieldInfo,
NyxFieldInfo,
WarpXFieldInfo,
)
from .io import IOHandlerBoxlib
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Empty file added yt/frontends/amrex/misc.py
Empty file.
Empty file.
Loading

0 comments on commit 9e165f7

Please sign in to comment.