Clean up some compiler warnings
[charm.git] / src / ck-com / DirectMulticastStrategy.C
1 /********************************************************
2 OLD DESCRIPTION
3         Section multicast strategy suite. DirectMulticast and its
4         derivatives, multicast messages to a section of array elements
5         created on the fly. The section is invoked by calling a
6         section proxy. These strategies can also multicast to a subset
7         of processors for groups.
8
9         These strategies are non-bracketed. When the first request is
10         made a route is dynamically built on the section. The route
11         information is stored in
12
13  - Sameer Kumar
14
15 **********************************************/
16
17 /**
18    @addtogroup ComlibCharmStrategy
19    @{
20    @file 
21 */
22
23 #include "DirectMulticastStrategy.h"
24
25
26 void DirectMulticastStrategy::createObjectOnSrcPe(ComlibSectionHashObject *obj, int npes, ComlibMulticastIndexCount *pelist) {
27         ComlibPrintf("[%d] old createObjectOnSrcPe() npes=%d\n", CkMyPe(), npes);
28         
29         obj->pelist = new int[npes];
30         obj->npes = npes;
31         for (int i=0; i<npes; ++i) {
32                 obj->pelist[i] = pelist[i].pe;
33         }
34 }
35
36
37 void DirectMulticastStrategy::createObjectOnIntermediatePe(ComlibSectionHashObject *obj,
38                                                            int npes,
39                                                            ComlibMulticastIndexCount *counts,
40                                                            int srcpe) {
41         ComlibPrintf("[%d] old createObjectOnIntermediatePe()\n", CkMyPe());
42
43     obj->pelist = 0;
44     obj->npes = 0;
45 }
46
47
48 /*@}*/