Skip to content

Commit

Permalink
does not write connectivity file anymore when forced connectivity is …
Browse files Browse the repository at this point in the history
…active
  • Loading branch information
ScSteffen committed Jun 23, 2024
1 parent 64552d5 commit 93c8b80
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/common/mesh.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,10 @@ Mesh::Mesh( const Config* settings,
if( !std::filesystem::exists( connectivityFile ) || _settings->GetForcedConnectivity() ) {
log->info( "| Compute mesh connectivity..." );
ComputeConnectivity(); // Computes _cellNeighbors, _cellInterfaceMidPoints, _cellNormals, _cellBoundaryTypes
log->info( "| Save mesh connectivity to file " + connectivityFile );
WriteConnecitivityToFile( connectivityFile, _cellNeighbors, _cellInterfaceMidPoints, _cellNormals, _cellBoundaryTypes, _numCells, _dim );
if( !_settings->GetForcedConnectivity() ) {
log->info( "| Save mesh connectivity to file " + connectivityFile );
WriteConnecitivityToFile( connectivityFile, _cellNeighbors, _cellInterfaceMidPoints, _cellNormals, _cellBoundaryTypes, _numCells, _dim );
}
}
else {
// Resize the outer vector to have nCells elements
Expand Down

0 comments on commit 93c8b80

Please sign in to comment.