Newsgroups: comp.parallel.pvm
From: Stefan Hinker <hinker@informatik.uni-wuerzburg.de>
Subject: Re: Q:about pvm_pkint with multple-D array
Organization: University of Wuerzburg, Germany
Date: 19 Jan 1996 14:08:47 GMT
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Message-ID: <4do8lf$uhn@winx03.informatik.uni-wuerzburg.de>

Hi Choi
Choi Eunmi <choie> wrote:
>I tried to send some part of 3D array to other processors via pvm_pkint.
>
>For example, master sends
>            pvm_pkint( P_part_SUB[i], size2*size3, 1 );
>            pvm_send( tids[i], msgtype );
>..
>where P_part_SUB is the 3D array P_part_SUB[size1][size2][size3]
>and i is in the range of size1.
>
> warning: argument #1 is incompatible with prototype:
>        prototype: pointer to int : "/opt/pvm3/include/pvm3.h", line 239
>        argument : pointer to pointer to int

This is a problem of programming C, not of pvm.
Depending on how you declared your array, you can or cannot access it that way.
A workaround is always to use the adress-operator &, as in
    &(P_part_SUB[i])
but I can not garantee that that gives you what you would expect, since I
do not know your exact declaration.
For more information on pointers, datatypes etc., look at the C FAQ,
found at ftp://ftp.eskimo.com or ftp://rtfm.mit.edu
Also have a look at the newsgroup comp.lang.c

Greetings, 
Stefan
-- 
===============================================================================
Stefan Hinker                         email: hinker@informatik.uni-wuerzburg.de
                Unix? Still working on it  :-))
===============================================================================


