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

Mixed precision monin_obukhov #1116

Merged
merged 88 commits into from
Jul 28, 2023
Merged

Conversation

mcallic2
Copy link
Contributor

Description
Adds mixed precision to monin_obukhov

Fixes # (issue)

How Has This Been Tested?
Autotools using oneapi compiler

Checklist:

  • My code follows the style guidelines of this project
  • I have performed a self-review of my own code
  • I have commented my code, particularly in hard-to-understand areas
  • I have made corresponding changes to the documentation
  • My changes generate no new warnings
  • Any dependent changes have been merged and published in downstream modules
  • New check tests, if applicable, are included
  • make distcheck passes

monin_obukhov/include/monin_obukhov.inc Outdated Show resolved Hide resolved
monin_obukhov/include/monin_obukhov.inc Outdated Show resolved Hide resolved
monin_obukhov/include/monin_obukhov.inc Outdated Show resolved Hide resolved
monin_obukhov/monin_obukhov.F90 Outdated Show resolved Hide resolved
monin_obukhov/monin_obukhov.F90 Outdated Show resolved Hide resolved
& neutral, stable_option, new_mo_option, rich_crit, zeta_trans, &!miz
& drag_min_heat, drag_min_moist, drag_min_mom, &
& n, pt, pt0, z, z0, zt, zq, speed, drag_m, drag_t, &
call monin_obukhov_drag_1d(real(grav, FMS_MO_KIND_), real(vonkarm, FMS_MO_KIND_), &
Copy link
Contributor

Choose a reason for hiding this comment

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

some of the arguments in the call here and below do not need real(,FMS_MO_KIND_)

@mlee03
Copy link
Contributor

mlee03 commented Jul 26, 2023

@mcallic2 could you also compile with -Wall and -Wconversion-extra to catch all the type/kind mismatch? There are several I think that have been missed. After those fixes, I think the PR is good to be merged

CHANGELOG.md Show resolved Hide resolved
@mlee03
Copy link
Contributor

mlee03 commented Jul 28, 2023

@rem1776 @J-Lentz looks good?

@J-Lentz
Copy link
Contributor

J-Lentz commented Jul 28, 2023

Yep, looks good to me.

@rem1776 rem1776 merged commit 7f8abc2 into NOAA-GFDL:mixedmode Jul 28, 2023
27 checks passed
rem1776 added a commit that referenced this pull request Sep 20, 2023
BREAKING CHANGE: In coupler_types.F90,  `coupler_nd_field_type` and `coupler_nd_values_type` have been renamed to indicate real kind value: `coupler_nd_real4/8_field_type` and `coupler_nd_real4/8_values_type`. The `bc` field within `coupler_nd_bc_type` was modified to use r8_kind within the value and field types, and an additional field added `bc_r4` to use r4_kind values.

Includes:

* feat: eliminate use of real numbers for mixed precision in `block_control` (#1195)

* feat: mixed precision field_manager  (#1205)

* feat: mixed precision random_numbers_mod (#1191)

* feat: mixed precision time_manager reals to r8 and clean up (#1196)

* feat: mixed Precision tracer_manager  (#1212)

* Mixed precision monin_obukhov (#1116)

* Mixed precision: `monin_obukhov` unit tests (#1272)

* mixed-precision diag_integral_mod  (#1217)

* mixed precision time_interp (#1252)

* mixed precision interpolator_mod  (#1305)

* Mixed precision astronomy (#1092)

* Mixed precision `data_override_mod` (#1323)

* mixed precision exchange (#1341)

* coupler mixed precision (#1353)

* Mixed precision topography_mod (#1250)

---------

Co-authored-by: rem1776 <[email protected]>
Co-authored-by: MiKyung Lee <[email protected]>
Co-authored-by: mlee03 <[email protected]>
Co-authored-by: Caitlyn McAllister <[email protected]>
Co-authored-by: Jesse Lentz <[email protected]>
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.