Patch: pack, unpack functions

Stephen Smith stephens at proximation.com
Mon Sep 10 21:43:54 UTC 2001


 <<10Sep.pack.patch>> 
These changes add the pack/unpack functions requested by Blanca.
Tested on Linux with --messaging on 2 processors.
Reviewed by Scott Haney.

Log Message:
 * PackUnpack.h:
   - Added a pack/unpack function requested by Blanca.
   pack() returns a RefCountedBlockPtr to all the elements in a field
   (not including guard layers) that are local to a given processor.
   unpack() copies the data from the RefCountedBlockPtr back into the field.

These functions were tested in parallel which led to the following small
changes:
 * FieldEngine.ExrpEngine.h - added a non-const accessor for the engine
    (used by reductions of remote engines)
 * FieldOffset.cpp - added blockAndEvaluate before values are checked
 * LocalPatch.cpp - added a test of pack/unpack
 * Arrays.h - added include of Functions/PackUnpack.h

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://sourcerytools.com/pipermail/pooma-dev/attachments/20010910/5cee8918/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 10Sep.pack.patch
Type: application/octet-stream
Size: 12140 bytes
Desc: not available
URL: <http://sourcerytools.com/pipermail/pooma-dev/attachments/20010910/5cee8918/attachment.obj>


More information about the pooma-dev mailing list