Skip to content

Commit

Permalink
Fixing parallelization of loading of global attachments in special
Browse files Browse the repository at this point in the history
cases.
  • Loading branch information
LogashenkoDL committed Oct 5, 2023
1 parent 911ad5e commit 303a7cd
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions ugbase/lib_grid/global_attachments.h
Original file line number Diff line number Diff line change
Expand Up @@ -129,6 +129,8 @@ class GlobalAttachments {
#ifdef UG_PARALLEL
static void SynchronizeDeclaredGlobalAttachments(Grid& grid, int procId)
{
if (procId < 0) return; // this is not a parallel run

//declare global attachments on all processors
pcl::ProcessCommunicator procComm;
std::vector<std::string> possible_attachment_names = GlobalAttachments::declared_attachment_names();
Expand Down

0 comments on commit 303a7cd

Please sign in to comment.