#include "cs_defs.h"
#include "cs_base.h"
#include "cs_mesh.h"
#include "cs_mesh_builder.h"
Go to the source code of this file.
◆ cs_partition_algorithm_t
Enumerator |
---|
CS_PARTITION_DEFAULT | |
CS_PARTITION_SFC_MORTON_BOX | |
CS_PARTITION_SFC_MORTON_CUBE | |
CS_PARTITION_SFC_HILBERT_BOX | |
CS_PARTITION_SFC_HILBERT_CUBE | |
CS_PARTITION_SCOTCH | |
CS_PARTITION_METIS | |
CS_PARTITION_BLOCK | |
◆ cs_partition_stage_t
Enumerator |
---|
CS_PARTITION_FOR_PREPROCESS | |
CS_PARTITION_MAIN | |
◆ cs_partition()
Partition mesh based on current options.
- Parameters
-
[in] | mesh | pointer to mesh structure |
[in,out] | mb | pointer to mesh builder structure |
[in] | stage | associated partitioning stage |
◆ cs_partition_add_partitions()
void cs_partition_add_partitions |
( |
int |
n_extra_partitions, |
|
|
int |
extra_partitions_list[] |
|
) |
| |
Define list of extra partitionings to build.
Partitionings in this list will be output to file, and may be used for subsequent calculations.
When partitioning for both preprocessing and calculation stages, output to file of partioning data or generation of additional partitionings (see cs_partition_add_partitions) will only be done for the second stage.
- Parameters
-
[in] | n_extra_partitions | number of extra partitionings to compute |
[in] | extra_partitions_list | list of extra partitions to compute |
◆ cs_partition_external_library_info()
void cs_partition_external_library_info |
( |
void |
| ) |
|
Print information on external libraries.
◆ cs_partition_get_preprocess()
bool cs_partition_get_preprocess |
( |
void |
| ) |
|
Indicate if re-partitiong for the computation stage is required.
- Returns
- true if initial partitioning for preprocessing is active, false otherwise
◆ cs_partition_set_algorithm()
Set algorithm for domain partitioning.
- Parameters
-
[in] | stage | associated partitioning stage |
[in] | algorithm | partitioning algorithm choice |
[in] | rank_step | if > 1, partitioning done on at most n_ranks / rank_step processes (for graph-based partitioning only) |
[in] | ignore_perio | if true, ignore periodicity information when present (for graph-based partitioning only) |
◆ cs_partition_set_preprocess()
void cs_partition_set_preprocess |
( |
bool |
active | ) |
|
Activate or deactivate initial partitioning for preprocessing.
- Parameters
-
[in] | active | true to activate pre-partitiong for the preprocessing stage, false to de-activate it |
◆ cs_partition_set_preprocess_hints()
void cs_partition_set_preprocess_hints |
( |
bool |
join, |
|
|
bool |
join_periodic |
|
) |
| |
Define hints indicating if initial partitioning fo a preprocessing stage is required.
- Parameters
-
[in] | join | true if a mesh joining operation is planned. |
[in] | join_periodic | true if a mesh periodic matching operation is planned |
◆ cs_partition_set_write_level()
void cs_partition_set_write_level |
( |
int |
write_flag | ) |
|
Set partitioning write to file option.
Partitioning information for subsequent calculations is written to file after the last partitioning stage depending on the output level.
Note that partitioning information for additional partitionings is always written to file, regardless of this option.
- Parameters
-
[in] | write_flag | option to save partitioning information: 0: never 1: for graph-based partitioning only 2: always |