DataOutFilter::DataOutFilter()
: flags(false, true)
, node_dim(numbers::invalid_unsigned_int)
- , num_cells(numbers::invalid_unsigned_int)
+ , num_cells(0)
{}
DataOutFilter::DataOutFilter(const DataOutBase::DataOutFilterFlags &flags)
: flags(flags)
, node_dim(numbers::invalid_unsigned_int)
- , num_cells(numbers::invalid_unsigned_int)
+ , num_cells(0)
{}
std::uint64_t local_node_cell_count[2], global_node_cell_count[2];
local_node_cell_count[0] = data_filter.n_nodes();
- // n_cells returns an invalid unsigned int if the object is empty:
- local_node_cell_count[1] =
- (data_filter.n_nodes() > 0) ? data_filter.n_cells() : 0;
+ local_node_cell_count[1] = data_filter.n_cells();
const int myrank = Utilities::MPI::this_mpi_process(comm);
// And compute the global total
-DEAL:0::n_cells on my rank: 4294967295
+DEAL:0::n_cells on my rank: 0
<?xml version="1.0" ?>
<!DOCTYPE Xdmf SYSTEM "Xdmf.dtd" []>
<Xdmf Version="2.0">
</Xdmf>
DEAL:0::ok
-DEAL:0::n_cells on my rank: 4294967295
+DEAL:0::n_cells on my rank: 0
<?xml version="1.0" ?>
<!DOCTYPE Xdmf SYSTEM "Xdmf.dtd" []>
<Xdmf Version="2.0">
DEAL:0::ok
-DEAL:1::n_cells on my rank: 4294967295
+DEAL:1::n_cells on my rank: 0
DEAL:1::n_cells on my rank: 8
DEAL:2::n_cells on my rank: 4
-DEAL:2::n_cells on my rank: 4294967295
+DEAL:2::n_cells on my rank: 0