From: Pascal Proulx <pascal.proulx@cdott.com>
Newsgroups: comp.parallel.mpi
Subject: Communicators and groups
Date: Wed, 14 Apr 1999 15:19:24 -0400
Organization: Computing Devices Canada
Message-Id: <3714EA3C.3A0D986C@cdott.com>
Mime-Version: 1.0
Content-Type: multipart/mixed; boundary="------------CDEDC3E6CCD8D804F722F1B4"
Xref: ukc comp.parallel.mpi:4920


This is a multi-part message in MIME format.
--------------CDEDC3E6CCD8D804F722F1B4
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit

Hi,
I need to create some communicators.  I've found most of the
documentation for that.  But there is still one thing that is not
obvious.  Nowhere in the doc I have found if we can free the MPI_Group
after the communicator has been created.

Ex.
int newRanks[2];
MPI_Group worldGroup, newGroup;
MPI_Comm newComm;

//Allocation of group, then communicator
MPI_Comm_group(MPI_COMM_WORLD, &worldGroup);
newRanks[0] = 1;
newRanks[1] = = 2;
MPI_Group_incl(worldGroup, newSize, newRanks, &newGroup);
MPIComm_create(MPI_COMM_WORLD, newGroup, &newComm);

//Done with the group: we created the communicator
MPI_Group_free(&newGroup); //Could I do that before MPI_Comm_free?
MPI_Group_free(&worldGroup);//Could I do that before MPI_Comm_free?


//Do some stuff
//...

//Deallocation of communicator
if (newComm != MPI_COMM_NULL)
 MPI_Comm_free(&newComm);



If I can free the group before the communicators, that means that I can
use local-scope variables for the MPI_Group variables.

Thx,
Pascal

========================================
Pascal Proulx
Software Engineer, Maritime Systems

Computing Devices Canada
A General Dynamic Company  Voice:(613) 596-7354
3785 Richmond Rd    Fax: (613) 596-7125
MS-3165
Nepean, Ontario
Canada, K2H 5B7
pascal.proulx@cdott.com
========================================



--------------CDEDC3E6CCD8D804F722F1B4
Content-Type: text/x-vcard; charset=us-ascii; name="vcard.vcf"
Content-Transfer-Encoding: 7bit
Content-Description: Card for Pascal Proulx
Content-Disposition: attachment; filename="vcard.vcf"

begin:          vcard
fn:             Pascal Proulx
n:              Proulx;Pascal
org:            Computing Devices Canada, a General Dynamic Company
email;internet: pascal.proulx@cdott.com
title:          Software Engineer
x-mozilla-cpt:  ;0
x-mozilla-html: FALSE
version:        2.1
end:            vcard


--------------CDEDC3E6CCD8D804F722F1B4--

