~ubuntu-branches/ubuntu/precise/code-saturne/precise

« back to all changes in this revision

Viewing changes to include/base/cs_join_update.h

  • Committer: Package Import Robot
  • Author(s): Sylvestre Ledru
  • Date: 2011-11-24 00:00:08 UTC
  • mfrom: (6.1.9 sid)
  • Revision ID: package-import@ubuntu.com-20111124000008-2vo99e38267942q5
Tags: 2.1.0-3
Install a missing file

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
/*============================================================================
2
 
 *
3
 
 *     This file is part of the Code_Saturne Kernel, element of the
4
 
 *     Code_Saturne CFD tool.
5
 
 *
6
 
 *     Copyright (C) 2008-2009 EDF S.A., France
7
 
 *
8
 
 *     contact: saturne-support@edf.fr
9
 
 *
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.
14
 
 *
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.
19
 
 *
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
25
 
 *
26
 
 *===========================================================================*/
27
 
 
28
 
#ifndef __CS_JOIN_UPDATE_H__
29
 
#define __CS_JOIN_UPDATE_H__
30
 
 
31
 
/*============================================================================
32
 
 * Structure and function headers handling with mesh update during
33
 
 * the joining operation
34
 
 *===========================================================================*/
35
 
 
36
 
/*----------------------------------------------------------------------------
37
 
 *  Local headers
38
 
 *---------------------------------------------------------------------------*/
39
 
 
40
 
#include "cs_base.h"
41
 
#include "cs_join_mesh.h"
42
 
#include "cs_join_set.h"
43
 
#include "cs_join_util.h"
44
 
#include "cs_mesh.h"
45
 
 
46
 
/*---------------------------------------------------------------------------*/
47
 
 
48
 
BEGIN_C_DECLS
49
 
 
50
 
/*=============================================================================
51
 
 * Local Macro definitions
52
 
 *===========================================================================*/
53
 
 
54
 
/*============================================================================
55
 
 * Type definition
56
 
 *===========================================================================*/
57
 
 
58
 
/*=============================================================================
59
 
 * Global variables
60
 
 *===========================================================================*/
61
 
 
62
 
/*============================================================================
63
 
 *  Public function header for Fortran API
64
 
 *===========================================================================*/
65
 
 
66
 
/*=============================================================================
67
 
 * Public function prototypes
68
 
 *===========================================================================*/
69
 
 
70
 
/*----------------------------------------------------------------------------
71
 
 * Update mesh structure (vertices + faces) after the fusion step.
72
 
 *
73
 
 * parameters:
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
 
 *---------------------------------------------------------------------------*/
81
 
 
82
 
void
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,
87
 
                                cs_mesh_t         *mesh);
88
 
 
89
 
/*----------------------------------------------------------------------------
90
 
 * Update mesh structure (vertices + faces) after the face split step.
91
 
 *
92
 
 * parameters:
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
 
 *---------------------------------------------------------------------------*/
99
 
 
100
 
void
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,
105
 
                                cs_mesh_t               *mesh);
106
 
 
107
 
/*----------------------------------------------------------------------------
108
 
 * Clean a cs_mesh_t struct.
109
 
 *
110
 
 * Delete redundant and empty edge definitions.
111
 
 *
112
 
 * parameters:
113
 
 *   para <-- set of parameters for the joining operation
114
 
 *   mesh <-> pointer to a cs_mesh_t structure
115
 
 *---------------------------------------------------------------------------*/
116
 
 
117
 
void
118
 
cs_join_update_mesh_clean(cs_join_param_t   param,
119
 
                          cs_mesh_t        *mesh);
120
 
 
121
 
/*---------------------------------------------------------------------------*/
122
 
 
123
 
END_C_DECLS
124
 
 
125
 
#endif /* __CS_JOIN_UPDATE_H__ */