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 astronomy #1092

Merged
merged 116 commits into from
Aug 18, 2023
Merged

Mixed precision astronomy #1092

merged 116 commits into from
Aug 18, 2023

Conversation

mcallic2
Copy link
Contributor

@mcallic2 mcallic2 commented Dec 16, 2022

Description
Changes to add mixed precision to astronomy files

Fixes # (issue)

How Has This Been Tested?
Autotools using oneapi and cmake

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

@mcallic2 mcallic2 requested a review from mlee03 December 16, 2022 19:40
@mcallic2 mcallic2 marked this pull request as ready for review December 16, 2022 19:50
@mcallic2 mcallic2 marked this pull request as draft January 12, 2023 15:26
@mcallic2 mcallic2 marked this pull request as ready for review January 12, 2023 19:03
astronomy/astronomy.F90 Outdated Show resolved Hide resolved
astronomy/astronomy.F90 Outdated Show resolved Hide resolved
astronomy/astronomy.F90 Show resolved Hide resolved
astronomy/astronomy.F90 Show resolved Hide resolved
@mcallic2 mcallic2 requested a review from J-Lentz August 2, 2023 18:56
astronomy/astronomy.F90 Outdated Show resolved Hide resolved
astronomy/astronomy.F90 Outdated Show resolved Hide resolved
@rem1776 rem1776 merged commit 54b5a21 into NOAA-GFDL:mixedmode Aug 18, 2023
26 of 27 checks passed
real, dimension(size(lat),1) :: lat_2d, lon_2d, cosz_2d, &
fracday_2d, halfday_2d
t = (time - autumnal_eq_ref)//period_time_type
t = twopi*(t - real(t, r8_kind))
Copy link
Contributor

Choose a reason for hiding this comment

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

@mcallic2 , was this originally a floor?

Copy link
Contributor

Choose a reason for hiding this comment

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

I think it should have been real(floor(t),r8_kind)

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.

6 participants