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 PIO error for compiling init_atmosphere

mim

New member
I am getting an error when attempting to compile init_atmosphere.
This is my error message.

Code:
mpas_derived_types.F(30): error #7002: Error in opening the compiled module file.  Check INCLUDE paths.   [PIO]
   use pio
-------^
mpas_derived_types.F(31): error #7002: Error in opening the compiled module file.  Check INCLUDE paths.   [PIO_TYPES]
   use pio_types
-------^
./mpas_io_types.inc(2): error #6592: This symbol must be a defined parameter, an enumerator, or an argument of an inquiry function that evaluates to a compile-time constant.   [PIO_OFFSET_KIND]
   integer, parameter :: MPAS_IO_OFFSET_KIND = PIO_OFFSET_KIND
-----------------------------------------------^
./mpas_io_types.inc(64): error #6457: This derived type name has not been declared.   [FILE_DESC_T]
      type (file_desc_t) :: pio_file
------------^
./mpas_io_types.inc(84): error #6457: This derived type name has not been declared.   [IO_DESC_T]
      type (io_desc_t) :: pio_iodesc
------------^
./mpas_io_types.inc(108): error #6457: This derived type name has not been declared.   [VAR_DESC_T]
      type (Var_desc_t) :: field_desc
------------^
./mpas_io_types.inc(141): error #6457: This derived type name has not been declared.   [IOSYSTEM_DESC_T]
      type (iosystem_desc_t), pointer :: pio_iosystem => null()
------------^
compilation aborted for mpas_derived_types.F (code 1)
make[3]: *** [mpas_derived_types.o] Error 1
make[3]: Leaving directory `/home/mhseo/scratch/MPAS-Model/src/framework'
make[2]: *** [frame] Error 2
make[2]: Leaving directory `/home/mhseo/scratch/MPAS-Model/src'
make[1]: *** [mpas_main] Error 2
make[1]: Leaving directory `/home/mhseo/scratch/MPAS-Model'
make: *** [ifort] Error 2

These are modules I load.. I really want to solve this error.. Thanks!!
Code:
Currently Loaded Modulefiles:
  1) intel19/compiler-19   3) nv21/compiler-21      5) nv21/hdf5-1.10.5      7) nv21/netcdf-4.6.1     9) nv21/pio-2.6.2
  2) intel19/impi-19       4) nv21/mvapich2-2.3.4   6) nv21/pnetcdf-1.11.2   8) gcc/szip-2.1
 
Which version of MPAS are you working with? Also, what do the following commands return?
Code:
echo $PIO
ls -l $PIO
 
The version is v8.0.1. But I have never use MPAS, So I'm unsure if I check the version with this command.
Code:
[storm00]/home/mhseo/scratch/MPAS-Model> git tag
v0.0
v1.0
v1.1
v1.2
v1.3
v1.4
v1.5
v2.0
v2.1
v3.0
v3.1
v3.2
v3.3
v4.0
v5.0
v5.1
v5.2
v5.3
v6.0
v6.1
v6.2
v6.3
v7.0
v7.1
v7.2
v7.3
v8.0.0
v8.0.1

Apparently, PIO is on the module list, but if the command you gave doesn't load, my PIO doesn't seem to work.

Code:
[storm00]/home/mhseo/scratch/MPAS-Model> echo $PIO
PIO: Undefined variable.
[storm00]/home/mhseo/scratch/MPAS-Model> ls -l $PIO
PIO: Undefined variable.
[storm00]/home/mhseo/scratch/MPAS-Model> module li
Currently Loaded Modulefiles:
  1) intel19/compiler-19   3) nv21/compiler-21      5) nv21/hdf5-1.10.5      7) nv21/netcdf-4.6.1     9) nv21/pio-2.6.2
  2) intel19/impi-19       4) nv21/mvapich2-2.3.4   6) nv21/pnetcdf-1.11.2   8) gcc/szip-2.1

FYI, my shell is tcsh. Could this happen because it's different from bash..?
Code:
[storm00]/home/mhseo/scratch/MPAS-Model> echo $0
-tcsh

Thanks.
 
It looks like you probably have v8.0.1, but in general, you can run
Bash:
git describe --dirty

I think MPAS may need the $PIO environment variable to be set to the installation directory for the PIO library. If you're working on a computing system that's managed by others, you may be able to ask how to set the $PIO environment variable appropriately.
 
Top