diff --git a/src/mesh.h b/src/mesh.h --- a/src/mesh.h +++ b/src/mesh.h @@ -242,7 +242,13 @@ public: // Call functions of Cell that cannot be called from CellBase, including Division if ((*i)->flag_for_divide) { - (*i)->Divide(); + if ((*i)->division_axis) { + (*i)->DivideOverAxis(*(*i)->division_axis); + delete (*i)->division_axis; + (*i)->division_axis = 0; + } else { + (*i)->Divide(); + } (*i)->flag_for_divide=false; } }