Newsgroups: comp.parallel.pvm
From: seyfarth@seabass.st.usm.edu ()
Reply-To: seyfarth@whale.st.usm.edu
Subject: Re: packing and unpacking commons
Organization: University of Southern Mississippi
Date: 16 Sep 1994 13:32:36 GMT
Message-ID: <35c6pk$hv6@server.st.usm.edu>

In article 94Sep12130215@smithers.et.byu.edu, dave@smithers.et.byu.edu (David L. Peart) writes:
 > Is there a simple way to pack and unpack commons.  I have many commons
 > that must be sent between slaves that are a major pain to work with
 > variable by variable.
 > 

	Suppose your common block is a collection of REALs named
	A1, A2, ..., A100.  Then you could declare an array and equivalence
	it to A1 as

		REAL ALL(100)
		EQUIVALENCE (ALL,A1)

	Now you can pack/unpack ALL as an array instead of as individual
	REALs.  If the common block has several data types, placing
	variables of the same type together can be done permitting
	one equivalence'd array for each type.


--
Ray Seyfarth			University of Southern Mississippi
seyfarth@whale.st.usm.edu	(601)266-4859

