Getting two errors when trying to make init_atmosphere.
All libraries are installed properly and exports are as followed.
Code:
PAS_EXE_NAME=init_atmosphere_model -DMPAS_NATIVE_TIMERS -DMPAS_GIT_VERSION=v7.3 -O3 -ffree-line-length-none -fconvert=big-endian -ffree-form -fdefault-real-8 -fdefault-double-8 -c mpas_derived_types.F -I/home/will/MPAS-A/Libs/grib2/include -I/home/will/MPAS-A/Libs/NETCDF/include -I/home/will/MPAS-A/Libs/grib2/include -I/home/will/MPAS-A/Libs/NETCDF/include -I/home/will/MPAS-A/Libs/grib2/include -I/home/will/MPAS-A/Libs/grib2/include -I/home/will/MPAS-A/Libs/NETCDF/include -I/home/will/MPAS-A/Libs/grib2/include -I/home/will/MPAS-A/Libs/NETCDF/include -I/home/will/MPAS-A/Libs/grib2/include -I../external/esmf_time_f90
mpas_io_types.inc:4:46:
4 | integer, parameter :: MPAS_IO_OFFSET_KIND = PIO_OFFSET
| 1
Error: Parameter ‘pio_offset’ at (1) has not been declared or is a variable, which does not reduce to a constant expression
mpas_io_types.inc:70:20:
70 | integer (kind=MPAS_IO_OFFSET_KIND) :: frame_number = 1
| 1
Error: Parameter ‘mpas_io_offset_kind’ at (1) has not been declared or is a variable, which does not reduce to a constant expression
Code:
make[1]: Entering directory '/home/will/MPAS-A/MPAS-Model'
Checking for a usable PIO library...
=> PIO 1 detected
f951: Error: Cannot open file ‘pio1.f90’
<built-in>: Fatal Error: cannot open input file: pio1.f90
compilation terminated.
f951: Error: Cannot open file ‘pio1.f90’
<built-in>: Fatal Error: cannot open input file: pio1.f90
compilation terminated.
All libraries are installed properly and exports are as followed.
Code:
export MPAS_EXTERNAL_LIBS="-L$DIR/NETCDF/lib -L$DIR/grib2/lib -lnetcdf -lpnetcdf -lhdf5_hl -lhdf5 -ldl -lz"
export MPAS_EXTERNAL_INCLUDES="-I$DIR/NETCDF/include -I$DIR/grib2/include"
export PIO=$DIR/grib2
export LD_LIBRARY_PATH=$DIR/NETCDF/lib:$LD_LIBRARY_PATH
export NETCDF=$DIR/NETCDF
export PNETCDF=$DIR/grib2
export HDF5=$DIR/grib2