Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature/variable dt #1148

Merged
merged 28 commits into from
Mar 4, 2024
Merged

Feature/variable dt #1148

merged 28 commits into from
Mar 4, 2024

Conversation

Shiyu-Sandy-Du
Copy link
Collaborator

@Shiyu-Sandy-Du Shiyu-Sandy-Du commented Feb 20, 2024

This PR is re-issued following PR #1013. The branch in PR #1013 is too old and hence full of conflicts. This branch is built on most up-to-date develop-branch. In this branch, two things are modified:

  1. variable time stepping uses a running average instead of an arithmetic average (to cope with sudden explosion of the cfl number)
  2. lag fields are promoted to _scheme type (not just for pnpn)

Special acknowledge to @adperezm for setting up the architecture in PR#1013.

@Shiyu-Sandy-Du Shiyu-Sandy-Du added enhancement New feature or request don't merge Don't merge yet! labels Feb 20, 2024
@Shiyu-Sandy-Du
Copy link
Collaborator Author

restart is plausible but turns out to be wrong here. Work on time step info in chkp file is on-going.

modify the dt setting for the first time step: make the cfl to be exactly the set cfl
modify the restart subroutine: take tlag and dtlag from check point file
src/simulation.f90 Outdated Show resolved Hide resolved
src/simulation.f90 Outdated Show resolved Hide resolved
src/simulation.f90 Outdated Show resolved Hide resolved
src/simulation.f90 Outdated Show resolved Hide resolved
src/simulation.f90 Outdated Show resolved Hide resolved
Shiyu-Sandy-Du and others added 6 commits February 26, 2024 13:28
Co-authored-by: Niclas Jansson <njansson@kth.se>
Co-authored-by: Niclas Jansson <njansson@kth.se>
Co-authored-by: Niclas Jansson <njansson@kth.se>
Co-authored-by: Niclas Jansson <njansson@kth.se>
Co-authored-by: Niclas Jansson <njansson@kth.se>
@timofeymukha
Copy link
Collaborator

Please update case-file.md with the new options.

src/simulation.f90 Outdated Show resolved Hide resolved
src/simulation.f90 Outdated Show resolved Hide resolved
src/simulation.f90 Outdated Show resolved Hide resolved
src/simulation.f90 Outdated Show resolved Hide resolved
src/simulation.f90 Outdated Show resolved Hide resolved
src/simulation.f90 Outdated Show resolved Hide resolved
Shiyu-Sandy-Du and others added 3 commits February 26, 2024 15:10
Co-authored-by: Timofey Mukha <timofeymukha@users.noreply.github.com>
Co-authored-by: Timofey Mukha <timofeymukha@users.noreply.github.com>
Co-authored-by: Timofey Mukha <timofeymukha@users.noreply.github.com>
@Shiyu-Sandy-Du Shiyu-Sandy-Du added the don't merge Don't merge yet! label Feb 26, 2024
@timfelle
Copy link
Collaborator

It seems you are missing an update to the .depends, which is why the tests are failing.

@Shiyu-Sandy-Du
Copy link
Collaborator Author

It seems you are missing an update to the .depends, which is why the tests are failing.

Yes it's the issue. now it's fixed.

@Shiyu-Sandy-Du
Copy link
Collaborator Author

Please update case-file.md with the new options.

Done

@Shiyu-Sandy-Du Shiyu-Sandy-Du removed the don't merge Don't merge yet! label Feb 28, 2024
…ep for the restart is set to satisfy the set cfl
@njansson njansson merged commit 2f097cf into develop Mar 4, 2024
23 checks passed
@njansson njansson deleted the feature/variable_dt branch April 29, 2024 06:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
No open projects
Status: 🍻 Done
Development

Successfully merging this pull request may close these issues.

4 participants