LCOV - code coverage report
Current view: top level - home/fuchsto/workspaces/dash-development/dart-impl/mpi/src - dart_locality_priv.c (source / functions) Hit Total Coverage
Test: coverage.info.cleaned Lines: 9 13 69.2 %
Date: 2016-06-29 12:30:40 Functions: 2 2 100.0 %

          Line data    Source code
       1             : /**
       2             :  * \file dash/dart/mpi/dart_locality_priv.c
       3             :  *
       4             :  */
       5             : 
       6             : #include <dash/dart/mpi/dart_locality_priv.h>
       7             : 
       8             : #include <dash/dart/if/dart_types.h>
       9             : #include <dash/dart/if/dart_communication.h>
      10             : #include <dash/dart/if/dart_locality.h>
      11             : 
      12             : #include <dash/dart/base/logging.h>
      13             : #include <dash/dart/base/locality.h>
      14             : 
      15             : 
      16           4 : dart_ret_t dart__mpi__locality_init()
      17             : {
      18             :   DART_LOG_DEBUG("dart__mpi__locality_init()");
      19             :   dart_ret_t ret;
      20             : 
      21           4 :   ret = dart__base__locality__init();
      22           4 :   if (ret != DART_OK) {
      23           0 :     DART_LOG_ERROR("dart__mpi__locality_init ! "
      24             :                    "dart__base__locality__init failed: %d", ret);
      25           0 :     return ret;
      26             :   }
      27             :   DART_LOG_DEBUG("dart__mpi__locality_init >");
      28           4 :   return DART_OK;
      29             : }
      30             : 
      31           4 : dart_ret_t dart__mpi__locality_finalize()
      32             : {
      33             :   DART_LOG_DEBUG("dart__mpi__locality_finalize()");
      34             :   dart_ret_t ret;
      35             : 
      36           4 :   ret = dart__base__locality__finalize();
      37             : 
      38           4 :   dart_barrier(DART_TEAM_ALL);
      39             : 
      40           4 :   if (ret != DART_OK) {
      41           0 :     DART_LOG_ERROR("dart__mpi__locality_finalize ! "
      42             :                    "dart__base__locality__finalize failed: %d", ret);
      43           0 :     return ret;
      44             :   }
      45             :   DART_LOG_DEBUG("dart__mpi__locality_finalize >");
      46           4 :   return DART_OK;
      47             : }
      48             : 

Generated by: LCOV version 1.12