• Main Page
  • Related Pages
  • Namespaces
  • Classes
  • Files
  • File List
  • File Members

MLAPI_Workspace.h

Go to the documentation of this file.
00001 #ifndef MLAPI_WORKSPACE_H
00002 #define MLAPI_WORKSPACE_H
00003 
00013 /* ******************************************************************** */
00014 /* See the file COPYRIGHT for a complete copyright notice, contact      */
00015 /* person and disclaimer.                                               */        
00016 /* ******************************************************************** */
00017 
00018 #include "ml_include.h"
00019 #include "Epetra_Comm.h"
00020 #ifdef HAVE_MPI
00021 #include "mpi.h"
00022 #include "Epetra_MpiComm.h"
00023 #else
00024 #include "Epetra_SerialComm.h"
00025 #endif
00026 #include "MLAPI_Error.h"
00027 
00029 namespace MLAPI {
00030 
00041 
00042 ML_Comm* GetML_Comm();
00043 
00045 Epetra_Comm& GetEpetra_Comm();
00046 
00048 void Barrier();
00049 
00051 int GetMyPID();
00052 
00054 int GetNumProcs();
00055 
00057 int GetPrintLevel();
00058   
00060 void SetPrintLevel(int Level);
00061 
00063 void Init();
00064 
00066 void Finalize();
00067 
00068 string GetString(const int& x);
00069 
00070 string GetString(const double& x);
00071 
00072 int GetMatrixType();
00073 
00074 } // namespace MLAPI
00075 
00076 #endif