jobcomp mpif90
I found the following error when doing ./jobcomp and I have not been able to solve it. Can someone help please? Thank you very much in advance, Regards.
My cppdefs.h file has defined mpi. And I set MPI directories as follow.
#
MPIF90="mpif90"
MPIDIR=$(dirname $(dirname $(which $MPIF90)))
MPILIB="-L$MPIDIR/lib -lmpi -limf -lm"
MPIINC="-I$MPIDIR/include"
and mpif90 path is :
which mpif90 ~/mpich/bin/mpif90
./jobcomp > jobcomp.log
/usr/bin/ld: cannot find -limf collect2: error: ld returned 1 exit status gmake: * [Makefile:247: partit] Error 1
And when I modified cppdefs.h file
MPIF90=$MPIF90 MPIDIR=/share/home/dq057/mpich MPILIB="-L$MPIDIR/lib" MPIINC="-I$MPIDIR/include"
./jobcomp > jobcomp.log
gmake: O2: Command not found gmake: [Makefile:208: mpc] Error 127 (ignored) /bin/sh: ./mpc: No such file or directory gmake: * [Makefile:216: cppcheck] Error 127 gmake: O2: Command not found gmake: [Makefile:208: mpc] Error 127 (ignored) /bin/sh: ./mpc: No such file or directory gmake: * [Makefile:211: cross_matrix] Error 127
and I modified the .bashrc,then
MessPass2D_.f:793:22:
MessPass2D_.f:791:72:
do jpts=1,Npts
2
MessPass2D_.f:793:22:
A(ipts-Npts,jpts-Npts)=buf_rev1(ipts+Npts*(jpts-1))
1
Warning: Array reference at (1) out of bounds (-2 < -1) in loop beginning at (2) MessPass2D_.f:793:12:
do ipts=1,Npts
2
A(ipts-Npts,jpts-Npts)=buf_rev1(ipts+Npts*(jpts-1))
1
Warning: Array reference at (1) out of bounds (-2 < -1) in loop beginning at (2) MessPass2D_.f:801:23:
MessPass2D_.f:799:72:
do jpts=1,Npts
2
MessPass2D_.f:801:23:
A(ipts-Npts,jpts-Npts)=A(ipts,jpts)
1
Warning: Array reference at (1) out of bounds (-2 < -1) in loop beginning at (2) MessPass2D_.f:801:13:
do ipts=1,Npts
2
A(ipts-Npts,jpts-Npts)=A(ipts,jpts)
1
Warning: Array reference at (1) out of bounds (-2 < -1) in loop beginning at (2) MessPass2D_.f:825:25:
MessPass2D_.f:823:72:
do jpts=1,Npts
2
MessPass2D_.f:825:25:
A(Lmmpi+ipts,jpts-Npts)=buf_rev3(ipts+Npts*(jpts-1))
1
Warning: Array reference at (1) out of bounds (-2 < -1) in loop beginning at (2) MessPass2D_.f:833:25:
MessPass2D_.f:831:72:
do jpts=1,Npts
2
MessPass2D_.f:833:25:
A(Lmmpi+ipts,jpts-Npts)=A(Lmmpi+ipts-Npts,jpts)
1
Warning: Array reference at (1) out of bounds (-2 < -1) in loop beginning at (2) MessPass2D_.f:841:14:
do ipts=1,Npts
2
A(ipts-Npts,Mmmpi+jpts)=buf_rev4(ipts+Npts*(jpts-1))
1
Warning: Array reference at (1) out of bounds (-2 < -1) in loop beginning at (2) MessPass2D_.f:849:14:
do ipts=1,Npts
2
A(ipts-Npts,Mmmpi+jpts)=A(ipts,Mmmpi+jpts-NPts)
1
Warning: Array reference at (1) out of bounds (-2 < -1) in loop beginning at (2) MessPass3D_.f:895:26:
MessPass3D_.f:893:72:
do jpts=1,Npts
2
MessPass3D_.f:895:26:
A(ipts-Npts,jpts-Npts,k)=
1
Warning: Array reference at ...