1
/*============================================================================
3
* This file is part of the Code_Saturne Kernel, element of the
4
* Code_Saturne CFD tool.
6
* Copyright (C) 2008-2009 EDF S.A., France
8
* contact: saturne-support@edf.fr
10
* The Code_Saturne Kernel is free software; you can redistribute it
11
* and/or modify it under the terms of the GNU General Public License
12
* as published by the Free Software Foundation; either version 2 of
13
* the License, or (at your option) any later version.
15
* The Code_Saturne Kernel is distributed in the hope that it will be
16
* useful, but WITHOUT ANY WARRANTY; without even the implied warranty
17
* of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18
* GNU General Public License for more details.
20
* You should have received a copy of the GNU General Public License
21
* along with the Code_Saturne Kernel; if not, write to the
22
* Free Software Foundation, Inc.,
23
* 51 Franklin St, Fifth Floor,
24
* Boston, MA 02110-1301 USA
26
*===========================================================================*/
28
#ifndef __CS_JOIN_UPDATE_H__
29
#define __CS_JOIN_UPDATE_H__
31
/*============================================================================
32
* Structure and function headers handling with mesh update during
33
* the joining operation
34
*===========================================================================*/
36
/*----------------------------------------------------------------------------
38
*---------------------------------------------------------------------------*/
41
#include "cs_join_mesh.h"
42
#include "cs_join_set.h"
43
#include "cs_join_util.h"
46
/*---------------------------------------------------------------------------*/
50
/*=============================================================================
51
* Local Macro definitions
52
*===========================================================================*/
54
/*============================================================================
56
*===========================================================================*/
58
/*=============================================================================
60
*===========================================================================*/
62
/*============================================================================
63
* Public function header for Fortran API
64
*===========================================================================*/
66
/*=============================================================================
67
* Public function prototypes
68
*===========================================================================*/
70
/*----------------------------------------------------------------------------
71
* Update mesh structure (vertices + faces) after the fusion step.
74
* join_param <-- set of parameters for the joining operation
75
* join_select <-- list of all implied entities in the joining op.
76
* o2n_vtx_gnum <-> in : array on blocks on the new global vertex
77
* out: local array on the new global vertex
78
* join_mesh <-> pointer to the local cs_join_mesh_t structure
79
* mesh <-> pointer of pointer to cs_mesh_t structure
80
*---------------------------------------------------------------------------*/
83
cs_join_update_mesh_after_merge(cs_join_param_t join_param,
84
cs_join_select_t *join_select,
85
fvm_gnum_t o2n_vtx_gnum[],
86
cs_join_mesh_t *join_mesh,
89
/*----------------------------------------------------------------------------
90
* Update mesh structure (vertices + faces) after the face split step.
93
* join_param <-- set of parameters for the joining operation
94
* join_select <-- list of all implied entities in the joining op.
95
* o2n_face_hist <-- relation between faces before/after the joining
96
* join_mesh <-> pointer to the local cs_join_mesh_t structure
97
* mesh <-> pointer of pointer to cs_mesh_t structure
98
*---------------------------------------------------------------------------*/
101
cs_join_update_mesh_after_split(cs_join_param_t join_param,
102
const cs_join_select_t *join_select,
103
const cs_join_gset_t *o2n_face_hist,
104
cs_join_mesh_t *join_mesh,
107
/*----------------------------------------------------------------------------
108
* Clean a cs_mesh_t struct.
110
* Delete redundant and empty edge definitions.
113
* para <-- set of parameters for the joining operation
114
* mesh <-> pointer to a cs_mesh_t structure
115
*---------------------------------------------------------------------------*/
118
cs_join_update_mesh_clean(cs_join_param_t param,
121
/*---------------------------------------------------------------------------*/
125
#endif /* __CS_JOIN_UPDATE_H__ */