Utilities

Located in file: MEL.hpp

bool MEL::IsInitialized()

Setup and teardown.

Tests if MPI_Init has been successfully called

See
MPI_Initialized
Return
Returns whether MPI is initialized as a bool

bool MEL::IsFinalized()

Tests if MPI_Finalize has been successfully called.

See
MPI_Finalized
Return
Returns whether MPI is finalized as a bool

void MEL::Init(int &argc, char **&argv)

Call MPI_Init and setup default error handling.

See
MPI_Init, MPI_Comm_set_errhandler
Parameters
  • argc -

    Forwarded from program main

  • argv -

    Forwarded from program main

void MEL::Finalize()

Call MPI_Finalize.

See
MPI_Finalize

double MEL::Wtime()

Gets the current wall time since epoch in seconds.

See
MPI_Wtime
Return
Returns the current wall time as a double

double MEL::Wtick()

Gets the current system tick.

See
MPI_Wtick
Return
Returns the current system tick as a double