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 column_diagnostics #1076

Merged
merged 21 commits into from
Sep 8, 2023

Conversation

mlee03
Copy link
Contributor

@mlee03 mlee03 commented Nov 23, 2022

Description
In this Pull Request, column_diagnostics has been edited to as part of the mixed-mode project in FMS

How Has This Been Tested?
make and make check passes with Intel and GCC

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

@mlee03 mlee03 changed the base branch from main to mixedmode November 28, 2022 21:23
@mlee03 mlee03 marked this pull request as ready for review November 29, 2022 14:22
@mlee03 mlee03 changed the title mixed-precision for column_diagnostics mixed precision column_diagnostics Dec 8, 2022
@mlee03
Copy link
Contributor Author

mlee03 commented Dec 13, 2022

@thomas-robinson @bensonr, ready for review

!private

!--------------------------------------------------------------------
!---- namelist -----

real :: crit_xdistance = 4.0 !< model grid points must be within crit_xdistance in
real(kind=r8_kind) :: crit_xdistance = 4.0 !< model grid points must be within crit_xdistance in
Copy link
Contributor

Choose a reason for hiding this comment

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

crit_xdistace = 4.0d0 ?

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 we should avoid using the d for exponents since its not as portable. Some compilers count the doubles as double whatever the default is so this would end up being 16 bytes with gcc for a normal compilation.

@mlee03 mlee03 requested a review from J-Lentz February 27, 2023 15:48
@rem1776 rem1776 merged commit afdc9df into NOAA-GFDL:mixedmode Sep 8, 2023
19 checks passed
rem1776 added a commit that referenced this pull request Oct 6, 2023
* mixed precision column_diagnostics  (#1076)

* mixed precision mosaic2  (#1074)

* mixed precision topography unit tests (#1364)

* mixed precision tridiagonal (#1363)

* mixed precision: add test for coupler_types and data_override changes (#1361)

* Mixed precision `amip_interp_mod` (#1365)

BREAKING CHANGE: Several variables and arrays which were previously public have been made private.
These variables and arrays are not used in ice_amip or ocean_amip.
amip_interp_type(r4_kind) and amip_interp_type(r8_kind) should be used for
r4_kind and r8_kind precision, respectively. amip_interp_type without a kind
parameter defaults to r8_kind.

Co-authored-by: rem1776 <Ryan.Mulhall@noaa.gov>
Co-authored-by: mlee03 <Mikyung.Lee@lscamd50-d.gfdl.noaa.gov>
Co-authored-by: Caitlyn McAllister <65364559+mcallic2@users.noreply.github.com>
Co-authored-by: Jesse Lentz <42011922+J-Lentz@users.noreply.github.com>
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.

4 participants