Code_Saturne
CFD tool
Main Page
Namespaces
Data Structures
Files
Examples
File List
Globals
All
Data Structures
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Macros
Pages
src
mesh
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
48
BEGIN_C_DECLS
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
83
cs_mesh_to_builder
(
cs_mesh_t
*
mesh
,
84
cs_mesh_builder_t
*mb,
85
bool
transfer,
86
cs_io_t
*pp_out);
87
88
/*----------------------------------------------------------------------------*/
89
90
END_C_DECLS
91
92
#endif
/* __CS_MESH_TO_BUILDER_H__ */
cs_base.h
cs_mesh_builder_t
Definition:
cs_mesh_builder.h:56
cs_defs.h
BEGIN_C_DECLS
#define BEGIN_C_DECLS
Definition:
cs_defs.h:365
fvm_periodicity.h
cs_mesh_t
Definition:
cs_mesh.h:62
mesh
Definition:
mesh.f90:25
cs_mesh_to_builder
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
cs_mesh_builder.h
_cs_io_t
Definition:
cs_io_dump.c:124
cs_part_to_block.h
fvm_group.h
cs_mesh.h
END_C_DECLS
#define END_C_DECLS
Definition:
cs_defs.h:366
fvm_selector.h
Generated on Fri Jan 26 2018 14:29:29 for Code_Saturne by
1.8.6