Re: [OMPI users] Porting MPI-3 C-program to Fortran

2016-04-25 Thread Dave Love
Tom Rosmond writes: > Thanks for replying, but the difference between what can be done in C > vs fortran is still my problem. I apologize for my rudimentary > understanding of C, but here is a brief summary: I'm not an expert on this stuff, just cautioning about Fortran semantics where I could

Re: [OMPI users] Porting MPI-3 C-program to Fortran

2016-04-22 Thread Tom Rosmond
Thanks for replying, but the difference between what can be done in C vs fortran is still my problem. I apologize for my rudimentary understanding of C, but here is a brief summary: In my originally attached C-program 'testmpi3.c' we have: int **shar_pntr : declare pointer variable (a point

Re: [OMPI users] Porting MPI-3 C-program to Fortran

2016-04-22 Thread Dave Love
Jeff Hammond writes: > MPI uses void** arguments to pass pointer by reference so it can be > updated. In Fortran, you always pass by reference so you don't need > this. I don't know if it's relevant in this case, but that's not generally true (even for Fortran 77, for which I used to know the st

Re: [OMPI users] Porting MPI-3 C-program to Fortran

2016-04-18 Thread Jeff Hammond
MPI uses void** arguments to pass pointer by reference so it can be updated. In Fortran, you always pass by reference so you don't need this. Just pass your Fortran pointer argument. There are MPI-3 shared memory examples in Fortran somewhere. Try Using Advanced MPI (latest edition) or MPI Trac