Skip to content
Snippets Groups Projects
Commit cadf6c6f authored by Robert Klöfkorn's avatar Robert Klöfkorn
Browse files

mem data output.


git-svn-id: https://dune.mathematik.uni-freiburg.de/svn/alugrid/trunk@1285 0d966ed9-3843-0410-af09-ebfb50bd7c74
parent 575b16c8
No related branches found
No related tags found
No related merge requests found
......@@ -2,19 +2,19 @@
AUTOMAKE_OPTIONS = foreign 1.5
#CXXFLAGS=-O3 -funroll-loops -finline-functions -DNDEBUG
CXXFLAGS=-g -Wall
#CXX=g++-4.3.2
CXXFLAGS=-g -Wall -Wfatal-errors
CXX=mpiCC
#MPI_LIBS=-pthread -L/usr/lib64 -lmpi_cxx -lmpi -lopen-rte -lopen-pal -ldl -Wl,--export-dynamic -lnsl -lutil -lm -ldl
# work arround for automake versions < 1.8
SOURCE_DIR=../../src
AM_CPPFLAGS = $(ALL_PKG_CPPFLAGS) -I$(SOURCE_DIR) -I$(SOURCE_DIR)/serial -I$(SOURCE_DIR)/parallel -I$(SOURCE_DIR)/duneinterface
AM_CPPFLAGS = $(ALL_PKG_CPPFLAGS) $(MPI_CPPFLAGS) -I$(SOURCE_DIR) -I$(SOURCE_DIR)/serial -I$(SOURCE_DIR)/parallel -I$(SOURCE_DIR)/duneinterface
# headers to install
noinst_PROGRAMS = loadlb # example sizes # adapt
noinst_PROGRAMS = loadlb sizes # example sizes # adapt
#example_SOURCES = example.cc $(SOURCE_DIR)/alugrid_serial.cc
#sizes_SOURCES = sizes.cc $(SOURCE_DIR)/alugrid_serial.cc
sizes_SOURCES = sizes.cc $(SOURCE_DIR)/alugrid_serial.cc
#adapt_SOURCES = adapt.cc $(SOURCE_DIR)/alugrid_2d.cc $(SOURCE_DIR)/alugrid_serial.cc
loadlb_SOURCES = loadlb.cc $(SOURCE_DIR)/alugrid_serial.cc $(SOURCE_DIR)/alugrid_parallel.cc
loadlb_LDADD = $(PARTY_LDFLAGS) $(PARTY_LIBS) $(PARMETIS_LDFLAGS) $(PARMETIS_LIBS) $(METIS_LDFLAGS) $(METIS_LIBS)
......
......@@ -8,6 +8,7 @@
//
//***********************************************************************
#include <iostream>
#include <mpi.h>
using namespace std;
......
-----------------------------------------------
read macro grid from < ../macrogrids/cube.hexa > !
-----------------------------------------------
Grid generated!
Gitter :: printSize () :
- Elements ............ 1
- Boundaries .......... 6
- Faces .............. 6
- Edges ............... 12
- Vertices ............ 8
---------------------------------------------
bool = 1
char = 1
signed char = 1
MyAlloc = 1
Refcount = 1
HedgeRule = 1
Hface3Rule = 1
Hface4Rule = 1
DuneIndexProvider = 8
******** TETRA *************************8
Tetrasize = 104
Hface3_IMPL = 88
Hface3_GEO = 64
Hface3::nb = 24
HEdge1_IMPL = 64
HEdge1_GEO = 40
VertexMacro = 64
VertexGeo = 64
Vertex = 64
Hbnd3_IMPL = 88
******** HEXA *************************8
Hexasize = 120
Hface4_IMPL = 96
Hface4_GEO = 72
Hface4::nb = 24
Hbnd4_IMPL = 88
******** Number of Elements ************************8
Macro elements: size = 0 MB
Macro boundary : size = 0 MB
Macro faces : size = 0 MB
Macro edges : size = 0 MB
Macro vertices : size = 0 MB
Elements : size = 0 MB
Boundaries : size = 0 MB
Faces : size = 0 MB
Edges : size = 0 MB
Vertices : size = 0 MB
Indices : size = 0 MB
All leaf size : 2612 MB
bytes per Element: 2612
Estimated all size : 2938 MB
BuilderIF size = 6 MB
Overall size = 6 MB
Refine global: run 0
Gitter :: printSize () :
- Elements ............ 8
- Boundaries .......... 24
- Faces .............. 36
- Edges ............... 54
- Vertices ............ 27
Refine global: run 1
Gitter :: printSize () :
- Elements ............ 64
- Boundaries .......... 96
- Faces .............. 240
- Edges ............... 300
- Vertices ............ 125
Refine global: run 2
Gitter :: printSize () :
- Elements ............ 512
- Boundaries .......... 384
- Faces .............. 1728
- Edges ............... 1944
- Vertices ............ 729
Refine global: run 3
Gitter :: printSize () :
- Elements ............ 4096
- Boundaries .......... 1536
- Faces .............. 13056
- Edges ............... 13872
- Vertices ............ 4913
Refine global: run 4
Gitter :: printSize () :
- Elements ............ 32768
- Boundaries .......... 6144
- Faces .............. 101376
- Edges ............... 104544
- Vertices ............ 35937
Refine global: run 5
Gitter :: printSize () :
- Elements ............ 262144
- Boundaries .......... 24576
- Faces .............. 798720
- Edges ............... 811200
- Vertices ............ 274625
Refine global: run 6
Gitter :: printSize () :
- Elements ............ 2097152
- Boundaries .......... 98304
- Faces .............. 6340608
- Edges ............... 6390144
- Vertices ............ 2146689
bool = 1
char = 1
signed char = 1
MyAlloc = 1
Refcount = 1
HedgeRule = 1
Hface3Rule = 1
Hface4Rule = 1
DuneIndexProvider = 8
******** TETRA *************************8
Tetrasize = 104
Hface3_IMPL = 88
Hface3_GEO = 64
Hface3::nb = 24
HEdge1_IMPL = 64
HEdge1_GEO = 40
VertexMacro = 64
VertexGeo = 64
Vertex = 64
Hbnd3_IMPL = 88
******** HEXA *************************8
Hexasize = 120
Hface4_IMPL = 96
Hface4_GEO = 72
Hface4::nb = 24
Hbnd4_IMPL = 88
******** Number of Elements ************************8
Macro elements: size = 0 MB
Macro boundary : size = 0 MB
Macro faces : size = 0 MB
Macro edges : size = 0 MB
Macro vertices : size = 0 MB
Elements : size = 240 MB
Boundaries : size = 8 MB
Faces : size = 580 MB
Edges : size = 390 MB
Vertices : size = 131 MB
Indices : size = 72 MB
All leaf size : 1491849768 MB
bytes per Element: 711
Estimated all size : 1678330989 MB
BuilderIF size = 6 MB
Overall size = 6 MB
-----------------------------------------------
read macro grid from < ../macrogrids/cube.tetra > !
-----------------------------------------------
Grid generated!
Gitter :: printSize () :
- Elements ............ 6
- Boundaries .......... 12
- Faces .............. 18
- Edges ............... 19
- Vertices ............ 8
---------------------------------------------
bool = 1
char = 1
signed char = 1
MyAlloc = 1
Refcount = 1
HedgeRule = 1
Hface3Rule = 1
Hface4Rule = 1
DuneIndexProvider = 8
******** TETRA *************************8
Tetrasize = 104
Hface3_IMPL = 88
Hface3_GEO = 64
Hface3::nb = 24
HEdge1_IMPL = 64
HEdge1_GEO = 40
VertexMacro = 64
VertexGeo = 64
Vertex = 64
Hbnd3_IMPL = 88
******** HEXA *************************8
Hexasize = 120
Hface4_IMPL = 96
Hface4_GEO = 72
Hface4::nb = 24
Hbnd4_IMPL = 88
******** Number of Elements ************************8
Macro elements: size = 0 MB
Macro boundary : size = 0 MB
Macro faces : size = 0 MB
Macro edges : size = 0 MB
Macro vertices : size = 0 MB
Elements : size = 0 MB
Boundaries : size = 0 MB
Faces : size = 0 MB
Edges : size = 0 MB
Vertices : size = 0 MB
Indices : size = 0 MB
All leaf size : 5196 MB
bytes per Element: 866
Estimated all size : 5845 MB
BuilderIF size = 6 MB
Overall size = 6 MB
Refine global: run 0
Gitter :: printSize () :
- Elements ............ 48
- Boundaries .......... 48
- Faces .............. 120
- Edges ............... 98
- Vertices ............ 27
Refine global: run 1
Gitter :: printSize () :
- Elements ............ 384
- Boundaries .......... 192
- Faces .............. 864
- Edges ............... 604
- Vertices ............ 125
Refine global: run 2
Gitter :: printSize () :
- Elements ............ 3072
- Boundaries .......... 768
- Faces .............. 6528
- Edges ............... 4184
- Vertices ............ 729
Refine global: run 3
Gitter :: printSize () :
- Elements ............ 24576
- Boundaries .......... 3072
- Faces .............. 50688
- Edges ............... 31024
- Vertices ............ 4913
Refine global: run 4
Gitter :: printSize () :
- Elements ............ 196608
- Boundaries .......... 12288
- Faces .............. 399360
- Edges ............... 238688
- Vertices ............ 35937
Refine global: run 5
Gitter :: printSize () :
- Elements ............ 1572864
- Boundaries .......... 49152
- Faces .............. 3170304
- Edges ............... 1872064
- Vertices ............ 274625
bool = 1
char = 1
signed char = 1
MyAlloc = 1
Refcount = 1
HedgeRule = 1
Hface3Rule = 1
Hface4Rule = 1
DuneIndexProvider = 8
******** TETRA *************************8
Tetrasize = 104
Hface3_IMPL = 88
Hface3_GEO = 64
Hface3::nb = 24
HEdge1_IMPL = 64
HEdge1_GEO = 40
VertexMacro = 64
VertexGeo = 64
Vertex = 64
Hbnd3_IMPL = 88
******** HEXA *************************8
Hexasize = 120
Hface4_IMPL = 96
Hface4_GEO = 72
Hface4::nb = 24
Hbnd4_IMPL = 88
******** Number of Elements ************************8
Macro elements: size = 0 MB
Macro boundary : size = 0 MB
Macro faces : size = 0 MB
Macro edges : size = 0 MB
Macro vertices : size = 0 MB
Elements : size = 156 MB
Boundaries : size = 4 MB
Faces : size = 266 MB
Edges : size = 114 MB
Vertices : size = 16 MB
Indices : size = 29 MB
All leaf size : 615665064 MB
bytes per Element: 391
Estimated all size : 692623197 MB
BuilderIF size = 6 MB
Overall size = 6 MB
-----------------------------------------------
read macro grid from < ../macrogrids/cube.hexa > !
-----------------------------------------------
Grid generated!
Gitter :: printSize () :
- Elements ............ 1
- Boundaries .......... 6
- Faces .............. 6
- Edges ............... 12
- Vertices ............ 8
---------------------------------------------
Hexa : 168
bool = 1
char = 1
signed char = 1
MyAlloc = 1
Refcount = 4
HedgeRule = 4
Hface3Rule = 4
Hface4Rule = 4
DuneIndexProvider = 8
******** TETRA *************************8
Tetrasize = 144
Hface3_IMPL = 136
Hface3_GEO = 88
Hface3::nb = 32
HEdge1_IMPL = 96
HEdge1_GEO = 48
VertexMacro = 72
VertexGeo = 64
Vertex = 64
Hbnd3_IMPL = 96
******** HEXA *************************8
Hexasize = 168
Hface4_IMPL = 152
Hface4_GEO = 96
Hface4::nb = 32
Hbnd4_IMPL = 96
******** Number of Elements ************************8
Macro elements: size = 0 MB
Macro boundary : size = 0 MB
Macro faces : size = 0 MB
Macro edges : size = 0 MB
Macro vertices : size = 0 MB
Elements : size = 0 MB
Boundaries : size = 0 MB
Faces : size = 0 MB
Edges : size = 0 MB
Vertices : size = 0 MB
Indices : size = 0 MB
All leaf size : 3428 MB
Size per Element: 3428
Estimated all size : 3856 MB
BuilderIF size = 6 MB
Overall size = 6 MB
Refine global: run 0
Gitter :: printSize () :
- Elements ............ 8
- Boundaries .......... 24
- Faces .............. 36
- Edges ............... 54
- Vertices ............ 27
Refine global: run 1
Gitter :: printSize () :
- Elements ............ 64
- Boundaries .......... 96
- Faces .............. 240
- Edges ............... 300
- Vertices ............ 125
Refine global: run 2
Gitter :: printSize () :
- Elements ............ 512
- Boundaries .......... 384
- Faces .............. 1728
- Edges ............... 1944
- Vertices ............ 729
Refine global: run 3
Gitter :: printSize () :
- Elements ............ 4096
- Boundaries .......... 1536
- Faces .............. 13056
- Edges ............... 13872
- Vertices ............ 4913
Refine global: run 4
Gitter :: printSize () :
- Elements ............ 32768
- Boundaries .......... 6144
- Faces .............. 101376
- Edges ............... 104544
- Vertices ............ 35937
Refine global: run 5
Gitter :: printSize () :
- Elements ............ 262144
- Boundaries .......... 24576
- Faces .............. 798720
- Edges ............... 811200
- Vertices ............ 274625
Refine global: run 6
Gitter :: printSize () :
- Elements ............ 2097152
- Boundaries .......... 98304
- Faces .............. 6340608
- Edges ............... 6390144
- Vertices ............ 2146689
bool = 1
char = 1
signed char = 1
MyAlloc = 1
Refcount = 4
HedgeRule = 4
Hface3Rule = 4
Hface4Rule = 4
DuneIndexProvider = 8
******** TETRA *************************8
Tetrasize = 144
Hface3_IMPL = 136
Hface3_GEO = 88
Hface3::nb = 32
HEdge1_IMPL = 96
HEdge1_GEO = 48
VertexMacro = 72
VertexGeo = 64
Vertex = 64
Hbnd3_IMPL = 96
******** HEXA *************************8
Hexasize = 168
Hface4_IMPL = 152
Hface4_GEO = 96
Hface4::nb = 32
Hbnd4_IMPL = 96
******** Number of Elements ************************8
Macro elements: size = 0 MB
Macro boundary : size = 0 MB
Macro faces : size = 0 MB
Macro edges : size = 0 MB
Macro vertices : size = 0 MB
Elements : size = 336 MB
Boundaries : size = 9 MB
Faces : size = 919 MB
Edges : size = 585 MB
Vertices : size = 131 MB
Indices : size = 72 MB
All leaf size : 2152858152 MB
bytes per Element: 1026
Estimated all size : 2421965421 MB
BuilderIF size = 6 MB
Overall size = 6 MB
-----------------------------------------------
read macro grid from < ../macrogrids/cube.tetra > !
-----------------------------------------------
Grid generated!
Gitter :: printSize () :
- Elements ............ 6
- Boundaries .......... 12
- Faces .............. 18
- Edges ............... 19
- Vertices ............ 8
---------------------------------------------
bool = 1
char = 1
signed char = 1
MyAlloc = 1
Refcount = 4
HedgeRule = 4
Hface3Rule = 4
Hface4Rule = 4
DuneIndexProvider = 8
******** TETRA *************************8
Tetrasize = 144
Hface3_IMPL = 136
Hface3_GEO = 88
Hface3::nb = 32
HEdge1_IMPL = 96
HEdge1_GEO = 48
VertexMacro = 72
VertexGeo = 64
Vertex = 64
Hbnd3_IMPL = 96
******** HEXA *************************8
Hexasize = 168
Hface4_IMPL = 152
Hface4_GEO = 96
Hface4::nb = 32
Hbnd4_IMPL = 96
******** Number of Elements ************************8
Macro elements: size = 0 MB
Macro boundary : size = 0 MB
Macro faces : size = 0 MB
Macro edges : size = 0 MB
Macro vertices : size = 0 MB
Elements : size = 0 MB
Boundaries : size = 0 MB
Faces : size = 0 MB
Edges : size = 0 MB
Vertices : size = 0 MB
Indices : size = 0 MB
All leaf size : 7004 MB
bytes per Element: 1167
Estimated all size : 7879 MB
BuilderIF size = 6 MB
Overall size = 6 MB
Refine global: run 0
Gitter :: printSize () :
- Elements ............ 48
- Boundaries .......... 48
- Faces .............. 120
- Edges ............... 98
- Vertices ............ 27
Refine global: run 1
Gitter :: printSize () :
- Elements ............ 384
- Boundaries .......... 192
- Faces .............. 864
- Edges ............... 604
- Vertices ............ 125
Refine global: run 2
Gitter :: printSize () :
- Elements ............ 3072
- Boundaries .......... 768
- Faces .............. 6528
- Edges ............... 4184
- Vertices ............ 729
Refine global: run 3
Gitter :: printSize () :
- Elements ............ 24576
- Boundaries .......... 3072
- Faces .............. 50688
- Edges ............... 31024
- Vertices ............ 4913
Refine global: run 4
Gitter :: printSize () :
- Elements ............ 196608
- Boundaries .......... 12288
- Faces .............. 399360
- Edges ............... 238688
- Vertices ............ 35937
Refine global: run 5
Gitter :: printSize () :
- Elements ............ 1572864
- Boundaries .......... 49152
- Faces .............. 3170304
- Edges ............... 1872064
- Vertices ............ 274625
bool = 1
char = 1
signed char = 1
MyAlloc = 1
Refcount = 4
HedgeRule = 4
Hface3Rule = 4
Hface4Rule = 4
DuneIndexProvider = 8
******** TETRA *************************8
Tetrasize = 144
Hface3_IMPL = 136
Hface3_GEO = 88
Hface3::nb = 32
HEdge1_IMPL = 96
HEdge1_GEO = 48
VertexMacro = 72
VertexGeo = 64
Vertex = 64
Hbnd3_IMPL = 96
******** HEXA *************************8
Hexasize = 168
Hface4_IMPL = 152
Hface4_GEO = 96
Hface4::nb = 32
Hbnd4_IMPL = 96
******** Number of Elements ************************8
Macro elements: size = 0 MB
Macro boundary : size = 0 MB
Macro faces : size = 0 MB
Macro edges : size = 0 MB
Macro vertices : size = 0 MB
Elements : size = 216 MB
Boundaries : size = 4 MB
Faces : size = 411 MB
Edges : size = 171 MB
Vertices : size = 16 MB
Indices : size = 29 MB
All leaf size : 891053480 MB
bytes per Element: 566
Estimated all size : 1002435165 MB
BuilderIF size = 6 MB
Overall size = 6 MB
......@@ -17,11 +17,6 @@ using namespace std;
//#include <alugrid_parallel.h>
using namespace ALUGridSpace;
void printSizes()
{
cout << "Hexa : " << sizeof(GitterDuneImpl :: Objects :: hexa_IMPL) << endl;
}
// refine grid globally, i.e. mark all elements and then call adapt
void globalRefine(GitterBasisImpl* grid, int refcount) {
......@@ -118,7 +113,6 @@ int main (int argc, char ** argv, const char ** envp)
grid.printsize();
cout << "---------------------------------------------\n";
printSizes();
grid.printMemUsage();
globalRefine(&grid, mxl);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment