MPAS-Dev / MPAS-Model

Repository for MPAS models and shared framework releases.
239 stars 319 forks source link

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

Closed amstokely closed 1 month ago

amstokely commented 3 months ago

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 commented 1 month ago

Fixed by #1207 and #1208.