Gah! You're absolutely right. A while ago, we fixed comm_c2f and
win_c2f, but somehow missed file_c2f.
Fixed on the trunk in r20511. I'll try to get this into v1.3.1.
On Feb 10, 2009, at 2:06 PM, Lisandro Dalcin wrote:
Try to run the trivial program below. I MPI_File_c2f(MPI_FILE_NULL)
returns "-1" (minus one), however it seems the routine should return
"0" (zero).
#include <mpi.h>
#include <stdio.h>
int main()
{
MPI_Fint i;
MPI_File f;
MPI_Init(0,0);
i = MPI_File_c2f(MPI_FILE_NULL);
printf("MPI_File_c2f(MPI_FILE_NULL) -> %d\n", i);
f = MPI_File_f2c(0);
printf("MPI_File_f2c(0) == MPI_FILE_NULL -> %s\n", (f ==
MPI_FILE_NULL)?"yes":"no");
MPI_Finalize();
}
--
Lisandro Dalcín
---------------
Centro Internacional de Métodos Computacionales en Ingeniería (CIMEC)
Instituto de Desarrollo Tecnológico para la Industria Química (INTEC)
Consejo Nacional de Investigaciones Científicas y Técnicas (CONICET)
PTLC - Güemes 3450, (3000) Santa Fe, Argentina
Tel/Fax: +54-(0)342-451.1594
_______________________________________________
devel mailing list
de...@open-mpi.org
http://www.open-mpi.org/mailman/listinfo.cgi/devel
--
Jeff Squyres
Cisco Systems