Skip to content

Commit 1208925

Browse files
committed
PABLO: always update the connectivity before writing the tree to file
1 parent 28ba94f commit 1208925

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

src/PABLO/ParaTree.cpp

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -5843,10 +5843,10 @@ namespace bitpit {
58435843
void
58445844
ParaTree::write(const std::string &filename) {
58455845

5846-
if (m_octree.m_connectivity.size() == 0) {
5847-
m_octree.computeConnectivity();
5848-
}
5846+
// Update connectivity
5847+
m_octree.updateConnectivity();
58495848

5849+
// Write output file
58505850
stringstream name;
58515851
name << "s" << std::setfill('0') << std::setw(4) << m_nproc << "-p" << std::setfill('0') << std::setw(4) << m_rank << "-" << filename << ".vtu";
58525852

@@ -5998,10 +5998,10 @@ namespace bitpit {
59985998
void
59995999
ParaTree::writeTest(const std::string &filename, vector<double> data) {
60006000

6001-
if (m_octree.m_connectivity.size() == 0) {
6002-
m_octree.computeConnectivity();
6003-
}
6001+
// Update connectivity
6002+
m_octree.updateConnectivity();
60046003

6004+
// Write output file
60056005
stringstream name;
60066006
name << "s" << std::setfill('0') << std::setw(4) << m_nproc << "-p" << std::setfill('0') << std::setw(4) << m_rank << "-" << filename << ".vtu";
60076007

0 commit comments

Comments
 (0)