Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions riemann/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@
from . import euler_3D_constants
from . import burgers_3D_constants
from . import vc_advection_3D_constants
from . import euler_mapgrid_3D


try:
Expand Down Expand Up @@ -99,6 +100,7 @@
from . import euler_3D
from . import burgers_3D
from . import vc_advection_3D
from . import euler_mapgrid_3D
except ImportError as e:
import traceback
print("********************************************************************")
Expand Down
22 changes: 22 additions & 0 deletions riemann/meson.build
Original file line number Diff line number Diff line change
Expand Up @@ -111,6 +111,7 @@ riemann_2D = [
riemann_3D = [
'vc_acoustics',
'euler',
'euler_mapgrid',
'burgers',
'vc_advection',
]
Expand Down Expand Up @@ -226,3 +227,24 @@ foreach name, sources: special_extensions
install : true
)
endforeach

ext_name = 'mappedGrid'
ext_srcs = [
srcdir / 'euler3d_mappedGrid.f90',
]
f2py_srcs = custom_target(
'f2py_mappedGrid',
command: [f2py, ext_name],
input: ext_srcs,
output: [ext_name + 'module.c', ext_name + '-f2pywrappers2.f90'],
build_by_default: true,
)

py.extension_module(
ext_name, [ext_srcs, f2py_srcs],
incdir_f2py / 'fortranobject.c',
include_directories: inc_np,
dependencies : py_dep,
subdir: pkg_dir,
install : true
)