Srini -
Unlike few MPI implementations which use integer for handlers in both C
and fortran, LAM/MPI uses integer for fortran MPI handlers and pointers in
C. Few MPI applications use the same value for both fortran and C
programs which I suppose is happening with your program.
There are MPI_*c2f and MPI_*f2c translation functions for converting one
to the other. You can try using them.
Nihar
>
>*-*-*-* Test Using frpspases_test (Harwell-Boeing
>Format) *-*-*-*
>
> -------> Testing PSPACEO+PSPACEY
>
> calling PSPACEO (Compute fill-reducing Ordering)..
> Value of Communicator 0
> Value of Communicator 0
>The Communicator is :0
>
>MPI_Comm_dup: invalid communicator: Invalid argument
>(rank 1, MPI_COMM_WORLD)
>Rank (1, MPI_COMM_WORLD): Call stack within LAM:
>Rank (1, MPI_COMM_WORLD): - MPI_Comm_dup()
>Rank (1, MPI_COMM_WORLD): - main()
>-----------------------------------------------------------------------------
>One of the processes started by mpirun has exited with
>a nonzero exit
>code. This typically indicates that the process
>finished in error.
>If your process did not finish in error, be sure to
>include a "return
>0" or "exit(0)" in your C code before exiting the
>application.
>
>PID 15553 failed on node n1 (192.168.10.43) with exit
>status 22.
>-------------------------------------------------------
>
>
>This PSPACEO is a C routine called from a fortran
>routine.the value of the communicator is integer in
>fortran and it is of MPI_Comm in C.i tried to print
>the value of the communicator in the calling Fortran
>module.but it is printing 0.is this the cause for the
>error.please help me.
>
>srini
>
>________________________________________________________________________
>Yahoo! India Insurance Special: Be informed on the best policies, services, tools and more.
>Go to: http://in.insurance.yahoo.com/licspecial/index.html
>_______________________________________________
>This list is archived at http://www.lam-mpi.org/MailArchives/lam/
>
Powered by LAM/MPI...
---------------------------------------
Nihar Sanghvi
LAM/MPI Team
Graduate Student (Indiana University)
http://www.lam-mpi.org
--------------------------------------
|