Code_Saturne
CFD tool
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
cs_mesh_to_builder.h
Go to the documentation of this file.
1 #ifndef __CS_MESH_TO_BUILDER_H__
2 #define __CS_MESH_TO_BUILDER_H__
3 
4 /*============================================================================
5  * Define cs_mesh_builder_t fields from cs_mesh_t fields.
6  *============================================================================*/
7 
8 /*
9  This file is part of Code_Saturne, a general-purpose CFD tool.
10 
11  Copyright (C) 1998-2012 EDF S.A.
12 
13  This program is free software; you can redistribute it and/or modify it under
14  the terms of the GNU General Public License as published by the Free Software
15  Foundation; either version 2 of the License, or (at your option) any later
16  version.
17 
18  This program is distributed in the hope that it will be useful, but WITHOUT
19  ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
20  FOR A PARTICULAR PURPOSE. See the GNU General Public License for more
21  details.
22 
23  You should have received a copy of the GNU General Public License along with
24  this program; if not, write to the Free Software Foundation, Inc., 51 Franklin
25  Street, Fifth Floor, Boston, MA 02110-1301, USA.
26 */
27 
28 /*----------------------------------------------------------------------------*/
29 
30 /*----------------------------------------------------------------------------
31  * Local headers
32  *----------------------------------------------------------------------------*/
33 
34 #include "cs_defs.h"
35 
36 #include "fvm_group.h"
37 #include "fvm_selector.h"
38 #include "fvm_periodicity.h"
39 
40 #include "cs_base.h"
41 
42 #include "cs_mesh.h"
43 #include "cs_mesh_builder.h"
44 #include "cs_part_to_block.h"
45 
46 /*----------------------------------------------------------------------------*/
47 
49 
50 /*=============================================================================
51  * Macro definitions
52  *============================================================================*/
53 
54 /*============================================================================
55  * Type definitions
56  *============================================================================*/
57 
58 /*============================================================================
59  * Static global variables
60  *============================================================================*/
61 
62 /*=============================================================================
63  * Public function prototypes
64  *============================================================================*/
65 
66 /*----------------------------------------------------------------------------
67  * Transfer mesh to mesh builder structure.
68  *
69  * As the dataflow is very similar, but may be done array-by array to minimize
70  * memory overhead, this function also handles a part of the output
71  * to file needed to save a mesh file.
72  *
73  * parameters:
74  * mesh <-> pointer to mesh structure
75  * mb <-> pointer to mesh builder structure
76  * transfer <-- if true, data is transferred from mesh to builder;
77  * if false, builder fields are only used as a temporary
78  * arrays.
79  * pp_out <-> optional output file, or NULL
80  *----------------------------------------------------------------------------*/
81 
82 void
85  bool transfer,
86  cs_io_t *pp_out);
87 
88 /*----------------------------------------------------------------------------*/
89 
91 
92 #endif /* __CS_MESH_TO_BUILDER_H__ */
Definition: cs_mesh_builder.h:56
#define BEGIN_C_DECLS
Definition: cs_defs.h:365
Definition: cs_mesh.h:62
Definition: mesh.f90:25
BEGIN_C_DECLS void cs_mesh_to_builder(cs_mesh_t *mesh, cs_mesh_builder_t *mb, bool transfer, cs_io_t *pp_out)
Transfer mesh to mesh builder structure.
Definition: cs_mesh_to_builder.c:1373
Definition: cs_io_dump.c:124
#define END_C_DECLS
Definition: cs_defs.h:366