From ca8cea495de8f8dc82fd6d53d1a44a4489ecf576 Mon Sep 17 00:00:00 2001 From: wolf Date: Mon, 29 Nov 1999 17:43:06 +0000 Subject: [PATCH] Fix one more thing. cells may be inactive. git-svn-id: https://svn.dealii.org/trunk@1957 0785d39b-7218-0410-832d-ea1e28bc413d --- deal.II/deal.II/source/numerics/data_out.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/deal.II/deal.II/source/numerics/data_out.cc b/deal.II/deal.II/source/numerics/data_out.cc index 781dc2323e..d33d5f2ccb 100644 --- a/deal.II/deal.II/source/numerics/data_out.cc +++ b/deal.II/deal.II/source/numerics/data_out.cc @@ -169,7 +169,7 @@ void DataOut::build_patches (const unsigned int n_subdivisions) // create patches of and make sure // there is enough memory for that unsigned int n_patches = 0; - for (DoFHandler::active_cell_iterator cell=first_cell(); + for (DoFHandler::cell_iterator cell=first_cell(); cell != dofs->end(); cell = next_cell(cell)) ++n_patches; @@ -200,7 +200,7 @@ void DataOut::build_patches (const unsigned int n_subdivisions) // actually create the patches vector >::iterator patch = patches.begin(); unsigned int cell_number = 0; - for (DoFHandler::active_cell_iterator cell=first_cell(); + for (DoFHandler::cell_iterator cell=first_cell(); cell != dofs->end(); cell=next_cell(cell), ++patch, ++cell_number) { Assert (patch != patches.end(), ExcInternalError()); -- 2.39.5