https://mooseframework.inl.gov
src
utils
SerializerGuard.C
Go to the documentation of this file.
1
//* This file is part of the MOOSE framework
2
//* https://mooseframework.inl.gov
3
//*
4
//* All rights reserved, see COPYRIGHT for full restrictions
5
//* https://github.com/idaholab/moose/blob/master/COPYRIGHT
6
//*
7
//* Licensed under LGPL 2.1, please see LICENSE for details
8
//* https://www.gnu.org/licenses/lgpl-2.1.html
9
10
#include "
SerializerGuard.h
"
11
12
#include "
MooseUtils.h
"
13
14
#include "libmesh/parallel.h"
15
16
SerializerGuard::SerializerGuard
(
const
libMesh::Parallel::Communicator
& comm,
bool
warn)
17
: _comm(comm), _warn(warn)
18
{
19
MooseUtils::serialBegin
(
_comm
,
_warn
);
20
}
21
22
SerializerGuard::~SerializerGuard
() {
MooseUtils::serialEnd
(
_comm
,
_warn
); }
libMesh::Parallel::Communicator
MooseUtils::serialEnd
void serialEnd(const libMesh::Parallel::Communicator &comm, bool warn=true)
Closes a section of code that is executed in serial rank by rank, and that was opened with a call to ...
Definition:
MooseUtils.C:367
SerializerGuard::_warn
bool _warn
Definition:
SerializerGuard.h:32
SerializerGuard::SerializerGuard
SerializerGuard(const libMesh::Parallel::Communicator &comm, bool warn=true)
Definition:
SerializerGuard.C:16
MooseUtils::serialBegin
void serialBegin(const libMesh::Parallel::Communicator &comm, bool warn=true)
This function marks the begin of a section of code that is executed in serial rank by rank...
Definition:
MooseUtils.C:353
MooseUtils.h
SerializerGuard::_comm
const libMesh::Parallel::Communicator & _comm
Definition:
SerializerGuard.h:31
SerializerGuard.h
SerializerGuard::~SerializerGuard
~SerializerGuard()
Definition:
SerializerGuard.C:22
Generated on Fri Jul 18 2025 11:41:35 for https://mooseframework.inl.gov by
1.8.14