Commit 11157150 authored by Thomas Witkowski's avatar Thomas Witkowski

nothing really important.

parent e41a4ba0
......@@ -961,9 +961,8 @@ namespace AMDiS {
const DOFAdmin *admin,
Vector<DegreeOfFreedom> *indices) const
{
if (indices->getSize() < nBasFcts) {
if (indices->getSize() < nBasFcts)
indices->resize(nBasFcts);
}
getLocalIndices(el, admin, &((*indices)[0]));
}
......
......@@ -56,9 +56,8 @@ namespace AMDiS {
// write coords
int size = coord.getSize();
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);
}
// write boundary
boundary.serialize(out);
......
......@@ -374,16 +374,16 @@ namespace AMDiS {
for (int i = 0; i < ne; i++) {
mel[i]->element = mesh->createNewElement();
(mel)[i]->index = i;
mel[i]->index = i;
if (dim == 3)
(mel)[i]->elType = 0;
mel[i]->elType = 0;
}
neigh_set = false;
bound_set = false;
}
void MacroInfo::clear(int ne, int nv)
void MacroInfo::clear()
{
for (int i = 0; i < mesh->getNumberOfMacros(); i++)
delete [] mel_vertex[i];
......
......@@ -133,7 +133,7 @@ namespace AMDiS {
void readAMDiSMacro(const char *filename, Mesh* mesh);
/// Frees memory of MacroInfo
void clear(int ne, int nv);
void clear();
/** \brief
* Sets the boundary of all edges/faces with no neigbour to a straight
......
......@@ -1130,7 +1130,7 @@ namespace AMDiS {
void Mesh::clearMacroFileInfo()
{
macroFileInfo->clear(nEdges, nVertices);
macroFileInfo->clear();
delete macroFileInfo;
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