Hi everybody,
I get the following error message when I run a parallel program:
In the following I report some relevant lines of the code
Could you suggest me some strategy to attack the problem?
For example, how could I find out which part of the code generates the segmentation fault error?
Thank you very much for your support, and please ask me more questions if this thread is not complete or not adequately clear.
Angelo
I get the following error message when I run a parallel program:
Bash:
--------------------------------------------------------------------------
mpirun noticed that process rank 1 with PID 21451 on node node342 exited on signal 11 (Segmentation fault).
--------------------------------------------------------------------------
In the following I report some relevant lines of the code
Code:
c --------------------------------------------------------------------
c JOBNUMBER is an integer which counts the iterations
c RANK is a number which counts inside a single iteration
c (its range varies from 0 to (size of communicator-1)
call mpi_comm_rank(mpi_comm_world,rank,ierr)
c ------------------------- convert RANK & JOBNUMBER to characters
write(rankp,'(i4.4)') rank
write(njob,'(i4.4)') jobnumber
c----------------------------------------------------------------------
c wait for the output to be
c written
lexist=.false.
do while (.NOT.lexist)
inquire(file='MarmAIT'//njob//rankp//
& '-Observed-Time.ttr',exist=lexist)
end do
c --------------------------------------------------------------------
c keep reading the file
c NJOB//RANKP//'.out' until it finds
c the string
c 'no need to wait for final data
c to be written'. It means that the
c computation of the external program is terminated
5 open(unit=123,file=njob//rankp//'.out')
rewind(123, iostat=stat)
10 read(123, '(A)', end = 20,iostat=stat) line
ind=index(line,'no need to wait for final data')
if (ind .ne. 0) then
write(*,*)
print *, line
goto 30
endif
goto 10
20 close (123)
goto 5
30 continue
close (123)
Could you suggest me some strategy to attack the problem?
For example, how could I find out which part of the code generates the segmentation fault error?
Thank you very much for your support, and please ask me more questions if this thread is not complete or not adequately clear.
Angelo