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

« back to all changes in this revision

Viewing changes to include/base/cs_ext_neighborhood.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) 1998-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_EXT_NEIGHBOR_H__
29
 
#define __CS_EXT_NEIGHBOR_H__
30
 
 
31
 
/*============================================================================
32
 
 * Fortran interfaces of functions needing a synchronization of the extended
33
 
 * neighborhood.
34
 
 *============================================================================*/
35
 
 
36
 
/*----------------------------------------------------------------------------
37
 
 *  Local headers
38
 
 *----------------------------------------------------------------------------*/
39
 
 
40
 
#include "cs_base.h"
41
 
#include "cs_mesh.h"
42
 
 
43
 
/*----------------------------------------------------------------------------*/
44
 
 
45
 
BEGIN_C_DECLS
46
 
 
47
 
/*=============================================================================
48
 
 * Local Macro definitions
49
 
 *============================================================================*/
50
 
 
51
 
/*============================================================================
52
 
 * Type definition
53
 
 *============================================================================*/
54
 
 
55
 
/*============================================================================
56
 
 * Public function definitions for Fortran API
57
 
 *============================================================================*/
58
 
 
59
 
/*----------------------------------------------------------------------------
60
 
 * Define a new "cell -> cells" connectivity for the  extended neighborhood
61
 
 * in case of computation of gradient whith the least square algorithm
62
 
 * (imrgra = 3).
63
 
 * The "cell -> cells" connectivity is clipped by a non-orthogonality
64
 
 * criterion.
65
 
 *
66
 
 * Warning   :  Only cells sharing a vertex or vertices
67
 
 *              (not a face => mesh->face_cells) belong to the
68
 
 *              "cell -> cells" connectivity.
69
 
 *
70
 
 * Fortran Interface :
71
 
 *
72
 
 * SUBROUTINE REDVSE
73
 
 * *****************
74
 
 *    & ( ANOMAX )
75
 
 *
76
 
 * parameters:
77
 
 *   anomax  -->  non-orthogonality angle (rad) above which cells
78
 
 *                are selected for the extended neighborhood
79
 
 *----------------------------------------------------------------------------*/
80
 
 
81
 
void
82
 
CS_PROCF (redvse, REDVSE) (const cs_real_t  *anomax);
83
 
 
84
 
/*----------------------------------------------------------------------------
85
 
 * Compute filters for dynamic models. This function deals with the standard
86
 
 * or extended neighborhood.
87
 
 *
88
 
 * Fortran Interface :
89
 
 *
90
 
 * SUBROUTINE CFILTR (VAR, F_VAR, WBUF1, WBUF2)
91
 
 * *****************
92
 
 *
93
 
 * DOUBLE PRECISION(*) var[]      --> array of variables to filter
94
 
 * DOUBLE PRECISION(*) f_var[]    --> filtered variable array
95
 
 * DOUBLE PRECISION(*) wbuf1[]    --> working buffer
96
 
 * DOUBLE PRECISION(*) wbuf2[]    --> working buffer
97
 
 *----------------------------------------------------------------------------*/
98
 
 
99
 
void
100
 
CS_PROCF (cfiltr, CFILTR)(cs_real_t         var[],
101
 
                          cs_real_t         f_var[],
102
 
                          cs_real_t         wbuf1[],
103
 
                          cs_real_t         wbuf2[]);
104
 
 
105
 
/*----------------------------------------------------------------------------
106
 
 * Create the  "cell -> cells" connectivity
107
 
 *
108
 
 * parameters:
109
 
 *   mesh           <->  pointer to a mesh structure.
110
 
 *---------------------------------------------------------------------------*/
111
 
 
112
 
void
113
 
cs_ext_neighborhood_define(cs_mesh_t   *mesh);
114
 
 
115
 
/*----------------------------------------------------------------------------*/
116
 
 
117
 
END_C_DECLS
118
 
 
119
 
#endif /* __CS_EXT_NEIGHBOR_H__ */