charm AT lists.siebelschool.illinois.edu
Subject: Charm++ parallel programming system
List archive
- From: "Kale, Laxmikant V" <kale AT illinois.edu>
- To: "Mitchell, John A" <jamitch AT sandia.gov>, "charm AT lists.cs.illinois.edu" <charm AT lists.cs.illinois.edu>
- Subject: Re: [charm] chare ?
- Date: Mon, 5 Dec 2016 23:38:52 +0000
- Accept-language: en-US
You can hold a *reference* to another chare inside a chare (but not the chare itself). The reference is called a Proxy. Your code is almost ok, except for the fact that left and right should be declared to be of type CProxy_HierarchicalNode (See section 3.2 of the Charm++ manual: http://charm.cs.illinois.edu/manuals/html/charm++/manual-1p.html )
I am not sure a NULL proxy is possible. A better way is to control it with another variable (e.g. bool leftExists, rightExists).
Laxmikant (Sanjay) Kale http://charm.cs.uiuc.edu Professor, Computer Science kale AT illinois.edu 201 N. Goodwin Avenue Ph: (217) 244-0094 Urbana, IL 61801-2302
From:
"Mitchell, John A" <jamitch AT sandia.gov>
I am new to Charm++. |
- [charm] chare ?, Mitchell, John A, 12/05/2016
- <Possible follow-up(s)>
- Re: [charm] chare ?, Kale, Laxmikant V, 12/05/2016
Archive powered by MHonArc 2.6.19.