Skip to content

Commit

Permalink
Fix a bug.
Browse files Browse the repository at this point in the history
  • Loading branch information
l-korous committed May 24, 2015
1 parent 212e78c commit 8585c02
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions hermes2d/src/discrete_problem/dg/discrete_problem_dg_assembler.cpp
Expand Up @@ -336,23 +336,23 @@ namespace Hermes

current_mat->add(ext_asmlist_v->cnt, ext_asmlist_u->cnt, this->local_stiffness_matrix, ext_asmlist_v->dof, ext_asmlist_u->dof, H2D_MAX_LOCAL_BASIS_SIZE * 2);
}
}

for (int i = 0; i < this->spaces_size; i++)
{
for (int func_i = 0; func_i < ext_asmlist[i]->cnt; func_i++)
for (int i = 0; i < this->spaces_size; i++)
{
if (ext_asmlist[i]->dof[func_i] < 0)
continue;
delete testFunctions[i][func_i];
for (int func_i = 0; func_i < ext_asmlist[i]->cnt; func_i++)
{
if (ext_asmlist[i]->dof[func_i] < 0)
continue;
delete testFunctions[i][func_i];
}
delete ext_asmlist[i];
free_with_check(testFunctions[i]);
}
delete ext_asmlist[i];
free_with_check(testFunctions[i]);
}

free_with_check(testFunctions);
free_with_check(ext_asmlist);

if (current_rhs && DG_vector_forms_present)
{
for (unsigned int ww = 0; ww < wf->vfDG.size(); ww++)
Expand Down

0 comments on commit 8585c02

Please sign in to comment.