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

Compiling MPAS-Model fails when using double precision. #1200

Closed
amstokely opened this issue Jun 28, 2024 · 1 comment
Closed

Compiling MPAS-Model fails when using double precision. #1200

amstokely opened this issue Jun 28, 2024 · 1 comment

Comments

@amstokely
Copy link
Contributor

MPAS-Model does not compile when precision is set to double. The error log is attached below. It appears that the last commit that supported compiling MPAS-Model with double precision is 7e5b5dd.

mpif90 -D_MPI -DCORE_ATMOSPHERE -DMPAS_NAMELIST_SUFFIX=atmosphere -DMPAS_EXE_NAME=atmosphere_model -DMPAS_DEBUG -DMPAS_NATIVE_TIMERS -DMPAS_GIT_VERSION=v8.1.0-38-g7b951b90e -DMPAS_BUILD_TARGET=gnu -DMPAS_SMIOL_SUPPORT -DMPAS_USE_MPI_F08 -Dmpas  -std=f2008 -g -ffree-line-length-none -fconvert=big-endian -ffree-form -fcheck=all -fbacktrace -ffpe-trap=invalid,zero,overflow -fdefault-real-8 -fdefault-double-8 -c mpas_atmphys_init_microphysics.F -I/home/astokely/projects/spack-stack/envs/mpas-bundle/install/gcc/12.2.0/parallel-netcdf-1.12.3-y7gew6b/include -I/home/astokely/projects/MPAS-Model/src/external/SMIOL -I/home/astokely/projects/spack-stack/envs/mpas-bundle/install/gcc/12.2.0/parallel-netcdf-1.12.3-y7gew6b/include -I./physics_mmm -I./physics_wrf -I.. -I../../framework -I../../external/esmf_time_f90
    mpas_atmphys_init_microphysics.F:310:62:

310 |  DM_BCAST_MACRO(tnccn_act)
    |                                                              1
    Error: Type mismatch in argument 'rarray' at (1); passed REAL(4) to REAL(8)
@mgduda
Copy link
Contributor

mgduda commented Aug 9, 2024

Fixed by #1207 and #1208.

@mgduda mgduda closed this as completed Aug 9, 2024
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

No branches or pull requests

2 participants