programmer's documentation
Functions | Variables
cs_paramedmem_coupling.cxx File Reference
#include "cs_defs.h"
#include <stdarg.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <assert.h>
#include <math.h>
#include <mpi.h>
#include <MEDCoupling_version.h>
#include <MEDCouplingUMesh.hxx>
#include <MEDCouplingField.hxx>
#include <MEDCouplingFieldDouble.hxx>
#include <ParaFIELD.hxx>
#include <ParaMESH.hxx>
#include <InterpKernelDEC.hxx>
#include "bft_error.h"
#include "bft_mem.h"
#include "bft_printf.h"
#include "cs_mesh.h"
#include "cs_mesh_connect.h"
#include "cs_parall.h"
#include "cs_prototypes.h"
#include "cs_selector.h"
#include "cs_timer.h"
#include "fvm_defs.h"
#include "fvm_nodal_from_desc.h"
#include "cs_medcoupling_utils.hxx"
#include "cs_paramedmem_coupling.hxx"
Include dependency graph for cs_paramedmem_coupling.cxx:

Functions

static void _init_mesh_coupling (cs_paramedmem_coupling_t *coupling, _paramedmem_mesh_t *mesh)
 
static void _destroy_mesh (_paramedmem_mesh_t **mesh)
 
static InterpKernelDEC * _cs_paramedmem_create_InterpKernelDEC (int *grp1_global_ranks, int grp1_size, int *grp2_global_ranks, int grp2_size)
 
cs_paramedmem_coupling_t * cs_paramedmem_create (const char *name, InterpKernelDEC *send_dec, InterpKernelDEC *recv_dec)
 
static void _add_paramedmem_interpkernel (const char *name, int *grp1_global_ranks, int grp1_size, int *grp2_global_ranks, int grp2_size)
 
cs_paramedmem_coupling_t * cs_paramedmem_coupling_by_id (int pc_id)
 
cs_paramedmem_coupling_t * cs_paramedmem_interpkernel_create (const char *name, int *grp1_global_ranks, int grp1_size, int *grp2_global_ranks, int grp2_size)
 
void cs_paramedmem_destroy (cs_paramedmem_coupling_t **coupling)
 
int cs_paramedmem_define_mesh (cs_paramedmem_coupling_t *coupling, const char *name, const char *select_criteria, int elt_dim, bool is_source, bool is_dest)
 
void cs_paramedmem_init_meshes (cs_paramedmem_coupling_t *coupling)
 
int cs_paramedmem_mesh_id (cs_paramedmem_coupling_t *coupling, const char *mesh_name)
 
cs_lnum_t cs_paramedmem_mesh_get_n_elts (const cs_paramedmem_coupling_t *coupling, int mesh_id)
 
const cs_lnum_tcs_paramedmem_mesh_get_elt_list (const cs_paramedmem_coupling_t *coupling, int mesh_id)
 
int cs_paramedmem_field_add (cs_paramedmem_coupling_t *coupling, const char *name, int mesh_id, int dim, int medcpl_field_type, int medcpl_time_discr, int dirflag)
 
int cs_paramedmem_field_get_id (cs_paramedmem_coupling_t *coupling, int mesh_id, const char *name)
 
void cs_paramedmem_field_export (cs_paramedmem_coupling_t *coupling, int field_id, bool on_parent, const double field_values[])
 
void cs_paramedmem_field_import (cs_paramedmem_coupling_t *coupling, int field_id, bool on_parent, double field_values[])
 
void cs_paramedmem_sync_dec (cs_paramedmem_coupling_t *coupling, int dec_to_sync)
 
void cs_paramedmem_send_data (cs_paramedmem_coupling_t *coupling)
 
void cs_paramedmem_recv_data (cs_paramedmem_coupling_t *coupling)
 
void cs_paramedmem_reattach_field (cs_paramedmem_coupling_t *coupling, int field_id)
 
int * cs_paramedmem_get_mpi_comm_world_ranks (void)
 

Variables

static int _n_paramed_couplers = 0
 
static cs_paramedmem_coupling_t ** _paramed_couplers = NULL
 
const int cs_medcpl_cell_field = 0
 
const int cs_medcpl_vertex_field = 1
 
const int cs_medcpl_no_time = 0
 
const int cs_medcpl_one_time = 1
 
const int cs_medcpl_linear_time = 2
 

Function Documentation

◆ _add_paramedmem_interpkernel()

static void _add_paramedmem_interpkernel ( const char *  name,
int *  grp1_global_ranks,
int  grp1_size,
int *  grp2_global_ranks,
int  grp2_size 
)
static

