Skip to content

Commit

Permalink
Reduce time to reduce boundary errors
Browse files Browse the repository at this point in the history
  • Loading branch information
jloveric committed Feb 16, 2023
1 parent eec6f4f commit 84b6a25
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
4 changes: 2 additions & 2 deletions config/euler.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ mlp:
n_hidden: null
resnet: False
# We don't need this if we use max_abs normalization (it seems)
periodicity: 2.0
periodicity: null #2.0

rescale_output: False
scale: 2.0
Expand Down Expand Up @@ -45,7 +45,7 @@ time_decay: 0.0
# and space derivatives. X is [-1, 1] and t is [0, 1] so t has
# a scale factor of 0.5
scale_x: 1
scale_t: 0.5
scale_t: 0.25

# pde weighting
loss_weight:
Expand Down
4 changes: 3 additions & 1 deletion examples/high_order_euler.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,9 @@ def run(cfg: DictConfig):
):

trainer = Trainer(
max_epochs=cfg.refinement.epochs,
max_epochs=cfg.refinement.epochs
if order < cfg.refinement.target_n
else cfg.max_epochs,
gpus=cfg.gpus,
callbacks=[checkpoint_callback, ImageSampler(cfg=cfg), lr_monitor],
)
Expand Down

0 comments on commit 84b6a25

Please sign in to comment.