← Back to team overview

dolfin team mailing list archive

Re: Parallel assembly

 

On Sat, Dec 01, 2007 at 05:02:13PM +0000, Garth N. Wells wrote:
> Looks like you forgot to add MPIManager to the repository.
>
> Do we want a class MPIManager, or should we let PETSc take of this? If we 
> create an MPI object ourselves, it will probably clash with PETSc.

We need it if we sometimes want to use MPI without PETSc (which is not
unlikely even if PETSc is the default).

MPIManager works like PETScManager and takes care of the global
initialization at startup:

  MPIManager::init();

and also calls finalize() automatically when the program exits. It
talks to MPI to see if it has already been initialized (by PETSc,
itself or someone else) and does nothing if that is the case.

-- 
Anders


> Garth
>
> Gustav Magnus Vikstrøm wrote:
>> Hi
>> I've pushed to http://www.vikstrom.no/hg/dolfin
>> Still having problems with having to manually call
>> MPIManager::finalize() (see src/sandbox/pmesh)
>> - Magnus
>> On Sat, 2007-12-01 at 09:59 +0100, Anders Logg wrote:
>>> On Fri, Nov 30, 2007 at 02:26:02PM +0100, Gustav Magnus Vikstrøm wrote:
>>>>>
>>>>> Anders Logg wrote:
>>>>>> Magnus has done some initial work on implementing the missing
>>>>>> functions in MPIMeshCommunicator for broadcasting Mesh and
>>>>>> MeshFunction. (It seems to work but we need to clean it up a bit
>>>>>> before pushing.)
>>>>>>
>>>>> Any idea when it will be pushed? I was just starting to look at it, so
>>>>> I'll wait but don't want to wait too long and lose my enthusiasm.
>>>>>
>>>>>
>>>> I'll push something later today. Then Anders will push it to the 
>>>> official
>>>> repo.
>>>>
>>>> - Magnus
>
>


Follow ups

References