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

Fix issue #1 the apparent hang in writing the trajectories #3

Merged
merged 2 commits into from
Jul 17, 2015

Conversation

nikizadehgfdl
Copy link
Contributor

  • Fixes issue Model run hangs at the end when trying to write icebergs trajectories #1
  • @sternalon reported and I verified that 1 year model run apparently hangs at the end when trying to write icebergs trajectories
  • This turned out not to be an i/o issue but due to the root pe (or io_tile_root_pes) traversing
    a linked list of millions of nodes. It just take a long long time and the model times out.
  • This fix "push"es the nodes at the top of the list instead of traversing it and trying to find the tail to append.
    -The list will be in reverse order and has to be reversed before writing to file.

- Model run apparently hangs at the end when trying to write icebergs trajectories
  This is not an i/o issue but due to the root pe (or io_tile_root_pes) traversing
  a linked list of millions of nodes. It just take a long long time.
- This fix "push"es the nodes at the top of the list instead of trying to find the tail to append it.
  The list will be in reverse order and has to be reversed before writing to file.
@nikizadehgfdl
Copy link
Contributor Author

Assigned to @adcroft for review.

- Timings show that in long run simulations writing one trajectory file
  per tile io has a sever impact on model timing. Specifically Termination time
  can become larger than the Main loop time.
- This update bypasses using the io_layout for trajectory files and forces
  one file per processor (the way old iceberg model behaved till ulm) by
  setting a namelist  icebergs_nml: force_all_pes_traj = .true.
- This is a temporary fix to let people run long run simulations until we find a proper fix.
@adcroft adcroft merged commit 6854f3a into dev/master Jul 17, 2015
@adcroft adcroft deleted the user/nnz/fix_trajectory_append_hang branch July 29, 2016 18:39
adcroft pushed a commit to adcroft/icebergs that referenced this pull request Jan 5, 2023
adcroft pushed a commit to adcroft/icebergs that referenced this pull request Jan 6, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants