Thanks for your detailed explanation. I tried your method and my code works right now!
2012/8/29 Roy Stogner <[email protected]>: > > On Wed, 29 Aug 2012, 蔡园武 wrote: > >> I found the definition of Parallel::barrier: >> void libMesh::Parallel::barrier ( const Communicator & >> comm = >> Communicator_World ) [inline] >> and the explanation: >> Pause execution until all processors reach a certain point. > > >> But I don't know what should be 'a certain point'? > > > The barrier() call. No processor gets to continue past the barrier > until all other processors have reached the barrier. > > >> What can I pass as variable 'Communicator_World'? > > > That's a C++ argument-with-a-default-value. You don't pass anything > to it unless you want to use a non-default value. Just use > > Parallel::barrier(); > > and you're done. > --- > Roy -- Cai Yuanwu 蔡园武 Dept. of Engineering Mechanics, Dalian University of Technology, Dalian 116024, China ------------------------------------------------------------------------------ Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ _______________________________________________ Libmesh-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/libmesh-users
