How to commit a data type?

  • Follow


Morning,

I`m now using MPI with C++. I`ve already create a datatype and i want to 
commit it. My datatype name is ConDT, i create it with 
MPI::Datatype::Create_struct() and now i want to commit it.
I read on the net that the specification of the commit operation in C++ 
is the follow  void Datatype::Commit() but i could`nt use it. Could any 
one help me?

Thanks!

0
Reply djoufakj (1) 3/5/2004 7:01:16 PM

Jean-Francois Djoufak Kengue wrote:

> Morning,
> 
> I`m now using MPI with C++. I`ve already create a datatype and i want to
> commit it. My datatype name is ConDT, i create it with
> MPI::Datatype::Create_struct() and now i want to commit it.
> I read on the net that the specification of the commit operation in C++
> is the follow  void Datatype::Commit() but i could`nt use it. Could any
> one help me?

Why couldn't you use the Commit() method? MPI::Datatype::Create_struct()
returns an instance of MPI::Datatype, which defines this method, so this
should work.

tom.
0
Reply Tom 3/7/2004 2:34:33 PM


1 Replies
195 Views

(page loaded in 0.033 seconds)


Reply: