www.mooseframework.org
Backup.C
Go to the documentation of this file.
1 /****************************************************************/
2 /* DO NOT MODIFY THIS HEADER */
3 /* MOOSE - Multiphysics Object Oriented Simulation Environment */
4 /* */
5 /* (c) 2010 Battelle Energy Alliance, LLC */
6 /* ALL RIGHTS RESERVED */
7 /* */
8 /* Prepared by Battelle Energy Alliance, LLC */
9 /* Under Contract No. DE-AC07-05ID14517 */
10 /* With the U. S. Department of Energy */
11 /* */
12 /* See COPYRIGHT for full restrictions */
13 /****************************************************************/
14 
15 // MOOSE includes
16 #include "Backup.h"
17 #include "RestartableData.h"
18 
19 #include "libmesh/parallel.h"
20 
21 // Backup Definitions
23 {
24  unsigned int n_threads = libMesh::n_threads();
25 
26  _restartable_data.resize(n_threads);
27 
28  for (unsigned int i = 0; i < n_threads; ++i)
29  _restartable_data[i] = new std::stringstream;
30 }
31 
33 {
34  unsigned int n_threads = libMesh::n_threads();
35 
36  for (unsigned int i = 0; i < n_threads; ++i)
37  delete _restartable_data[i];
38 }
~Backup()
Definition: Backup.C:32
Backup()
Definition: Backup.C:22
std::vector< std::stringstream * > _restartable_data
Definition: Backup.h:34