Compillation MPAS-v7.0Error

Discussions related to downloading and compiling MPAS-Atmosphere.
Post Reply
ntmanhvn181
Posts: 26
Joined: Thu Jul 04, 2019 4:07 am

Compillation MPAS-v7.0Error

Post by ntmanhvn181 » Thu Jul 04, 2019 7:17 am

Dear Sir/Madam,
I am trying to build MPAS libraries using the script provided by the post of forum:
viewtopic.php?f=10&t=5540
and my installation script was introduced in attachments.
I've been using the following library versions:
+ zlib 1.2.11
+ HDF5 1.10.5
+ parallel-netCDF 1.11.0
+ netCDF C 4.6.1
+ netCDF Fortran 4.4.4
+ PIO2 master v2.4.2
However, when I use command to installation MPAS model
"make ifort CORE=atmosphere PRECISION=single USE_PIO2=true >& mpas.log"
Then it errors.
/tmp/ifortKbPIMC.i(1603): catastrophic error: Too many errors, exiting
compilation aborted for module_sf_noahdrv.F (code 1)
make[5]: *** [module_sf_noahdrv.o] Error 1
make[4]: *** [core_physics_wrf] Error 2
make[3]: *** [physcore] Error 2
make[2]: *** [dycore] Error 2
make[1]: *** [mpas_main] Error 2
make: *** [ifort] Error 2
Please help me solve this problem. Thank you very much!
Attachments
iolib_installation.txt
(3.5 KiB) Downloaded 32 times
mpas.log
(25.72 KiB) Downloaded 31 times

mgduda
Posts: 374
Joined: Mon Feb 26, 2018 7:35 pm

Re: Compillation MPAS-v7.0Error

Post by mgduda » Mon Jul 08, 2019 5:29 pm

There seem to be quite a few errors in compiling the Noah LSM:

Code: Select all

mpif90 -D_MPI -DUSE_PIO2 -DCORE_ATMOSPHERE -DMPAS_NAMELIST_SUFFIX=atmosphere -DMPAS_EXE_NAME=atmosphere_model -DSINGLE_PRECISION -DMPAS_NATIVE_TIMERS -DMPAS_GIT_VERSION=unknown -Dmpas -O3 -convert big_endian -free -align array64byte -c module_sf_noahdrv.F -I/export/home/cloud/work/user/manh/MPAS/library/include -I/share/apps/intel_16/netcdf/4.4.0/include -I/export/home/cloud/work/user/manh/MPAS/library/include -I/export/home/cloud/work/user/manh/MPAS/library/include -I/share/apps/intel_16/netcdf/4.4.0/include -I/export/home/cloud/work/user/manh/MPAS/library/include -I.. -I../../../framework -I../../../external/esmf_time_f90
module_sf_noahdrv.F(1341): error #6633: The type of the actual argument differs from the type of the dummy argument.   [DZR]
                       DZR,DZB,DZG,                                     & ! C
-----------------------^
module_sf_noahdrv.F(1341): error #6633: The type of the actual argument differs from the type of the dummy argument.   [DZB]
                       DZR,DZB,DZG,                                     & ! C
---------------------------^
module_sf_noahdrv.F(1341): error #6633: The type of the actual argument differs from the type of the dummy argument.   [DZG]
                       DZR,DZB,DZG,                                     & ! C
-------------------------------^
Can you try running

Code: Select all

make clean CORE=atmosphere
and then

Code: Select all

make ifort CORE=atmosphere PRECISION=single USE_PIO2=true >& make.log
One possible reason for the original errors is that the model was partially compiled with double-precision reals, then recompiled with single-precision reals (i.e., with PRECISION=single in the build command). If cleaning and recompiling doesn't succeed, can you attach the resulting "make.log" file, which should contain both stdout and stderr messages?
NCAR/MMM

ntmanhvn181
Posts: 26
Joined: Thu Jul 04, 2019 4:07 am

Re: Compillation MPAS-v7.0Error

Post by ntmanhvn181 » Mon Jul 15, 2019 2:50 am

Dear Mr.mgduda,
I have some errors when compile netcdf and netcdf-fortran because I don't use make check while compilation. I recompile them and I compile completely MPAS model with core atmosphere.
Thank for your help.

Post Reply

Return to “Compilation / installation”