Smith  0.1
Smith is an implicit thermal structural mechanics simulation code.
application_manager.hpp
1 // Copyright (c) Lawrence Livermore National Security, LLC and
2 // other Smith Project Developers. See the top-level LICENSE file for
3 // details.
4 //
5 // SPDX-License-Identifier: (BSD-3-Clause)
6 
7 #pragma once
8 
9 #include <string>
10 #include <utility>
11 #include <iostream>
12 
13 #include "mpi.h"
14 
15 namespace smith {
16 
22  public:
31  ApplicationManager(int argc, char* argv[], MPI_Comm comm = MPI_COMM_WORLD, bool doesPrintRunInfo = true);
32 
37 
38  ApplicationManager(ApplicationManager const&) = delete;
39  ApplicationManager& operator=(ApplicationManager const&) = delete;
40 
41  private:
42  MPI_Comm comm_;
43 };
44 
45 } // namespace smith
RAII Application Manager class. Initializes MPI and other important libraries as well as automaticall...
~ApplicationManager()
Calls smith::finalizer.
ApplicationManager(int argc, char *argv[], MPI_Comm comm=MPI_COMM_WORLD, bool doesPrintRunInfo=true)
Initialize MPI, signal handling, logging, profiling, hypre, sundials, petsc, and slepc.
Accelerator functionality.
Definition: smith.cpp:36