v0.14.0
Public Member Functions | Private Attributes | List of all members
MoFEM::LogManager::InternalData::SynchronizedStreamBuf Struct Reference
Inheritance diagram for MoFEM::LogManager::InternalData::SynchronizedStreamBuf:
[legend]
Collaboration diagram for MoFEM::LogManager::InternalData::SynchronizedStreamBuf:
[legend]

Public Member Functions

 SynchronizedStreamBuf (MPI_Comm comm)
 
virtual int sync ()
 

Private Attributes

MPI_Comm cOmm
 

Detailed Description

Definition at line 63 of file LogManager.cpp.

Constructor & Destructor Documentation

◆ SynchronizedStreamBuf()

MoFEM::LogManager::InternalData::SynchronizedStreamBuf::SynchronizedStreamBuf ( MPI_Comm  comm)
inline

Definition at line 64 of file LogManager.cpp.

64 : cOmm(comm) {}

Member Function Documentation

◆ sync()

virtual int MoFEM::LogManager::InternalData::SynchronizedStreamBuf::sync ( )
inlinevirtual

Definition at line 65 of file LogManager.cpp.

65  {
66  if (!this->str().empty()) {
67  PetscSynchronizedFPrintf(cOmm, LogManager::dummy_mofem_fd, "%s",
68  this->str().c_str());
69  this->str("");
70  }
71  return 0;
72  }

Member Data Documentation

◆ cOmm

MPI_Comm MoFEM::LogManager::InternalData::SynchronizedStreamBuf::cOmm
private

Definition at line 75 of file LogManager.cpp.


The documentation for this struct was generated from the following file:
MoFEM::LogManager::dummy_mofem_fd
static FILE * dummy_mofem_fd
Dummy file pointer (DO NOT USE)
Definition: LogManager.hpp:191
MoFEM::LogManager::InternalData::SynchronizedStreamBuf::cOmm
MPI_Comm cOmm
Definition: LogManager.cpp:75