Skip to content

Conversation

@mark-petersen
Copy link
Contributor

@mark-petersen mark-petersen commented Feb 5, 2019

There are three changes.

  1. Widen halo computation ring for kinetic energy.
  2. Widen halo computation ring for melt fluxes.
  3. Add halo exchange for surfaceFrictionVelocity

When running E3SM with melt fluxes on, the first is needed for bfb restarts (E3SM-Project/E3SM#2702) and all three for bfb partition tests (E3SM-Project/E3SM#2739).

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This barrier is not necessary, because there is an implied synchronization among threads at the end of the loop. When needed, such barriers can be removed with

!$omp end do nowait

and threads do not wait after exiting the loop.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for watching this repo, @amametjanov! That is really helpful to know. I added that thread barrier because I thought it was needed, not because I saw a difference in a test.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Update: this PR (a follow-up to PR #152) should reduce the number thread barriers in the remaining ocean sources and improve threading throughput. Thanks.

@mark-petersen mark-petersen force-pushed the ocean/kinetic_energy_bfb_restart branch from e146d63 to 495f34c Compare February 6, 2019 15:18
@mark-petersen mark-petersen requested a review from jonbob February 6, 2019 15:21
@mark-petersen
Copy link
Contributor Author

@jonbob These are the fixes for E3SM-Project/E3SM#2702. Please approve when you are ready, and I will merge in.

Copy link
Contributor

@jonbob jonbob left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That's exactly what I had been testing

@mark-petersen
Copy link
Contributor Author

Passes bfb match with ocean/develop using gnu with nightly regression suite. That includes restart and partition test in MPAS-O standalone.

@mark-petersen mark-petersen changed the title Alter Kinetic Energy halo for bfb restart Fixes for bfb restart and partitions tests in E3SM Feb 13, 2019
@mark-petersen mark-petersen force-pushed the ocean/kinetic_energy_bfb_restart branch 3 times, most recently from 980f213 to 280e328 Compare February 13, 2019 20:24
@mark-petersen mark-petersen force-pushed the ocean/kinetic_energy_bfb_restart branch from 280e328 to 2eab9a1 Compare February 13, 2019 20:26
@mark-petersen mark-petersen merged commit 2eab9a1 into MPAS-Dev:ocean/develop Feb 13, 2019
@mark-petersen mark-petersen deleted the ocean/kinetic_energy_bfb_restart branch June 14, 2019 13:51
willmayfield pushed a commit to dtcenter/MPAS-Model that referenced this pull request Jul 22, 2025
…Dev#147)

* Scale LAI data by 10 at static generation

* Remove LAI scaling by 10

* Add comment for LAI scaling

* Update version number

* Use scale factor from input data file
ywangwof added a commit to NOAA-National-Severe-Storms-Laboratory/frdd-MPAS-Model that referenced this pull request Jul 30, 2025
dustinswales pushed a commit to dustinswales/MPAS-Model that referenced this pull request Jul 31, 2025
… and fixed issues detected with the GNU compiler (MPAS-Dev#123)

* Fixed NSSL 2-moment MP interface, added horizontal eddy diffusion and fixed issues detected with GNU compiler

* Updated .gitmodules for NSSL_GNU_2.9

* Reduced uh_smooth parameter to 0.1

* Added back removed spaces and ignored changes with submodules TEMPO & MYNN-EDMF temporarily

* Added runtime parameters mono_filter4 & vert_adv_5th for using monotonic fluxes for 4th filter (true) and using 5th order scheme for vertical transport of scalars (false)

* Fixed for backward compatibility

* Made sure the default settings for 2d eddy mixxing run identically as before

* Removed not used namelist variables

* Removed extra file src/core_atmosphere/physics/physics_wrf/module_cu_gf_mpas.F

* Updated version number to 8.3.0-1.9

* Removed extra spaces and empty lines

* One more change to keep format consistent with the original NCAR version

* Merge missing files from MPAS-Dev#147 in last merge
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants