export PATH=$PATH:/home1/amjadi/bin/netcdf-p/bin
export PATH=$PATH:/home1/amjadi/bin/netcdf-p/include
export PATH=$PATH:/home1/amjadi/bin/netcdf-p/lib
export PATH=$PATH:/home1/amjadi/bin/pio/usr/local/lib
export PATH=$PATH:/home1/amjadi/bin/pio/usr/local/include
I encountered this error during compilation of the MPAS:
mpas_derived_types.F:24.7:
use pio
1
Fatal Error: Can't open module file 'pio.mod' for reading at (1): No such file or directory
I checked over "pio.mod" and it exists on "/home1/amjadi/bin/pio/usr/local/include". What is wrong with pio?
I look forward to any advice.
Best regards,
Mojgan
Thank you for your quick replying. The version you mentioned is available on https://github.com/NCAR/ParallelIO/releases/tag/pio1_9_19 . I will do it and report the results.
All the best
Mojgan
[amjadi@localhost ParallelIO-pio1_9_19]$ CC=mpicc FC=mpif90 cmake -DNetCDF_Fortran_PATH=/home1/amjadi/bin/netcdf-f -DNetCDF_C_PATH=/home1/amjadi/bin/netcdf-c -DPnetCDF_PATH=/home1/amjadi/bin/netcdf-p /home1/amjadi/bin/ParallelIO-pio1_9_19
-- The C compiler identification is GNU 4.9.2
-- The Fortran compiler identification is GNU
-- Check for working C compiler: /usr/lib64/mpich/bin/mpicc
-- Check for working C compiler: /usr/lib64/mpich/bin/mpicc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working Fortran compiler: /usr/lib64/mpich/bin/mpif90
-- Check for working Fortran compiler: /usr/lib64/mpich/bin/mpif90 -- works
-- Detecting Fortran compiler ABI info
-- Detecting Fortran compiler ABI info - done
-- Checking whether /usr/lib64/mpich/bin/mpif90 supports Fortran 90
-- Checking whether /usr/lib64/mpich/bin/mpif90 supports Fortran 90 -- yes
CMake Error at CMakeLists.txt:11 (add_executable):
Cannot find source file:
//TryCSizeOf.f90
Tried extensions .c .C .c++ .cc .cpp .cxx .m .M .mm .h .hh .h++ .hm .hpp
.hxx .in .txx
CMake Error: Internal CMake error, TryCompile generation of cmake failed
-- Fortran compiler does not support c_sizeof function
CMake Error at CMakeLists.txt:11 (add_executable):
Cannot find source file:
//TryMPISERIAL.f90
Tried extensions .c .C .c++ .cc .cpp .cxx .m .M .mm .h .hh .h++ .hm .hpp
.hxx .in .txx
CMake Error: Internal CMake error, TryCompile generation of cmake failed
Building PIO with mpi serial stubs library
CMake Error at pio/CMakeLists.txt:45 (FIND_PACKAGE):
By not providing "FindNETCDF_Fortran.cmake" in CMAKE_MODULE_PATH this
project has asked CMake to find a package configuration file provided by
"NETCDF_Fortran", but CMake did not find one.
Could not find a package configuration file provided by "NETCDF_Fortran"
with any of the following names:
NETCDF_FortranConfig.cmake
netcdf_fortran-config.cmake
Add the installation prefix of "NETCDF_Fortran" to CMAKE_PREFIX_PATH or set
"NETCDF_Fortran_DIR" to a directory containing one of the above files. If
"NETCDF_Fortran" provides a separate development package or SDK, be sure it
has been installed.
-- Configuring incomplete, errors occurred!
See also "/home1/amjadi/bin/ParallelIO-pio1_9_19/CMakeFiles/CMakeOutput.log".
Thanks for the tips you mentioned. About "TryCSizeOf.f90" and "TryMPISERIAL.f90", before successful installation there are no ./pio/cmake/TryCSizeOf.f90 and ./pio/cmake/TryMPISERIAL.f90 .
As you commented, installing NetCDF-Fortran and NetCDF-C libraries in different places is not recommended. Once I had installed them by linux package manager to compile WRF on my own PC and it works fine. But I installed them manually again, because I thought I have to insert their direct local installation path to install other MPAS requirements.
By the way I did the tips you mentioned, but the same error occured. I don't know why?!!! :-(
After this failure, I searched about PIO more and found a helpful website " the MPAS tutorial practice guide" (http://www2.mmm.ucar.edu/projects/mpas/tutorial/UK2015/). I found that there is another PIO (v-1.7.1 for ease of installation) which MPAS works with it, too. So I downloaded PIO v1.7.1 and installed the requirments step by step. At last, I compiled the MPAS init-Atmosphere and atmosphere cores and they run fine. :-)
Thank you for your helpful notes.
Mojgan
- Ted