Re: [OMPI users] Calling MPI_send MPI_recv from a fortran subroutine

2013-03-01 Thread Stefan Mauerberger
Please also put IMPICIT NONE to your SUBROUTINE and replace INCLUDE 'mpif.h' by USE mpi. This comes with the benefit of interface checking. The compiler will throw an error due to missing tags. It is even better style to write: PROGRAM main USE MPI ... CONTAINS SUBROUTINE ... ...

[OMPI users] MPI_FILE_READ: wrong file-size does not raise an exception

2013-02-11 Thread Stefan Mauerberger
Hi Everyone! Playing around with MPI_FILE_READ() puzzles me a little. To catch all errors I set the error-handler - the one which is related to file I/O - to MPI_ERRORS_ARE_FATAL. However, when reading from a file which has not the necessary size MPI_FILE_READ(...) returns 'MPI_SUCCESS: no

[OMPI users] Asynchronous parallel I/O concerning MPI_File_write_all_begin() and MPI_File_write_all_end()

2013-02-03 Thread Stefan Mauerberger
Dear all! using the split collective procedures MPI_File_write_all_begin() and MPI_File_write_all_end() causes some confusion to me. It was my intention to implement asynchronous file i/o using those procedures. The idea is to calculate some 'useful' stuff while writing tons of data to disk.

Re: [OMPI users] Initializing OMPI with invoking the array constructor on Fortran derived types causes the executable to crash

2013-01-14 Thread Stefan Mauerberger
Well, I missed to emphasize one thing: It is my intension to exploit F2003's lhs-(re)allocate feature. Meaning, it is totally legal in F03 to write something like that: integer, allocatable :: array(:) array = [ 1,2,3,4 ] array = [ 1 ] where 'array' gets automatically (re)allocated. One more thing

Re: [OMPI users] Initializing OMPI with invoking the array constructor on Fortran derived types causes the executable to crash

2013-01-11 Thread Stefan Mauerberger
ooo" > comment aut 'USE mpi' an see your error (SIGSEGV) again, now without any > MPI part in the program. > So my suspiction is this is an bug in your GCC version. Especially because > there > is no SIGSEGV using 4.7.2 GCC (whereby it crasehs using 4.4.6) > > ==>

[OMPI users] Initializing OMPI with invoking the array constructor on Fortran derived types causes the executable to crash

2013-01-11 Thread Stefan Mauerberger
Hi There! First of all, this is my first post here. In case I am doing something inappropriate pleas be soft with me. On top of that I am not quite sure whether that issue is related to Open MPI or GCC. Regarding my problem: Well, it is a little bulky, see below. I could figure out that the