Re: new chapter 5

Rolf Rabenseifner (Rabenseifner@RUS.Uni-Stuttgart.DE)
Wed, 7 May 1997 13:07:47 +0200 (DST)

>2. I changed the Fortran binding of MEM_FREE so that it takes a choice
>argument. I.e., we now have
>
>POINTER (P, A(100,100))
>CALL MPI_MALLOC_MEM(40000, MPI_INFO_NULL, P, IERR)
>...
>CALL MPI_FREE_MEM(A, IERR)
>
>The malloc call is passed a pointer (a fortran integer) and returns (the
>integer cast of) an address. The free call is passed a variable at this
>address. This is in line with the C binding.

1. Sorry, I do not understand, why you have changed that voted
interface?

2. If it makes sense to change it, then I believe, that you
should not use "base" for "a pointer to a memory" and "the memory
itself".

Therefore I would change
2:37-46 BASE into MEM
2:39 and delete "initial address of"

3. Or only changing the C interface reflecting the different
way to define IN and OUT in C, and going back to the old
Fortran interface and using "P" in the example.

I prefer tha last solution.

Rolf

Minor type: 3:26 MPI_ALLOC_MEM instead of MPI_MALLOC_MEM
=



Rolf Rabenseifner (Computer Center )
Rechenzentrum Universitaet Stuttgart (University of Stuttgart)
Allmandring 30 Phone: ++49 711 6855530
D-70550 Stuttgart 80 FAX: ++49 711 6787626
Germany rabenseifner@rus.uni-stuttgart.de