/usr/include/trilinos/MLAPI_Workspace.h is in libtrilinos-ml-dev 12.10.1-3.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 | #ifndef MLAPI_WORKSPACE_H
#define MLAPI_WORKSPACE_H
/*!
\file MLAPI_Workspace.h
\brief Collection of utilities for workspace.
\author Marzio Sala, D-INFK/ETHZ.
\date Last updated on Mar-06.
*/
/* ******************************************************************** */
/* See the file COPYRIGHT for a complete copyright notice, contact */
/* person and disclaimer. */
/* ******************************************************************** */
#include "ml_include.h"
#include "Epetra_Comm.h"
#ifdef HAVE_MPI
#include "mpi.h"
#include "Epetra_MpiComm.h"
#else
#include "Epetra_SerialComm.h"
#endif
#include "MLAPI_Error.h"
//! MLAPI: Default namespace for all MLAPI objects and functions.
namespace MLAPI {
/*!
\file MLAPI_Workspace
\brief Basic functions to initialize, use and finalize the MLAPI workspace.
\author Marzio Sala, SNL 9214.
\date Last updated on Feb-05.
*/
//! Returns a pointer to the ML_Comm object defined on MPI_COMM_WORLD.
ML_Comm* GetML_Comm();
//! Returns a reference to the Epetra_Comm object defined on MPI_COMM_WORLD.
Epetra_Comm& GetEpetra_Comm();
//! Calls Mpi_Barrier() if MPI is enabled.
void Barrier();
//! Returns the ID of the calling process.
int GetMyPID();
//! Returns the total number of processes in the computation.
int GetNumProcs();
//! Retutns the level of output (always 0 if MyPID() != 0).
int GetPrintLevel();
//! Sets the level of output (from 0 to 10, 0 being verbose).
void SetPrintLevel(int Level);
//! Initialize the MLAPI workspace.
void Init();
//! Destroys the MLAPI workspace.
void Finalize();
std::string GetString(const int& x);
std::string GetString(const double& x);
int GetMatrixType();
} // namespace MLAPI
#endif
|