How to use user-defined type in charm++?
In ooxx.C, put the class/struct declaration before "#include "ooxx.decl.h"", and insert "#include "charm++.h" " at the first line.
For example:
#include "charm++"
class myclass
{
public:
void sayhi(){}
void pup(PUP::er &p){}
};
#include "haha.decl.h"
your code...
Remember to implement the PUP method for your classes.
No comments:
Post a Comment