8.0
general documentation
cs_preprocess.h File Reference
#include "cs_defs.h"
#include "cs_halo.h"
#include "cs_mesh.h"
#include "cs_mesh_adjacencies.h"
#include "cs_mesh_quantities.h"
+ Include dependency graph for cs_preprocess.h:

Go to the source code of this file.

Functions

bool cs_preprocess_mesh_is_needed (void)
 Determine if preprocessing is needed. More...
 
void cs_preprocess_mesh_define (void)
 Define all mesh preprocessing operations. More...
 
void cs_preprocess_mesh (cs_halo_type_t halo_type)
 Apply all mesh preprocessing operations. More...
 
void cs_preprocess_mesh_selected_b_faces_ignore (cs_mesh_t *m, cs_mesh_quantities_t *mq, cs_lnum_t n_faces, const cs_lnum_t face_ids[])
 Apply numbering changes to ignore selected boundary faces. More...
 
void cs_preprocess_mesh_update_fortran (void)
 Update fortran arrays relative to the global mesh. More...
 
void cs_preprocess_mesh_update_device (cs_alloc_mode_t alloc_mode)
 Map some mesh arrays for use on device. More...
 

Function Documentation

◆ cs_preprocess_mesh()

void cs_preprocess_mesh ( cs_halo_type_t  halo_type)

Apply all mesh preprocessing operations.

◆ cs_preprocess_mesh_define()

void cs_preprocess_mesh_define ( void  )

Define all mesh preprocessing operations.

◆ cs_preprocess_mesh_is_needed()

bool cs_preprocess_mesh_is_needed ( void  )

Determine if preprocessing is needed.

Preprocessing is ignored when a ./restart/mesh_input file is present but no ./mesh_input file or directory is present. In this case, restart mesh file is read, and all other preprocessing steps are skipped.

Returns
true if preprocessing is needed, false if only reading is needed.

◆ cs_preprocess_mesh_selected_b_faces_ignore()

void cs_preprocess_mesh_selected_b_faces_ignore ( cs_mesh_t m,
cs_mesh_quantities_t mq,
cs_lnum_t  n_faces,
const cs_lnum_t  face_ids[] 
)

Apply numbering changes to ignore selected boundary faces.

Parameters
[in,out]mpointer to mesh structure
[in,out]mqpointer to mesh quantities structure
[in]n_facesnumber of selected faces
[in]face_idsids of selected faces

◆ cs_preprocess_mesh_update_device()

void cs_preprocess_mesh_update_device ( cs_alloc_mode_t  alloc_mode)

Map some mesh arrays for use on device.

More elements may be mapped dependin on which arrays are used in accelerated algorithms.

Parameters
[in]alloc_modechosen allocation mode

◆ cs_preprocess_mesh_update_fortran()

void cs_preprocess_mesh_update_fortran ( void  )

Update fortran arrays relative to the global mesh.