Ignore:
Timestamp:
03/08/24 17:05:40 (3 months ago)
Author:
jderouillat
Message:

Fix the attached mode for scalar output, and some bugs revealed by the adastra porting in debug mode

File:
1 edited

Legend:

Unmodified
Added
Removed
  • XIOS3/trunk/src/manager/contexts_manager.cpp

    r2580 r2613  
    237237    if (comm!=MPI_COMM_NULL)  
    238238    { 
    239       MPI_Bcast(&ret,1,MPI_INT,0,comm) ; 
     239      int cast_ret = 0; 
     240      if (commRank==0) cast_ret = ret; 
     241      MPI_Bcast(&cast_ret,1,MPI_INT,0,comm) ; 
     242      ret = cast_ret; 
    240243      if (ret) 
    241244      { 
Note: See TracChangeset for help on using the changeset viewer.