1 #ifndef __CS_PARAMEDMEM_HXX__ 2 #define __CS_PARAMEDMEM_HXX__ 38 typedef struct _cs_paramedmem_coupling_t cs_paramedmem_coupling_t;
82 cs_paramedmem_coupling_t *
96 cs_paramedmem_coupling_t *
112 cs_paramedmem_coupling_t *
114 const char *app2_name,
115 const char *cpl_name);
149 const char *sel_crit,
257 const double values[]);
Definition: cs_paramedmem_coupling.h:64
void cs_paramedmem_send_data(cs_paramedmem_coupling_t *c)
Send values of field attached to DEC.
Definition: cs_paramedmem_coupling.cxx:959
cs_medcpl_field_nature_t
Definition: cs_paramedmem_coupling.h:59
Field descriptor.
Definition: cs_field.h:125
void cs_paramedmem_field_import(cs_paramedmem_coupling_t *c, const char *name, double values[])
Read values before sending operation.
Definition: cs_paramedmem_coupling.cxx:870
Definition: cs_paramedmem_coupling.h:62
cs_paramedmem_coupling_t * cs_paramedmem_coupling_by_id(int cpl_id)
Retrieve coupling struct pointer by id.
Definition: cs_paramedmem_coupling.cxx:248
#define BEGIN_C_DECLS
Definition: cs_defs.h:510
void cs_paramedmem_field_export(cs_paramedmem_coupling_t *c, const char *name, const double values[])
Write values before sending operation.
Definition: cs_paramedmem_coupling.cxx:809
void cs_paramedmem_recv_field_vals(cs_paramedmem_coupling_t *c, const char *name, double *vals)
Recieve values of a field.
Definition: cs_paramedmem_coupling.cxx:1121
cs_medcpl_time_discr_t
Definition: cs_paramedmem_coupling.h:53
Definition: cs_paramedmem_coupling.h:56
Definition: cs_paramedmem_coupling.h:55
int cs_paramedmem_def_coupled_field_from_cs_field(cs_paramedmem_coupling_t *c, cs_field_t *f, cs_medcpl_field_nature_t fn, cs_medcpl_time_discr_t td)
Define a coupled field based on a cs_field_t pointer.
Definition: cs_paramedmem_coupling.cxx:756
int cs_paramedmem_def_coupled_field(cs_paramedmem_coupling_t *c, const char *name, int dim, cs_medcpl_field_nature_t field_nature, cs_medcpl_space_discr_t space_discr, cs_medcpl_time_discr_t time_discr)
Define a coupled field.
Definition: cs_paramedmem_coupling.cxx:644
void cs_paramedmem_add_mesh_from_criteria(cs_paramedmem_coupling_t *c, const char *sel_crit, int elt_dim)
Define coupled mesh based on a selection criteria.
Definition: cs_paramedmem_coupling.cxx:471
Definition: cs_paramedmem_coupling.h:60
cs_medcpl_space_discr_t
Definition: cs_paramedmem_coupling.h:48
void cs_paramedmem_coupling_destroy(cs_paramedmem_coupling_t *c)
Destroy a given ParaMEDMEM coupling structure.
Definition: cs_paramedmem_coupling.cxx:414
double precision, dimension(ncharm), save fn
Definition: cs_coal_incl.f90:42
void cs_paramedmem_recv_data(cs_paramedmem_coupling_t *c)
Recieve values of field attached to DEC.
Definition: cs_paramedmem_coupling.cxx:985
void cs_paramedmem_coupling_define_mesh_fields(void)
initialize coupled mesh and fields based on user functions
Definition: cs_paramedmem_coupling.cxx:1213
Definition: cs_paramedmem_coupling.h:50
void cs_paramedmem_coupling_all_finalize(void)
Destroy all coupling structures.
Definition: cs_paramedmem_coupling.cxx:450
Definition: cs_paramedmem_coupling.h:61
void cs_paramedmem_add_mesh_from_zone(cs_paramedmem_coupling_t *c, const cs_zone_t *zone)
Define coupled mesh based on a cs_zone_t pointer.
Definition: cs_paramedmem_coupling.cxx:502
void cs_paramedmem_send_field_vals(cs_paramedmem_coupling_t *c, const char *name, const double *vals)
Send values of a field. If vals pointer is non-null, values are updated before send.
Definition: cs_paramedmem_coupling.cxx:1084
cs_paramedmem_coupling_t * cs_paramedmem_coupling_create(const char *app1_name, const char *app2_name, const char *cpl_name)
Create a new ParaMEDMEM coupling.
Definition: cs_paramedmem_coupling.cxx:323
void cs_paramedmem_coupling_all_init(void)
initialize couplings based on user functions
Definition: cs_paramedmem_coupling.cxx:1200
int cs_lnum_t
local mesh entity id
Definition: cs_defs.h:316
Definition: cs_paramedmem_coupling.h:49
Definition: cs_paramedmem_coupling.h:63
#define END_C_DECLS
Definition: cs_defs.h:511
Definition: cs_paramedmem_coupling.h:54
int cs_paramedmem_get_number_of_couplings(void)
Get number of defined couplings.
Definition: cs_paramedmem_coupling.cxx:546
void cs_paramedmem_coupling_log_setup(void)
Log ParaMEDMEM coupling setup information.
Definition: cs_paramedmem_coupling.cxx:1153
void cs_paramedmem_attach_field_by_name(cs_paramedmem_coupling_t *c, const char *name)
Attach a field to InterpKernelDEC for send operation using its name.
Definition: cs_paramedmem_coupling.cxx:1040
void cs_paramedmem_sync_dec(cs_paramedmem_coupling_t *c)
Sync the coupling's InterpKernelDEC.
Definition: cs_paramedmem_coupling.cxx:930
const cs_lnum_t * cs_paramedmem_mesh_get_elt_list(const cs_paramedmem_coupling_t *coupling)
Get indirection list for elements in coupled mesh.
Definition: cs_paramedmem_coupling.cxx:607
cs_paramedmem_coupling_t * cs_paramedmem_coupling_by_name(const char *name)
Retrieve coupling struct pointer by name.
Definition: cs_paramedmem_coupling.cxx:283
cs_lnum_t cs_paramedmem_mesh_get_n_elts(const cs_paramedmem_coupling_t *coupling)
Get number of elements of coupled mesh.
Definition: cs_paramedmem_coupling.cxx:576
void cs_paramedmem_attach_field_by_id(cs_paramedmem_coupling_t *c, int field_id)
Attach a field to InterpKernelDEC for send operation using its index.
Definition: cs_paramedmem_coupling.cxx:1012