◆ _cs_paramedmem_create_InterpKernelDEC()

static InterpKernelDEC* _cs_paramedmem_create_InterpKernelDEC ( int *  grp1_global_ranks,
int  grp1_size,
int *  grp2_global_ranks,
int  grp2_size 
)
static

◆ _destroy_mesh()

static void _destroy_mesh ( _paramedmem_mesh_t **  mesh)
static

◆ _init_mesh_coupling()

static void _init_mesh_coupling ( cs_paramedmem_coupling_t *  coupling,
_paramedmem_mesh_t *  mesh 
)
static

◆ cs_paramedmem_coupling_by_id()

cs_paramedmem_coupling_t* cs_paramedmem_coupling_by_id ( int  pc_id)

◆ cs_paramedmem_create()

cs_paramedmem_coupling_t* cs_paramedmem_create ( const char *  name,
InterpKernelDEC *  send_dec,
InterpKernelDEC *  recv_dec 
)

◆ cs_paramedmem_define_mesh()

int cs_paramedmem_define_mesh ( cs_paramedmem_coupling_t *  coupling,
const char *  name,
const char *  select_criteria,
int  elt_dim,
bool  is_source,
bool  is_dest 
)

◆ cs_paramedmem_destroy()

void cs_paramedmem_destroy ( cs_paramedmem_coupling_t **  coupling)

◆ cs_paramedmem_field_add()

int cs_paramedmem_field_add ( cs_paramedmem_coupling_t *  coupling,
const char *  name,
int  mesh_id,
int  dim,
int  medcpl_field_type,
int  medcpl_time_discr,
int  dirflag 
)

◆ cs_paramedmem_field_export()

void cs_paramedmem_field_export ( cs_paramedmem_coupling_t *  coupling,
int  field_id,
bool  on_parent,
const double  field_values[] 
)

◆ cs_paramedmem_field_get_id()

int cs_paramedmem_field_get_id ( cs_paramedmem_coupling_t *  coupling,
int  mesh_id,
const char *  name 
)

◆ cs_paramedmem_field_import()

void cs_paramedmem_field_import ( cs_paramedmem_coupling_t *  coupling,
int  field_id,
bool  on_parent,
double  field_values[] 
)

◆ cs_paramedmem_get_mpi_comm_world_ranks()

int* cs_paramedmem_get_mpi_comm_world_ranks ( void  )

◆ cs_paramedmem_init_meshes()

void cs_paramedmem_init_meshes ( cs_paramedmem_coupling_t *  coupling)

◆ cs_paramedmem_interpkernel_create()

cs_paramedmem_coupling_t* cs_paramedmem_interpkernel_create ( const char *  name,
int *  grp1_global_ranks,
int  grp1_size,
int *  grp2_global_ranks,
int  grp2_size 
)

◆ cs_paramedmem_mesh_get_elt_list()

const cs_lnum_t* cs_paramedmem_mesh_get_elt_list ( const cs_paramedmem_coupling_t *  coupling,
int  mesh_id 
)

◆ cs_paramedmem_mesh_get_n_elts()

cs_lnum_t cs_paramedmem_mesh_get_n_elts ( const cs_paramedmem_coupling_t *  coupling,
int  mesh_id 
)

◆ cs_paramedmem_mesh_id()

int cs_paramedmem_mesh_id ( cs_paramedmem_coupling_t *  coupling,
const char *  mesh_name 
)

◆ cs_paramedmem_reattach_field()

void cs_paramedmem_reattach_field ( cs_paramedmem_coupling_t *  coupling,
int  field_id 
)

◆ cs_paramedmem_recv_data()

void cs_paramedmem_recv_data ( cs_paramedmem_coupling_t *  coupling)

◆ cs_paramedmem_send_data()

void cs_paramedmem_send_data ( cs_paramedmem_coupling_t *  coupling)

◆ cs_paramedmem_sync_dec()

void cs_paramedmem_sync_dec ( cs_paramedmem_coupling_t *  coupling,
int  dec_to_sync 
)

Variable Documentation

◆ _n_paramed_couplers

int _n_paramed_couplers = 0
static

◆ _paramed_couplers

cs_paramedmem_coupling_t** _paramed_couplers = NULL
static

◆ cs_medcpl_cell_field

const int cs_medcpl_cell_field = 0

◆ cs_medcpl_linear_time

const int cs_medcpl_linear_time = 2

◆ cs_medcpl_no_time

const int cs_medcpl_no_time = 0

◆ cs_medcpl_one_time

const int cs_medcpl_one_time = 1

◆ cs_medcpl_vertex_field

const int cs_medcpl_vertex_field = 1