Yep, it's going to require a completely different code path based on MPI 
versions.

I'm writing a unit test for the present functionality before I start a 
refactoring - Roy, I might need your help with this one, please.

-Ben


On Sep 16, 2013, at 12:11 PM, Roy Stogner <[email protected]> wrote:

> 
> On Mon, 16 Sep 2013, Kirk, Benjamin (JSC-EG311) wrote:
> 
>> On Sep 16, 2013, at 11:49 AM, "Kirk, Benjamin (JSC-EG311)" 
>> <[email protected]>
>> wrote:
>> 
>>> I'm building against openmpi 1.7.2 to try and remove all deprecated MPI-1 
>>> functionality, and I've got a sticking point in parallel_algebra.h.
>>> 
>>> The MPI_LB/MPI_UB macros are deprecated, and I'm not sure what the proper 
>>> replacement is in that file for their usage.  Looks like we are trying to 
>>> protect for vtable's in an array of libMesh::TypeVector<T>'s?  How is it we 
>>> know to add two datatypes around the actual contents of the vector?
>>> 
>>> http://www.mpi-forum.org/docs/mpi21-report/node27.htm
>>> ------------------------------------------------------------------------------
>> 
>> To follow up on my own thread:
>> 
>> http://stackoverflow.com/questions/16738257/mpi-bcast-broadcast-of-a-stdvector-of-structs?rq=1
>> 
>> looks instructive with
>> MPI_Type_create_resized
>> 
>> but I can't believe this is a better solution.
> 
> It's at the very least an incomplete solution.
> MPI_Type_create_resized isn't in MPI 1.3; to keep backwards
> compatibility we'd need an #ifdef nest there.
> ---
> Roy


------------------------------------------------------------------------------
LIMITED TIME SALE - Full Year of Microsoft Training For Just $49.99!
1,500+ hours of tutorials including VisualStudio 2012, Windows 8, SharePoint
2013, SQL 2012, MVC 4, more. BEST VALUE: New Multi-Library Power Pack includes
Mobile, Cloud, Java, and UX Design. Lowest price ever! Ends 9/20/13. 
http://pubads.g.doubleclick.net/gampad/clk?id=58041151&iu=/4140/ostg.clktrk
_______________________________________________
Libmesh-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/libmesh-devel

Reply via email to