Patch: pack/unpack added to Blanca branch

Stephen Smith stephens at proximation.com
Mon Sep 10 22:02:41 UTC 2001


I've added pack and unpack to the blanca-2001Oct01 branch.
The functions return a RefCountedBlockPtr, so you don't have
to allocate or delete storage:

RefCountedBlockPtr<double> ptr = pack(field);

fortran_code(ptr.beginPointer(), ptr.size()); // operate on double*, size 

unpack(field, ptr);

Pack returns a 1-D block of data that includes all the data local
to a given processor, excluding the guard layers.  unpack performs
the inverse operation.

Let me know if this solution is sufficient and works for you.
Thanks,

     Stephen

 <<10Sep.pack.blanca.patch>> 

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


More information about the pooma-dev mailing list