Commit 11157150 authored by Thomas Witkowski's avatar Thomas Witkowski
Browse files

nothing really important.

parent e41a4ba0
...@@ -961,9 +961,8 @@ namespace AMDiS { ...@@ -961,9 +961,8 @@ namespace AMDiS {
const DOFAdmin *admin, const DOFAdmin *admin,
Vector<DegreeOfFreedom> *indices) const Vector<DegreeOfFreedom> *indices) const
{ {
if (indices->getSize() < nBasFcts) { if (indices->getSize() < nBasFcts)
indices->resize(nBasFcts); indices->resize(nBasFcts);
}
getLocalIndices(el, admin, &((*indices)[0])); getLocalIndices(el, admin, &((*indices)[0]));
} }
......
...@@ -56,9 +56,8 @@ namespace AMDiS { ...@@ -56,9 +56,8 @@ namespace AMDiS {
// write coords // write coords
int size = coord.getSize(); int size = coord.getSize();
out.write(reinterpret_cast<const char*>(&size), sizeof(int)); out.write(reinterpret_cast<const char*>(&size), sizeof(int));
for (int i = 0; i < size; i++) { for (int i = 0; i < size; i++)
coord[i].serialize(out); coord[i].serialize(out);
}
// write boundary // write boundary
boundary.serialize(out); boundary.serialize(out);
......
...@@ -374,16 +374,16 @@ namespace AMDiS { ...@@ -374,16 +374,16 @@ namespace AMDiS {
for (int i = 0; i < ne; i++) { for (int i = 0; i < ne; i++) {
mel[i]->element = mesh->createNewElement(); mel[i]->element = mesh->createNewElement();
(mel)[i]->index = i; mel[i]->index = i;
if (dim == 3) if (dim == 3)
(mel)[i]->elType = 0; mel[i]->elType = 0;
} }
neigh_set = false; neigh_set = false;
bound_set = false; bound_set = false;
} }
void MacroInfo::clear(int ne, int nv) void MacroInfo::clear()
{ {
for (int i = 0; i < mesh->getNumberOfMacros(); i++) for (int i = 0; i < mesh->getNumberOfMacros(); i++)
delete [] mel_vertex[i]; delete [] mel_vertex[i];
......
...@@ -133,7 +133,7 @@ namespace AMDiS { ...@@ -133,7 +133,7 @@ namespace AMDiS {
void readAMDiSMacro(const char *filename, Mesh* mesh); void readAMDiSMacro(const char *filename, Mesh* mesh);
/// Frees memory of MacroInfo /// Frees memory of MacroInfo
void clear(int ne, int nv); void clear();
/** \brief /** \brief
* Sets the boundary of all edges/faces with no neigbour to a straight * Sets the boundary of all edges/faces with no neigbour to a straight
......
...@@ -1130,7 +1130,7 @@ namespace AMDiS { ...@@ -1130,7 +1130,7 @@ namespace AMDiS {
void Mesh::clearMacroFileInfo() void Mesh::clearMacroFileInfo()
{ {
macroFileInfo->clear(nEdges, nVertices); macroFileInfo->clear();
delete macroFileInfo; delete macroFileInfo;
macroFileInfo = NULL; macroFileInfo = NULL;
} }
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment