Yet Another eXchange Tool  0.9.0
Classes | Functions | Variables
xt_ut_c.c File Reference

implementation of unitrans using yaxt More...

#include <stdio.h>
#include <stdlib.h>
#include <assert.h>
#include "xt/xt_mpi.h"
#include "core/core.h"
#include "core/ppm_xfuncs.h"
#include "xt/xt_idxvec.h"
#include "xt_ut_c.h"
#include "xt/xt_xmap.h"
#include "xt/xt_xmap_all2all.h"
#include "xt/xt_redist_p2p.h"
#include "xt/xt_handles.h"
Include dependency graph for xt_ut_c.c:

Go to the source code of this file.

Classes

struct  xt_ut_init_type
 
struct  xt_ut_deco_type
 
struct  xt_ut_template_type
 
struct  xt_ut_trans_type
 

Functions

void xt_ut_abort (char *msg, char *source, int *line) __attribute__((noreturn))
 
void xt_ut_init (int decomp_size, int comm_tmpl_size, int comm_trans_size, int debug_lvl, int mode, int debug_unit)
 
void xt_ut_finalize (void)
 
static int new_ideco (void)
 
static void delete_ideco (int id)
 
void xt_ut_destroy_decomposition (int id)
 
static int new_itemplate (void)
 
static void delete_itemplate (int id)
 
void xt_ut_destroy_transposition_template (int id)
 
static int new_itrans (void)
 
static void delete_itrans (int id)
 
void xt_ut_destroy_transposition (int id)
 
MPI_Fint xt_ut_init_decomposition_1d (Xt_int *iv, int iv_n)
 
MPI_Fint xt_ut_init_oneway_transposition_template (int id_in, int id_out, int XT_UNUSED(mpi_world), int XT_UNUSED(icheck_unique))
 
MPI_Fint xt_ut_init_transposition_simple (MPI_Fint itemplate, MPI_Fint f_datatype)
 
MPI_Fint xt_ut_init_transposition (MPI_Fint itemplate, MPI_Fint offset_in[], MPI_Fint XT_UNUSED(offset_in_size), MPI_Fint offset_out[], MPI_Fint XT_UNUSED(offset_out_size), MPI_Fint f_datatype)
 
void xt_ut_transpose (const void **pt_in, int itrans, int XT_UNUSED(direction), void **pt_out)
 

Variables

static xt_ut_init_type init_val = {0,0,0,0,0,0}
 
static Xt_handle_set_type deco_set
 
static Xt_handle_set_type template_set
 
static Xt_handle_set_type trans_set
 

Detailed Description

implementation of unitrans using yaxt

Author
Jörg Behrens behre.nosp@m.ns@d.nosp@m.krz.d.nosp@m.e Moritz Hanke hanke.nosp@m.@dkr.nosp@m.z.de Thomas Jahns jahns.nosp@m.@dkr.nosp@m.z.de

Definition in file xt_ut_c.c.

Function Documentation

◆ delete_ideco()

static void delete_ideco ( int  id)
static

Definition at line 142 of file xt_ut_c.c.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ delete_itemplate()

static void delete_itemplate ( int  id)
static

Definition at line 160 of file xt_ut_c.c.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ delete_itrans()

static void delete_itrans ( int  id)
static

Definition at line 178 of file xt_ut_c.c.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ new_ideco()

static int new_ideco ( void  )
static

Definition at line 137 of file xt_ut_c.c.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ new_itemplate()

static int new_itemplate ( void  )
static

Definition at line 155 of file xt_ut_c.c.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ new_itrans()

static int new_itrans ( void  )
static

Definition at line 173 of file xt_ut_c.c.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ xt_ut_abort()

void xt_ut_abort ( char *  msg,
char *  source,
int *  line 
)

Definition at line 111 of file xt_ut_c.c.

Here is the caller graph for this function:

◆ xt_ut_destroy_decomposition()

void xt_ut_destroy_decomposition ( int  id)

Definition at line 148 of file xt_ut_c.c.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ xt_ut_destroy_transposition()

void xt_ut_destroy_transposition ( int  id)

Definition at line 184 of file xt_ut_c.c.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ xt_ut_destroy_transposition_template()

void xt_ut_destroy_transposition_template ( int  id)

destroys transposition template

Parameters
[in]idtransposition handle

Definition at line 166 of file xt_ut_c.c.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ xt_ut_finalize()

void xt_ut_finalize ( void  )

Definition at line 133 of file xt_ut_c.c.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ xt_ut_init()

void xt_ut_init ( int  decomp_size,
int  comm_tmpl_size,
int  comm_size,
int  debug_lvl,
int  mode,
int  debug_unit 
)

Initialization of support data for unitrans (start sizes of allocated data). We use the unitrans names. Unlike unitrans, the allocated data can grow.

Parameters
[in]decomp_sizenumber of decompositions
[in]comm_tmpl_sizenumber of communication templates
[in]comm_sizenumber of transpositions
[in]debug_lvldebug level
[in]modedefault communication mode
[in]debug_unitfortran file unit for debug output (not used)

Definition at line 115 of file xt_ut_c.c.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ xt_ut_init_decomposition_1d()

MPI_Fint xt_ut_init_decomposition_1d ( Xt_int idx_vec,
int  idx_vec_n 
)

creates new decomposition and returns access handle

Parameters
[in]idx_veclocal index vector
[in]idx_vec_nsize of idx_vec
Returns
returns handle

Definition at line 192 of file xt_ut_c.c.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ xt_ut_init_oneway_transposition_template()

MPI_Fint xt_ut_init_oneway_transposition_template ( int  id_in,
int  id_out,
int   XT_UNUSEDmpi_world,
int   XT_UNUSEDicheck_unique 
)

Definition at line 203 of file xt_ut_c.c.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ xt_ut_init_transposition()

MPI_Fint xt_ut_init_transposition ( MPI_Fint  itemplate,
MPI_Fint  offset_in[],
MPI_Fint   XT_UNUSEDoffset_in_size,
MPI_Fint  offset_out[],
MPI_Fint   XT_UNUSEDoffset_out_size,
MPI_Fint  f_datatype 
)

Definition at line 235 of file xt_ut_c.c.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ xt_ut_init_transposition_simple()

MPI_Fint xt_ut_init_transposition_simple ( MPI_Fint  itemplate,
MPI_Fint  f_datatype 
)

Definition at line 221 of file xt_ut_c.c.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ xt_ut_transpose()

void xt_ut_transpose ( const void **  pt_in,
int  itrans,
int   XT_UNUSEDdirection,
void **  pt_out 
)

Definition at line 255 of file xt_ut_c.c.

Here is the call graph for this function:
Here is the caller graph for this function:

Variable Documentation

◆ deco_set

Xt_handle_set_type deco_set
static

Definition at line 83 of file xt_ut_c.c.

◆ init_val

xt_ut_init_type init_val = {0,0,0,0,0,0}
static

Definition at line 75 of file xt_ut_c.c.

◆ template_set

Xt_handle_set_type template_set
static

Definition at line 89 of file xt_ut_c.c.

◆ trans_set

Xt_handle_set_type trans_set
static

Definition at line 97 of file xt_ut_c.c.