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
33 changes: 21 additions & 12 deletions examples/Kolmogrov2d_rk4_fvm_forced_turbulence.ipynb

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions examples/Kolmogrov2d_rk4_spectral_forced_turbulence.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@
},
{
"cell_type": "code",
"execution_count": 6,
"execution_count": null,
"metadata": {},
"outputs": [
{
Expand All @@ -115,7 +115,7 @@
" drag=0.1,\n",
" smooth=True,\n",
" forcing_fn=forcing_fn,\n",
" solver=RK4CrankNicolsonStepper(),\n",
" step_fn=RK4CrankNicolsonStepper(),\n",
").to(device)\n",
"\n",
"result = get_trajectory_imex(\n",
Expand Down
2 changes: 1 addition & 1 deletion fno/data_gen/data_gen_Kolmogorov2d.py
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ def main(args):
drag=0.1,
smooth=True,
forcing_fn=forcing_fn,
solver=RK4CrankNicolsonStepper(),
step_fn=RK4CrankNicolsonStepper(),
).to(device)

num_batches = total_samples // batch_size
Expand Down
2 changes: 1 addition & 1 deletion fno/data_gen/data_gen_McWilliams2d.py
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ def main(args):
drag=0,
smooth=True,
forcing_fn=None,
solver=RK4CrankNicolsonStepper(),
step_fn=RK4CrankNicolsonStepper(),
).to(device)

num_batches = total_samples // batch_size
Expand Down
3 changes: 1 addition & 2 deletions fno/data_gen/data_gen_fno.py
Original file line number Diff line number Diff line change
Expand Up @@ -176,8 +176,7 @@ def main(args):
grid=grid,
smooth=True,
forcing_fn=forcing_fn,
solver=step_fn,
order=2,
step_fn=step_fn,
).to(device)

if os.path.exists(data_filepath) and not force_rerun:
Expand Down
2 changes: 1 addition & 1 deletion fno/data_gen/grf.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ def __init__(
n=128,
alpha=2,
tau=3,
device="cuda",
device:torch.device=device,
dtype=torch.float,
normalize=False,
smoothing=False,
Expand Down
Loading
Loading