Problem with mpicxx

John R. Wicks jwicks at cs.brown.edu
Thu Aug 9 09:47:25 CDT 2007


I would like to define a class with a matrix as an member:

class Foo {

public:

  Mat A;
};

I would expect that when an instance of Foo is created, A should be
initialized, just as it would be if it were declared as ordinary variable in
C:
int main (int argc,char **args) {
  Mat A;
...

However, when an instance of Foo is created, A is initialized to NULL.  How
can I get it to initialize properly?




More information about the petsc-users mailing list