My Project
programmer's documentation
|
#include "cs_defs.h"
#include <stdio.h>
#include <string.h>
#include <assert.h>
#include "bft_mem.h"
#include "bft_error.h"
#include "bft_printf.h"
#include "cs_base.h"
#include "cs_log.h"
#include "cs_numbering.h"
Functions | |
cs_numbering_t * | cs_numbering_create_default (cs_lnum_t n_elts) |
Create a default numbering information structure. More... | |
cs_numbering_t * | cs_numbering_create_vectorized (cs_lnum_t n_elts, int vector_size) |
Create a default numbering information structure in case of vectorization. More... | |
cs_numbering_t * | cs_numbering_create_threaded (int n_threads, int n_groups, cs_lnum_t group_index[]) |
Create a default numbering information structure in case of threading. More... | |
void | cs_numbering_destroy (cs_numbering_t **numbering) |
Destroy a numbering information structure. More... | |
void | cs_numbering_log_info (cs_log_t log, const char *description, const cs_numbering_t *numbering) |
Log information relative to a cs_numbering_t structure. More... | |
void | cs_numbering_dump (const cs_numbering_t *numbering) |
Dump a cs_numbering_t structure. More... | |
Variables | |
const char * | cs_numbering_type_name [] |
Numbering information for vectorization or multithreading.
cs_numbering_t* cs_numbering_create_default | ( | cs_lnum_t | n_elts | ) |
Create a default numbering information structure.
[in] | n_elts | number of associated elements |
cs_numbering_t* cs_numbering_create_threaded | ( | int | n_threads, |
int | n_groups, | ||
cs_lnum_t | group_index[] | ||
) |
Create a default numbering information structure in case of threading.
[in] | n_groups | number of groups |
[in] | group_index | group_index[thread_id*group_id*2 + group_id*2] and group_index[thread_id*group_id*2 + group_id*2 +1] define the start and end ids for entities in a given group and thread; (size: n_groups *2 * n_threads) |
cs_numbering_t* cs_numbering_create_vectorized | ( | cs_lnum_t | n_elts, |
int | vector_size | ||
) |
Create a default numbering information structure in case of vectorization.
[in] | n_elts | number of associated elements |
[in] | vector_size | vector size used for this vectorization |
void cs_numbering_destroy | ( | cs_numbering_t ** | numbering | ) |
Destroy a numbering information structure.
[in,out] | numbering | pointer to cs_numbering_t structure pointer (or NULL) |
void cs_numbering_dump | ( | const cs_numbering_t * | numbering | ) |
Dump a cs_numbering_t structure.
[in] | numbering | pointer to cs_numbering_t structure (or NULL) |
void cs_numbering_log_info | ( | cs_log_t | log, |
const char * | description, | ||
const cs_numbering_t * | numbering | ||
) |
Log information relative to a cs_numbering_t structure.
[in] | log | log type |
[in] | description | description of numbering type |
[in] | numbering | pointer to cs_numbering_t structure (or NULL) |