Hi

I have a basic question on the memory used :

I am creating a custom system class like :

class foo : public System
{
  foo(EquationSystems& es,
                       const std::string& name_in,
                                  const unsigned int number_in):
            :System(es, name_in, number_in),mesh(2),eq(mesh){}

int VARIABLE;
char ARRAY[100];

};

Now when I do the following:

Mesh mesh(2);
mesh.read("A_very_large_mesh.msh");
EquationSystems es(mesh);

es.add_system<foo>("Test");
es.init();


Now, is there one copy of ARRAY or variable for all the elements or if there 
are N elements or K nodes , there are N/K copies of ARRAY?

Thank you,
Vegnesh
------------------------------------------------------------------------------
_______________________________________________
Libmesh-users mailing list
Libmesh-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/libmesh-users

Reply via email to