Skip to content

Commit fdbfdf6

Browse files
Update examples/shock_wave/shock_wave.py
1 parent a7ebb63 commit fdbfdf6

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

examples/shock_wave/shock_wave.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -542,9 +542,9 @@ def inference(cfg: DictConfig):
542542
predictor = pinn_predictor.PINNPredictor(cfg)
543543

544544
# visualize prediction
545-
t = np.linspace(cfg.T, cfg.T, 1)
546-
x = np.linspace(0.0, cfg.Lx, cfg.Nd)
547-
y = np.linspace(0.0, cfg.Ly, cfg.Nd)
545+
t = np.linspace(cfg.T, cfg.T, 1, dtype=np.float32)
546+
x = np.linspace(0.0, cfg.Lx, cfg.Nd, dtype=np.float32)
547+
y = np.linspace(0.0, cfg.Ly, cfg.Nd, dtype=np.float32)
548548
_, x_grid, y_grid = np.meshgrid(t, x, y)
549549

550550
x_test = misc.cartesian_product(t, x, y)

0 commit comments

Comments
 (0)