CFD Online Discussion Forums

CFD Online Discussion Forums (http://www.cfd-online.com/Forums/)
-   Main CFD Forum (http://www.cfd-online.com/Forums/main/)
-   -   how to call C++ function from fortran with MPI (http://www.cfd-online.com/Forums/main/4428-how-call-c-function-fortran-mpi.html)

kenn February 17, 2002 16:02

how to call C++ function from fortran with MPI
 
how to call a C++ function from Fortran 90 in parallel programming with MPI. here no communication among processors is needed.

Sebastien Perron February 17, 2002 21:39

Re: how to call C++ function from fortran with MPI
 
1) Link your program with the C++ compiler (linker), C++ names are sometimes hard to resolve for other compilers;

2) If you have have any problems, use the command nm -A to display the "link names" of the funtions, it will then be easier to solve you problems

3) You should be able todo it (look at the library petsc).



All times are GMT -4. The time now is 18:28.