Ignore:
Timestamp:
09/13/23 12:28:29 (10 months ago)
Author:
jderouillat
Message:

Clean memory leaks

File:
1 edited

Legend:

Unmodified
Added
Removed
  • XIOS3/trunk/src/event_scheduler.cpp

    r2522 r2564  
    33#include "mpi.hpp" 
    44#include "tracer.hpp" 
     5#include "cxios.hpp" 
    56 
    67namespace xios 
     
    2728  { 
    2829    MPI_Comm_dup(comm, &communicator_) ; 
     30    CXios::getMpiGarbageCollector().registerCommunicator(communicator_) ; 
    2931    MPI_Comm_size(communicator_,&mpiSize_) ; 
    3032    MPI_Comm_rank(communicator_,&mpiRank_); 
     
    100102    else color=0 ; 
    101103    MPI_Comm_split(communicator_, color, mpiRank_, &newComm) ; 
     104    CXios::getMpiGarbageCollector().registerCommunicator(newComm) ; 
    102105 
    103106    parent = make_shared<CEventScheduler>(newComm , schedulerLevel_) ; 
Note: See TracChangeset for help on using the changeset viewer.