![]() |
programmer's documentation
|
#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"
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_t * | cs_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 |
|
static |
|
static |
|
static |
|
static |
cs_paramedmem_coupling_t* cs_paramedmem_coupling_by_id | ( | int | pc_id | ) |
cs_paramedmem_coupling_t* cs_paramedmem_create | ( | const char * | name, |
InterpKernelDEC * | send_dec, | ||
InterpKernelDEC * | recv_dec | ||
) |
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_destroy | ( | cs_paramedmem_coupling_t ** | coupling | ) |
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 | ||
) |
void cs_paramedmem_field_export | ( | cs_paramedmem_coupling_t * | coupling, |
int | field_id, | ||
bool | on_parent, | ||
const double | field_values[] | ||
) |
int cs_paramedmem_field_get_id | ( | cs_paramedmem_coupling_t * | coupling, |
int | mesh_id, | ||
const char * | name | ||
) |
void cs_paramedmem_field_import | ( | cs_paramedmem_coupling_t * | coupling, |
int | field_id, | ||
bool | on_parent, | ||
double | field_values[] | ||
) |
int* cs_paramedmem_get_mpi_comm_world_ranks | ( | void | ) |
void cs_paramedmem_init_meshes | ( | cs_paramedmem_coupling_t * | coupling | ) |
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 | ||
) |
const cs_lnum_t* cs_paramedmem_mesh_get_elt_list | ( | const cs_paramedmem_coupling_t * | coupling, |
int | mesh_id | ||
) |
cs_lnum_t cs_paramedmem_mesh_get_n_elts | ( | const cs_paramedmem_coupling_t * | coupling, |
int | mesh_id | ||
) |
int cs_paramedmem_mesh_id | ( | cs_paramedmem_coupling_t * | coupling, |
const char * | mesh_name | ||
) |
void cs_paramedmem_reattach_field | ( | cs_paramedmem_coupling_t * | coupling, |
int | field_id | ||
) |
void cs_paramedmem_recv_data | ( | cs_paramedmem_coupling_t * | coupling | ) |
void cs_paramedmem_send_data | ( | cs_paramedmem_coupling_t * | coupling | ) |
void cs_paramedmem_sync_dec | ( | cs_paramedmem_coupling_t * | coupling, |
int | dec_to_sync | ||
) |
|
static |
|
static |
const int cs_medcpl_cell_field = 0 |
const int cs_medcpl_linear_time = 2 |
const int cs_medcpl_no_time = 0 |
const int cs_medcpl_one_time = 1 |
const int cs_medcpl_vertex_field = 1 |