<div style="line-height:1.7;color:#000000;font-size:14px;font-family:arial"><DIV style="LINE-HEIGHT: 1.7; FONT-FAMILY: arial; COLOR: #000000; FONT-SIZE: 14px">
<DIV>Hello, Jed</DIV>
<DIV> I use gdb to debug it. </DIV>
<DIV> £¨1£©The source code(The line number is add by me.Line 125 and 127 are added right now for debugging ):</DIV>
<DIV> ............</DIV>
<DIV>121 open(50,FILE='check.out')<BR>122 open(LSS,FILE='select.dat')<BR>123 C open(LH,FILE='select1.dat',FORM='UNFORMATTED')<BR>124 open(LR,FILE='initials.dat')<BR>125 write(*,*) 'test1'<BR>126 open(LTR,FILE='trapdoor.dat')<BR> 127 write(*,*) 'test2'</DIV>
<DIV> £¨2£© Debug information: </DIV>
<DIV>(gdb) break 124 <BR>Breakpoint 1 at 0x804bb42: file ex4f.F, line 124.<BR>(gdb) run<BR>Starting program: /home/geo/project/temp/8-little-9-2716/tutorials/ex4f <BR>[Thread debugging using libthread_db enabled]</DIV>
<DIV>Breakpoint 1, gleaves () at ex4f.F:124<BR>124 open(LR,FILE='initials.dat')<BR>(gdb) n<BR>125 write(*,*) 'test1'<BR>(gdb) n<BR> test1<BR>126 open(LTR,FILE='trapdoor.dat')<BR>(gdb) n<BR>forrtl: severe (32): invalid logical unit number, unit -1208035944, file unknown<BR>Image PC Routine Line Source <BR>libirc.so 00AC3470 Unknown Unknown Unknown<BR>libirc.so 00AC2011 Unknown Unknown Unknown<BR>libifcore.so.5 00BD066B Unknown Unknown Unknown<BR>libifcore.so.5 00B5A178 Unknown Unknown Unknown<BR>libifcore.so.5 00B70CF4 Unknown Unknown Unknown<BR>ex4f 0804BC6B Unknown Unknown Unknown<BR>ex4f 0804B904 Unknown Unknown Unknown<BR>libc.so.6 00C48BD6 Unknown Unknown Unknown<BR>ex4f 0804B811 Unknown Unknown Unknown</DIV>
<DIV>Program exited with code 040.<BR>(gdb) </DIV>
<DIV> £¨3£©From the information above, it stops in 126 and can not go to line 127.</DIV>
<DIV> </DIV>
<DIV> Thanks.</DIV>
<DIV> Jim</DIV>
<DIV></DIV>
<DIV id="divNeteaseMailCard"></DIV>
<DIV><BR></DIV>>ÔÚ 2012-06-02 21:11:05£¬"Jed Brown" <<A href="mailto:jedbrown@mcs.anl.gov">jedbrown@mcs.anl.gov</A>> дµÀ£º<BR>
<BLOCKQUOTE style="BORDER-LEFT: #ccc 1px solid; MARGIN: 0px 0px 0px 0.8ex; PADDING-LEFT: 1ex" id="isReplyContent">
<DIV class="gmail_quote">>On Sat, Jun 2, 2012 at 7:02 AM, w_ang_temp <SPAN dir="ltr"><<A href="mailto:w_ang_temp@163.com" target="_blank">w_ang_temp@163.com</A>></SPAN> wrote:<BR>
<BLOCKQUOTE style="BORDER-LEFT: #ccc 1px solid; MARGIN: 0px 0px 0px 0.8ex; PADDING-LEFT: 1ex" class="gmail_quote">
<DIV style="LINE-HEIGHT: 1.7; FONT-FAMILY: arial; FONT-SIZE: 14px">
<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></DIV></DIV></BLOCKQUOTE>
<DIV><BR></DIV>
<DIV>>Show us the full stack trace (the full PETSc error message is good, a gdb stack trace would be better). It's quite possible that that you have >some code that is not standards compliant, thus it behaves differently with different compilers.</DIV>
<DIV> </DIV>
<BLOCKQUOTE style="BORDER-LEFT: #ccc 1px solid; MARGIN: 0px 0px 0px 0.8ex; PADDING-LEFT: 1ex" class="gmail_quote">
<DIV style="LINE-HEIGHT: 1.7; FONT-FAMILY: arial; FONT-SIZE: 14px">
<DIV>>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> </DIV></DIV></BLOCKQUOTE></DIV></BLOCKQUOTE></DIV></div><br><br><span title="neteasefooter"><span id="netease_mail_footer"></span></span>