CmPA / iPic3D

Particle-in-Cell code using the implicit moment method
72 stars 56 forks source link

make grid pointer part of EMfields class #76

Open alecjohnson opened 9 years ago

alecjohnson commented 9 years ago

The EMfields3D class creates data that is naturally associated with a grid and therefore naturally ought to contain a reference to the grid. The grid in turn is naturally associated with a process topology and naturally ought to contain a reference to the process topology. Making these two changes allows to eliminate the ubiquitous "grid" and "vct" pointers that appear as arguments to a very large number of methods in the EMfields3D class.

Also, these classes are basically const, and therefore vct and grid should be const.

Alec