Skip to content

Commit

Permalink
Update imports
Browse files Browse the repository at this point in the history
  • Loading branch information
carlosmunozmoncayo committed Jul 4, 2024
1 parent 2b815b9 commit e1f440e
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions examples/euler_gravity_3d/rising_hot_sphere.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
density (rho), x,y, and z momentum (rho*u,rho*v,rho*w), and energy.
"""
import numpy as np
from clawpack.pyclaw.examples.euler_gravity_3d.mappedGrid import euler3d_mappedgrid as mg
from clawpack.riemann.mappedGrid import euler3d_mappedgrid as mg

try:
from mpi4py import MPI
Expand Down Expand Up @@ -176,8 +176,8 @@ def euler3d(kernel_language='Fortran',solver_type='classic',\

import logging
solver.logger.setLevel(logging.DEBUG)
from clawpack.pyclaw.examples.euler_gravity_3d import euler_3d_gmap
solver.rp = euler_3d_gmap
from clawpack import riemann
solver.rp = riemann.euler_3d_gmap
solver.num_eqn = 5
solver.num_waves = 3
solver.cfl_max = 0.6
Expand Down
6 changes: 3 additions & 3 deletions examples/euler_gravity_3d/rising_hot_sphere_spherical.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
density (rho), x,y, and z momentum (rho*u,rho*v,rho*w), and energy.
"""
import numpy as np
from clawpack.pyclaw.examples.euler_gravity_3d.mappedGrid import euler3d_mappedgrid as mg
from clawpack.riemann.mappedGrid import euler3d_mappedgrid as mg

# Test for MPI, and set sizes accordingly
try:
Expand Down Expand Up @@ -173,8 +173,8 @@ def euler3d(kernel_language='Fortran',solver_type='classic',\

import logging
solver.logger.setLevel(logging.DEBUG)
from clawpack.pyclaw.examples.euler_gravity_3d import euler_3d_gmap
solver.rp = euler_3d_gmap
from clawpack import riemann
solver.rp = riemann.euler_3d_gmap
solver.num_eqn = 5
solver.num_waves = 3
solver.cfl_max = 0.6
Expand Down

0 comments on commit e1f440e

Please sign in to comment.