<div style="line-height:1.7;color:#000000;font-size:14px;font-family:arial"><DIV>Hello,<BR>    I reconfigure the mpi and petsc today. I want to use ifort as the compiler. <BR>And there is a problem.</DIV>
<DIV>    Before I reconfigure them, both compiling and running are ok (1.make ex4f;<BR>2.mpiexec -n 2 ./ex4f;The name 'ex4f' is my project name, not the petsc <BR>example name).And I have done lots of work before.Since I think the project<BR>is inefficient, I want to use ifort.<BR>   After the reconfiguration, the compiling seems ok(make ex4f) and I can get <BR>the executable file. But when I run it(mpiexec -n 2 ./ex4f), it does not work<BR>('forrtl: severe (32): invalid logical unit number, unit -1215421032, file unknown'). <BR>Besides, both compiling and running are ok when I test the petsc examples.</DIV>
<DIV>   Before I reconfigure them, the configurations are as follows:<BR>     mpi:   ./configure --prefix=/home/geo/soft/mpich2<BR>     PETSc: ./configure --download-f-blas-lapack=1 <BR>   And now the configurations are the following:<BR>     mpi:   ./configure --prefix=/home/geo/soft/mpich2<BR>                           CC=icc CXX=icpc F77=ifort FC=ifort<BR>     PETSc: ./configure --with-mpi-dir=/home/geo/soft/mpich2<BR>                    --download-f-blas-lapack=1 --with-x=1</DIV>
<DIV>   I do not know why it does not work when I run it after the reconfiguration.</DIV>
<DIV><BR>The information of the compiling is as follows.</DIV>
<DIV>(1)Information(make ex4f) before the reconfiguration:<BR>mpif90 -c -I/home/ddc/soft/petsc/petsc-3.2-p7/include/finclude -g   <BR> -I/home/ddc/soft/petsc/petsc-3.2-p7/include <BR> -I/home/ddc/soft/petsc/petsc-3.2-p7/arch-linux2-c-debug/include <BR> -I/home/ddc/soft/mpich2/include    <BR> -o ex4f.o ex4f.F<BR>---------------------------------^<BR>mpif90 -g  -I/home/ddc/soft/petsc/petsc-3.2-p7/include/finclude -o ex4f ex4f.o  <BR> -L/home/ddc/soft/petsc/petsc-3.2-p7/arch-linux2-c-debug/lib  <BR> -lpetsc -lpthread -Wl,-rpath,/home/ddc/soft/petsc/petsc-3.2-p7/arch-linux2-c-debug/lib -lflapack -lfblas -lm <BR> -L/home/ddc/soft/mpich2/lib -L/usr/lib/gcc/i486-linux-gnu/4.4.3 <BR> -L/home/ddc/intel/composer_xe_2011_sp1.9.293/compiler/lib/ia32 <BR> -L/home/ddc/intel/composer_xe_2011_sp1.9.293/mkl/lib/ia32 <BR> -L/usr/lib/i486-linux-gnu -ldl -lmpich -lopa -lmpl -lrt -lpthread -lgcc_s -lmpichf90
  -lifport <BR> -lifcore -limf -lsvml -lm -lipgo -lirc -lirc_s -lm -ldl -lmpich -lopa -lmpl -lrt <BR> -lpthread -lgcc_s -ldl <BR>/bin/rm -f -f ex4f.o</DIV>
<DIV>(2)Information(make ex4f) after the reconfiguration:<BR>/home/geo/soft/mpich2/bin/mpif90 -c <BR> -I/home/geo/soft/petsc/petsc-3.2-p7/include/finclude -g<BR> -I/home/geo/soft/petsc/petsc-3.2-p7/include <BR> -I/home/geo/soft/petsc/petsc-3.2-p7/arch-linux2-c-debug/include <BR> -I/home/geo/soft/mpich2/include    <BR> -o ex4f.o ex4f.F<BR>---------------------------------^<BR>/home/geo/soft/mpich2/bin/mpif90 -g  <BR> -I/home/geo/soft/petsc/petsc-3.2-p7/include/finclude -o ex4f ex4f.o  <BR> -L/home/geo/soft/petsc/petsc-3.2-p7/arch-linux2-c-debug/lib  <BR> -lpetsc -lpthread -Wl,-rpath,/home/geo/soft/petsc/petsc-3.2-p7/arch-linux2-c-debug/lib -lflapack -lfblas -ldl <BR> -L/home/geo/soft/mpich2/lib -lmpich -lopa -lmpl -lrt -lpthread <BR> -L/opt/intel/composer_xe_2011_sp1.10.319/compiler/lib/ia32 <BR> -L/opt/intel/composer_xe_2011_sp1.10.319/ipp/lib/ia32 <BR> -L/opt/intel/composer_xe_2011_sp1.
 10.319/mkl/lib/ia32 <BR> -L/opt/intel/composer_xe_2011_sp1.10.319/tbb/lib/ia32/cc4.1.0_libc2.4_kernel2.6.16.21 <BR> -L/opt/intel/composer_xe_2011_sp1.9.293/compiler/lib/ia32 <BR> -L/opt/intel/composer_xe_2011_sp1.9.293/mkl/lib/ia32 <BR> -L/usr/lib/gcc/i486-linux-gnu/4.4.3 <BR> -L/usr/lib/i486-linux-gnu -limf -lsvml -lipgo -ldecimal -lcilkrts -lstdc++ -lgcc_s <BR> -lirc -lirc_s -lmpichf90 -lifport -lifcore -lm -lm -ldl -lmpich -lopa -lmpl -lrt <BR> -lpthread -limf -lsvml -lipgo -ldecimal -lcilkrts -lstdc++ -lgcc_s -lirc -lirc_s -ldl <BR>/bin/rm -f -f ex4f.o</DIV>
<DIV>(3)When reconfiguring the petsc, the information about compilers is as follows.<BR>   Compilers:<BR>     C Compiler: /home/geo/soft/mpich2/bin/mpicc -wd1572 -Qoption,cpp,--extended_float_type -g<BR>     Fortran Compiler: /home/geo/soft/mpich2/bin/mpif90 -g<BR></DIV>
<DIV>      Thanks.   </DIV>
<DIV>                                                Jim</DIV></div><br><br><span title="neteasefooter"><span id="netease_mail_footer"></span></span>