v0.15.0
Loading...
Searching...
No Matches
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, FILE *fd)
 
virtual int sync ()
 

Private Attributes

MPI_Comm cOmm
 
FILE * fD
 

Detailed Description

Definition at line 60 of file LogManager.cpp.

Constructor & Destructor Documentation

◆ SynchronizedStreamBuf()

MoFEM::LogManager::InternalData::SynchronizedStreamBuf::SynchronizedStreamBuf ( MPI_Comm comm,
FILE * fd )
inline

Member Function Documentation

◆ sync()

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

Definition at line 62 of file LogManager.cpp.

62 {
63 if (!this->str().empty()) {
64 PetscSynchronizedFPrintf(cOmm, fD, "%s", this->str().c_str());
65 this->str("");
66 }
67 return 0;
68 }

Member Data Documentation

◆ cOmm

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

Definition at line 71 of file LogManager.cpp.

◆ fD

FILE* MoFEM::LogManager::InternalData::SynchronizedStreamBuf::fD
private

Definition at line 72 of file LogManager.cpp.


The documentation for this struct was generated from the following file: