|
YAC 3.21.0
Yet Another Coupler
|
#include <stdlib.h>#include <stdio.h>#include <string.h>#include <stdarg.h>#include "yac.h"#include "yac_utils.h"#include "perf_toy_common.h"
Go to the source code of this file.
Data Structures | |
| struct | timer_data |
Functions | |
| void * | start_timer (MPI_Comm comm, char const *fmt,...) |
| Starts a timer and returns a pointer to the timer data. | |
| void | stop_timer (void *timer_) |
| Stops the timer and prints the timing results. | |
| void | init_grid (int comp_id, char const *grid_name, char const *grid_filename, int *cell_point_id, int *corner_point_id) |
| Initializes grid data and registers it with YAC. | |
| void init_grid | ( | int | comp_id, |
| char const * | grid_name, | ||
| char const * | grid_filename, | ||
| int * | cell_point_id, | ||
| int * | corner_point_id ) |
Initializes grid data and registers it with YAC.
| [in] | comp_id | The component ID. |
| [in] | grid_name | The name of the grid. |
| [in] | grid_filename | The filename of the grid. |
| [out] | cell_point_id | Pointer to the cell center point ID. |
| [out] | corner_point_id | Pointer to the corner point ID. |
Definition at line 80 of file perf_toy_common.c.


| void * start_timer | ( | MPI_Comm | comm, |
| char const * | fmt, | ||
| ... ) |
Starts a timer and returns a pointer to the timer data.
| [in] | comm | The MPI communicator. |
| [in] | fmt | The format string for the timer label. |
| [in] | ... | Additional arguments for the format string. |
Definition at line 20 of file perf_toy_common.c.

| void stop_timer | ( | void * | timer | ) |
Stops the timer and prints the timing results.
| [in] | timer | A pointer to the timer data. |
Definition at line 44 of file perf_toy_common.c.
