Commit a9897bbf by Thomas Witkowski

### * And now, real code to write pngs!

parent c8ee0e76
 ... @@ -362,9 +362,7 @@ namespace AMDiS { ... @@ -362,9 +362,7 @@ namespace AMDiS { virtual void coarseRestr(DOFVector >*, RCNeighbourList*, int) virtual void coarseRestr(DOFVector >*, RCNeighbourList*, int) {} {} /** \brief /// Returns local dof indices of the element for the given fe space. * Returns local dof indices of the element for the given fe space. */ virtual const DegreeOfFreedom *getLocalIndices(const Element*, virtual const DegreeOfFreedom *getLocalIndices(const Element*, const DOFAdmin*, const DOFAdmin*, DegreeOfFreedom*) const DegreeOfFreedom*) const ... @@ -372,9 +370,7 @@ namespace AMDiS { ... @@ -372,9 +370,7 @@ namespace AMDiS { return NULL; return NULL; } } /** \brief /// Returns local dof indices of the element for the given fe space. * Returns local dof indices of the element for the given fe space. */ virtual void getLocalIndicesVec(const Element*, virtual void getLocalIndicesVec(const Element*, const DOFAdmin*, const DOFAdmin*, Vector*) const Vector*) const ... ...
 #include "DOFMatrix.h" #include #include #include #include #include "DOFMatrix.h" #include "QPsiPhi.h" #include "QPsiPhi.h" #include "BasisFunction.h" #include "BasisFunction.h" #include "Boundary.h" #include "Boundary.h" ... @@ -754,7 +755,8 @@ namespace AMDiS { ... @@ -754,7 +755,8 @@ namespace AMDiS { void DOFMatrix::createPictureFile(const char* filename, int dim) void DOFMatrix::createPictureFile(const char* filename, int dim) { { png_structp png_ptr = png_create_write_struct(PNG_LIBPNG_VER_STRING, NULL, NULL, NULL); png_structp png_ptr = png_create_write_struct(PNG_LIBPNG_VER_STRING, NULL, NULL, NULL); if (!png_ptr) if (!png_ptr) return; return; ... @@ -763,9 +765,8 @@ namespace AMDiS { ... @@ -763,9 +765,8 @@ namespace AMDiS { for (int i = 0; i < dim; i++) { for (int i = 0; i < dim; i++) { rowPointers[i] = (png_byte*)png_malloc(png_ptr, dim); rowPointers[i] = (png_byte*)png_malloc(png_ptr, dim); for (int j = 0; j < dim; j++) { for (int j = 0; j < dim; j++) rowPointers[i][j] = 255; rowPointers[i][j] = 255; } } } double scalFactor = static_cast(dim) / static_cast(matrix.size()); double scalFactor = static_cast(dim) / static_cast(matrix.size()); ... ...