Re: NAMD chares

From: Jim Phillips (jim_at_ks.uiuc.edu)
Date: Mon Jul 18 2011 - 16:47:44 CDT

On Mon, 11 Jul 2011, Andy Somogyi wrote:

> Hi All,
>
> We're experimenting adding some features to NAMD, and I trying to figure
> out a few things.
>
> Why does the main class inherit from Chare and not CBase_main as in
> other Charm++ programs?
>
> I noticed that most of the NAMD chares do not inherit from CBase_***.

It's just old code. It looks like the CBase_ base classes are only needed
to implement chare migration, which NAMD doesn't use.

> Would it cause problems if I changed
>
> class main : public Chare
>
> to
>
> class main : public CBase_main

Since CBase_main is derived from Chare it shouldn't make any difference.

> The reason I ask is that I want to add a few Python callable methods to
> some various NAMD chares. Note, we did consider tcl and it does not meet
> our needs.

OK, let us know how it works out for you.

-Jim

This archive was generated by hypermail 2.1.6 : Wed Feb 29 2012 - 15:57:28 CST