- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Dear Forum Staff,
When I am compiling WRFDA, running
. /compile all_wrfvar >& compile.wrfda.log
it generates 43 exe files, missing da_wrfvar.exe file, and the following error is reported in compile.wrfda.log, I don't know how to solve it:
/home/liuwenhao/wrfchem4/WRFDA/tools/standard.exe module_dm.bb | /lib/cpp -P -nostdinc -traditional-cpp > module_dm.f90
rm -f module_dm.G module_dm.H module_dm.bb
time mpif90 -f90=ifort -o module_dm.o -c -O3 -ip -fp-model precise -w -ftz -align all -fno-alias -FR -convert big_endian -r8 -real-size `expr 8 \* 8` -i4 module_dm.f90
module_dm.f90(1305): error #7013: This module file was not generated by any release of this compiler. [MPI]
use mpi
----------^
module_dm.f90(1345): error #7013: This module file was not generated by any release of this compiler. [MPI]
use mpi
----------^
module_dm.f90(1385): error #7013: This module file was not generated by any release of this compiler. [MPI]
use mpi
----------^
module_dm.f90(6464): error #7002: Error in opening the compiled module file. Check INCLUDE paths. [MODULE_DM]
USE module_dm
The above is part of the error message, the full file can refer to the attachment.
Would like to know how to solve the above problem.
PS.
Here are some system settings:
[liuwenhao@server WRFDA]$ which mpicc
/apps/intel/compilers_and_libraries_2017.2.174/linux/mpi/intel64/bin/mpicc
[liuwenhao@server WRFDA]$ which mpif90
/apps/intel/compilers_and_libraries_2017.2.174/linux/mpi/intel64/bin/mpif90
[liuwenhao@server WRFDA]$ which mpiicc
/apps/intel/compilers_and_libraries_2017.2.174/linux/mpi/intel64/bin/mpiicc
liuwenhao@server WRFDA]$ which mpifort
/public/software/anaconda3/bin/mpifort
[liuwenhao@server WRFDA]$ which mpiifort
/apps/intel/compilers_and_libraries_2017.2.174/linux/mpi/intel64/bin/mpiifort
vi ~/.bashrc Some of the settings are as follows
source /apps/intel/bin/compilervars.sh intel64
source /apps/intel/impi/2017.2.174/bin64/mpivars.sh
export CC=icc
export CXX=icpc
export FC=ifort
Link Copied
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
The first error:
module_dm.f90(1305): error #7013: This module file was not generated by any release of this compiler. [MPI]
use mpi
----------^
Indicates the file mpi.mod was located but was not that which was compiled by ifort. This may be due to an alternat vendor's mpi.mod file was found on the include path (perhaps gfortran's mpi.mod). Alternatively, you could have installed a newer version of Intel's software of which the version 2017 that you are using to compile, is incompatible with the newer version's supplied .mod files.
The last error is due to the first error.
Jim Dempsey
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Jim most likely answered this - it's probably another mpi on the system. A lot of linux installations come with MPI built for gfortran, which is not compatible.
you can check where it's looking for mpi.mod with a couple of simple tests:
echo $INCLUDE
and search those paths for mpi.mod
also, which mpif90 are you using? Is it Intel MPI or the default system mpif90 which is built for mpich or openmpi?
which mpif90
ANd you can try the -dryrun option to dump all the paths and libs used in your compilation:
mpif90 -f90=ifort -o module_dm.o -c -O3 -dryrun -ip -fp-model precise -w -ftz -align all -fno-alias -FR -convert big_endian -r8 -real-size `expr 8 \* 8` -i4 module_dm.f90

- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page