shantikumari
New member
Test #2: Fortran + C + NetCDF + MPI
The NetCDF+MPI test requires include files from both of these packages be in this directory, but the MPI scripts automatically make the mpif.h file available without assistance, so no need to copy that one. Copy the NetCDF include file here:
cp ${NETCDF}/include/netcdf.inc . (correctly run)
Note that the MPI executables mpif90 and mpicc are used below when compiling. Issue the following commands:
mpif90 -c 02_fortran+c+netcdf+mpi_f.f (while running this command line I got mpif90: command not found)
While running the last line I got error like no mpif90 file/or command not found
How to resolve this?
I have attached the screenshot.
The NetCDF+MPI test requires include files from both of these packages be in this directory, but the MPI scripts automatically make the mpif.h file available without assistance, so no need to copy that one. Copy the NetCDF include file here:
cp ${NETCDF}/include/netcdf.inc . (correctly run)
Note that the MPI executables mpif90 and mpicc are used below when compiling. Issue the following commands:
mpif90 -c 02_fortran+c+netcdf+mpi_f.f (while running this command line I got mpif90: command not found)
While running the last line I got error like no mpif90 file/or command not found
How to resolve this?
I have attached the screenshot.