#include <cs_paramedmem_coupling_utils.h>
Collaboration diagram for cs_paramedmem_coupling_t:Public Member Functions | |
| void | add_mesh_from_criteria (const char *sel_crit, int elt_dim) |
| Define coupled mesh based on a selection criteria. More... | |
| void | add_mesh_from_zone (const cs_zone_t *zone) |
| Define coupled mesh based on a cs_zone_t pointer. More... | |
| void | add_mesh_from_ids (cs_lnum_t n_elts, const cs_lnum_t elt_ids[], int elt_dim) |
| Define coupled mesh based on a cs_zone_t pointer. More... | |
| std::string | getName () const |
| Get name of the coupling. More... | |
| cs_lnum_t | get_n_elts () const |
| Get number of elements of coupled mesh. More... | |
| const cs_lnum_t * | get_elt_list () const |
| Get indirection list for elements in coupled mesh. More... | |
| cs_lnum_t | get_n_vertices () const |
| Get number of vertices of coupled mesh. More... | |
| const cs_lnum_t * | get_vertex_list () const |
| Get indirection list for vertices in coupled mesh. More... | |
| int | add_field (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) |
| Add a coupled field. More... | |
| int | add_field (const cs_field_t *f, cs_medcpl_field_nature_t fn, cs_medcpl_time_discr_t td) |
| Add a coupled field based on a cs_field_t pointer. More... | |
| void | set_values (const char *name, const double values[], const bool use_list_elt=true) |
| Assign values based on parent mesh location to associated ParaFIELD objects. More... | |
| void | get_values (const char *name, double values[], const bool use_list_elt=true) const |
| Copy values from associated ParaFIELD object to array defined parent mesh location. More... | |
| void | send_data () const |
| Send values of field attached to DEC. More... | |
| void | send_data (const char *name, const double *vals, const bool use_list_elt=true) |
| Send values of a field. If vals pointer is non-null, values are updated before send. More... | |
| void | recv_data () |
| Recieve values of field attached to DEC. More... | |
| void | recv_data (const char *name, double *vals, const bool use_list_elt=true) |
| Recieve values of a field. More... | |
| void | sync_dec () |
| Sync the coupling's the DEC. More... | |
| void | attach_field_by_id (int field_id) |
| Attach a field to the DEC for send operation using its index. More... | |
| void | attach_field_by_name (const char *name) |
| Attach a field to the DEC for send operation using its name. More... | |
| void | log () const |
| Log ParaMEDMEM coupling setup information. More... | |
Public Attributes | |
| std::string | _name |
| ple_coupling_mpi_set_info_t | apps [2] |
| void * | para_mesh |
| void * | dec |
| void * | fields |
| MPI_Comm | comm |
| bool | dec_synced |
| int add_field | ( | 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 | ||
| ) |
Add a coupled field.
| [in] | name | name of field |
| [in] | dim | field dimension |
| [in] | field_nature | field nature flag |
| [in] | space_discr | field space discretisation (nodes or cells) |
| [in] | time_discr | field coupling time discretisation |
| int add_field | ( | const cs_field_t * | f, |
| cs_medcpl_field_nature_t | fn, | ||
| cs_medcpl_time_discr_t | td | ||
| ) |
Add a coupled field based on a cs_field_t pointer.
| [in] | f | pointer to cs_field_t struct |
| [in] | fn | field nature flag |
| [in] | time_discr | field coupling time discretisation |
| void add_mesh_from_criteria | ( | const char * | sel_crit, |
| int | elt_dim | ||
| ) |
Define coupled mesh based on a selection criteria.
| [in] | sel_crit | geometrical selection criteria (string) |
| [in] | elt_dim | dimension of coupled elements |
Define coupled mesh based on a cs_zone_t pointer.
| [in] | n_elts | local number of elements |
| [in] | elt_ids | list of local elements |
| [in] | elt_dim | dimension of elements (2: faces, 3: cells) |
| void add_mesh_from_zone | ( | const cs_zone_t * | zone | ) |
| void attach_field_by_id | ( | int | field_id | ) |
Attach a field to the DEC for send operation using its index.
| [in] | field_id | index of field in storing vector |
| void attach_field_by_name | ( | const char * | name | ) |
Attach a field to the DEC for send operation using its name.
| [in] | name | name of field (string) |
|
inline |
Get indirection list for elements in coupled mesh.
|
inline |
Get number of elements of coupled mesh.
|
inline |
Get number of vertices of coupled mesh.
| void get_values | ( | const char * | name, |
| double | values[], | ||
| const bool | use_list_elt = true |
||
| ) | const |
Copy values from associated ParaFIELD object to array defined parent mesh location.
| [in] | name | name of field |
| [in] | values | array in which values will be stored |
| [in] | use_list_elt | Copy values from associated ParaFIELD structure to array defined on mesh location corresponding to coupled elements (and associated ParaMESH). |
|
inline |
Get indirection list for vertices in coupled mesh.
|
inline |
Get name of the coupling.
| void log | ( | ) | const |
Log ParaMEDMEM coupling setup information.
| void recv_data | ( | ) |
Recieve values of field attached to DEC.
| void recv_data | ( | const char * | name, |
| double * | vals, | ||
| const bool | use_list_elt = true |
||
| ) |
Recieve values of a field.
| [in] | name | name of field |
| [in] | vals | array of values to read |
| [in] | use_list_elt | Copy values from associated ParaFIELD structure to array defined on mesh location corresponding to coupled elements (and associated ParaMESH). |
| void send_data | ( | ) | const |
Send values of field attached to DEC.
| void send_data | ( | const char * | name, |
| const double * | vals, | ||
| const bool | use_list_elt = true |
||
| ) |
Send values of a field. If vals pointer is non-null, values are updated before send.
| [in] | name | name of field |
| [in] | vals | array of values to write |
| [in] | use_list_elt | Copy values from associated ParaFIELD structure to array defined on mesh location corresponding to coupled elements (and associated ParaMESH). |
| void set_values | ( | const char * | name, |
| const double | values[], | ||
| const bool | use_list_elt = true |
||
| ) |
Assign values based on parent mesh location to associated ParaFIELD objects.
| [in] | name | name of field |
| [in] | values | array of values to write (defined on parent mesh location) |
| [in] | use_list_elt | Copy values from associated ParaFIELD structure to array defined on mesh location corresponding to coupled elements (and associated ParaMESH). |
| void sync_dec | ( | ) |
Sync the coupling's the DEC.
Sync the coupling's DEC.
| std::string _name |
| ple_coupling_mpi_set_info_t apps[2] |
| MPI_Comm comm |
| void* dec |
| bool dec_synced |
| void* fields |
| void* para_mesh |