Mixed 2D array (or vector,list,etc.): integer and double
-
4sane schrieb:
So the actual reason why I need it is that I want to generate a quadtree (2-D) or octree (3-D) grid. So for every element(=grid point) I have to save some solution values (approx 24 doubles) and some definition (approx 10 integers)
struct values { double d[24]; int i[10]; };
-
@otze: I need integer to store the kind of element (obstacle, fluid element, inlet, etc.) and the double are necessary to store the results like density, velocity vector, etc. The basic idea is to use the quadree/octree method to refine my mesh close to obstacles. http://www.zeusnumerix.com/public/images/gallery/zn25533230142747625295img.png
I think the best idea is to seperate my array into an two. One for storing the integer element and the other for the doubles.