1 /*============================================================================
2  * User solver
3  *============================================================================*/
4 
5 /* VERS */
6 
7 /*
8   This file is part of Code_Saturne, a general-purpose CFD tool.
9 
10   Copyright (C) 1998-2021 EDF S.A.
11 
12   This program is free software; you can redistribute it and/or modify it under
13   the terms of the GNU General Public License as published by the Free Software
14   Foundation; either version 2 of the License, or (at your option) any later
15   version.
16 
17   This program is distributed in the hope that it will be useful, but WITHOUT
18   ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
19   FOR A PARTICULAR PURPOSE.  See the GNU General Public License for more
20   details.
21 
22   You should have received a copy of the GNU General Public License along with
23   this program; if not, write to the Free Software Foundation, Inc., 51 Franklin
24   Street, Fifth Floor, Boston, MA 02110-1301, USA.
25 */
26 
27 /*----------------------------------------------------------------------------*/
28 
29 #include "cs_defs.h"
30 
31 /*----------------------------------------------------------------------------
32  * Standard C library headers
33  *----------------------------------------------------------------------------*/
34 
35 #include <assert.h>
36 #include <math.h>
37 #include <stdlib.h>
38 #include <stdio.h>
39 #include <string.h>
40 
41 /*----------------------------------------------------------------------------
42  * Local headers
43  *----------------------------------------------------------------------------*/
44 
45 #include "cs_headers.h"
46 
47 /*----------------------------------------------------------------------------*/
48 
49 BEGIN_C_DECLS
50 
51 /*----------------------------------------------------------------------------*/
52 /*!
53  * \file cs_user_solver.c
54  *
55  * \brief User solver setting and implementation
56  *
57  * See \ref user_solver for examples.
58  */
59 /*----------------------------------------------------------------------------*/
60 
61 /*============================================================================
62  * User function definitions
63  *============================================================================*/
64 
65 /*----------------------------------------------------------------------------*/
66 /*!
67  * \brief Set user solver
68  *
69  * \return  1 if user solver is called, 0 otherwise
70  */
71 /*----------------------------------------------------------------------------*/
72 
73 #pragma weak cs_user_solver_set
74 int
cs_user_solver_set(void)75 cs_user_solver_set(void)
76 {
77   return 0;
78 }
79 
80 /*----------------------------------------------------------------------------*/
81 /*!
82  * \brief Main call to user solver
83  *
84  * \param[in] mesh pointer to a cs_mesh_t structure
85  * \param[in,out] mesh_quantities pointer to a cs_mesh_quantities_t structure
86  *
87  */
88 /*----------------------------------------------------------------------------*/
89 
90 #pragma weak cs_user_solver
91 void
cs_user_solver(const cs_mesh_t * mesh,const cs_mesh_quantities_t * mesh_quantities)92 cs_user_solver(const cs_mesh_t             *mesh,
93                const cs_mesh_quantities_t  *mesh_quantities)
94 {
95   CS_UNUSED(mesh);
96   CS_UNUSED(mesh_quantities);
97 }
98 
99 /*----------------------------------------------------------------------------*/
100 
101 END_C_DECLS
102