Skip to content

cmake build system double precision support is inconsistent or broken #181

@SamuelTrahanNOAA

Description

@SamuelTrahanNOAA

The cmake build system double precision support isn't fully working, and varies from the Makefile setup in that.

This highlights three bugs:

  1. The cmake build system defaults to double precision, unlike make's single precision default
  2. Only init_atmosphere has flags for double precision
  3. The double precision flags are hard-coded to GNU compiler flags. That breaks double-precision support for all other compilers.

The result is:

Compiler Makefile support cmake single-precision cmake double-precision
GNU single (default) and double works double default, but init_atmosphere only
Intel single (default) and double works broken
Other Compilers single (default) and double untested broken

Metadata

Metadata

Assignees

No one assigned

    Labels

    upstreamBelieved to originate in the MPAS-Dev/MPAS-Model code rather than ufs-community/MPAS-Model code.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions