Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Fix for --disable-amr.

We need the my_next_elem counter to get incrimented always, even when AMR is disabled.
  • Loading branch information...
commit 700f26fb4be8e9298a1b86774ef852a874dc0a53 1 parent bec6e6d
@benkirk benkirk authored
Showing with 2 additions and 2 deletions.
  1. +2 −2 src/mesh/xdr_io.C
View
4 src/mesh/xdr_io.C
@@ -403,12 +403,12 @@ void XdrIO::write_serialized_connectivity (Xdr &io, const dof_id_type libmesh_db
// First write the level-0 elements directly.
it = mesh.local_level_elements_begin(0);
end = mesh.local_level_elements_end(0);
- for (; it != end; ++it)
+ for (; it != end; ++it, ++my_next_elem)
{
pack_element (xfer_conn, *it);
#ifdef LIBMESH_ENABLE_AMR
parent_id_map[(*it)->id()] = std::make_pair(this->processor_id(),
- my_next_elem++);
+ my_next_elem);
#endif
}
xfer_conn.push_back(my_next_elem); // toss in the number of elements transferred.
Please sign in to comment.
Something went wrong with that request. Please try again.