Scheduled Downtime
On Friday 21 April 2023 @ 5pm MT, this website will be down for maintenance and expected to return online the morning of 24 April 2023 at the latest

MPAS 7.0 A failed on pio1.f90.

This post was from a previous version of the WRF&MPAS-A Support Forum. New replies have been disabled and if you have follow up questions related to this post, then please start a new thread from the forum home page.

zemega

New member
Hello. I'm trying to compile MPAS 7.0 Atmosphere. For starter, I'm using this installation script, https://www2.mmm.ucar.edu/people/duda/files/mpas/sources/iolib_installation.sh . However instead of using netcdf-c-4.7.0 in the script, I'm using netcdf-c-4.7.4. This is due to problem with curl. Please refer to https://www.unidata.ucar.edu/support/help/MailArchives/netcdf/msg14665.html , as it says it's a bug in configure file in netcdf-c-4.7.0. Attached is the output of make gfortran CORE=atmosphere. The particular error line I believe would be

Code:
make[5]: Entering directory '/home/yunus/MPAS-Model-7.0/src/external/ezxml'
mpicc -O3 -m64 -D_MPI -DCORE_ATMOSPHERE -DMPAS_NAMELIST_SUFFIX=atmosphere -DMPAS_EXE_NAME=atmosphere_model -DMPAS_NATIVE_TIMERS -DMPAS_GIT_VERSION=unknown -c ezxml.c
gfortran: error: pio1.f90: No such file or directory
gfortran: error: pio1.f90: No such file or directory
make[5]: Leaving directory '/home/yunus/MPAS-Model-7.0/src/external/ezxml'

For reference, I'm using Ubuntu 18.04 WSL2 under Windows 10. The gfortran details are gcc version 7.5.0 (Ubuntu 7.5.0-3ubuntu1~18.04)
 

Attachments

  • make-output.txt
    5.8 KB · Views: 46
It's a bit late. But I have successfully compiled it using the command:
Code:
make gfortran CORE=init_atmosphere USE_PIO2=true PRECISION=single

However, looking at
Code:
ldd ./init_atmosphere
libz.so.1 => /lib/x86_64-linux-gnu/libz.so.1 (0x00007fddc397e000)
I was expecting it to use the zlib compiled in the installation guide. How do I make sure MPAS use the zlib manually compiled instead of the one installed through apt for system wide. Should I make a new topic for it?
 
Just for the benefit of anyone else who might happen upon this thread, there appears to be another thread discussing the same issue: https://forum.mmm.ucar.edu/phpBB3/viewtopic.php?f=10&t=9902 .
 
zemega said:
I was expecting it to use the zlib compiled in the installation guide. How do I make sure MPAS use the zlib manually compiled instead of the one installed through apt for system wide. Should I make a new topic for it?

You may be able to direct the linker to use the zlib library from your own directory rather than the system directory through the LD_LIBRARY_PATH environment variable: ensure that your own directories precede any system paths in the LD_LIBRARY_PATH variable. If this doesn't resolve the issue, though, I'd agree that creating a new topic would be best.
 
Top