8.3
general documentation
cs_base_fortran.h
Go to the documentation of this file.
1#ifndef __CS_BASE_FORTRAN_H__
2#define __CS_BASE_FORTRAN_H__
3
4/*============================================================================
5 * Initializtion and handling of Fortran-related mechanisms
6 *============================================================================*/
7
8/*
9 This file is part of code_saturne, a general-purpose CFD tool.
10
11 Copyright (C) 1998-2024 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_base.h"
35
36/*----------------------------------------------------------------------------*/
37
39
40/*=============================================================================
41 * Macro definitions
42 *============================================================================*/
43
44/*============================================================================
45 * Type definitions
46 *============================================================================*/
47
48/*============================================================================
49 * Static global variables
50 *============================================================================*/
51
52/*=============================================================================
53 * Public function prototypes
54 *============================================================================*/
55
56/*----------------------------------------------------------------------------
57 * Replace default bft_printf() mechanism with internal mechanism.
58 *
59 * This variant is designed to allow switching from C to Fortran output,
60 * whithout disabling regular C stdout output when switched to Fortran.
61 *
62 * This allows redirecting or suppressing logging for different ranks.
63 *
64 * parameters:
65 * log_name <-- base file name for log, or NULL for stdout
66 * rn_log_flag <-- redirection for ranks > 0 log:
67 * false: to "/dev/null" (suppressed)
68 * true: redirected to <log_name>_n*.log" file;
69 *----------------------------------------------------------------------------*/
70
71void
72cs_base_fortran_bft_printf_set(const char *log_name,
73 bool rn_log_flag);
74
75/*----------------------------------------------------------------------------
76 * Switch bft_printf() mechanism to C output.
77 *
78 * This function may only be called after cs_base_fortran_bft_printf_set()
79 *----------------------------------------------------------------------------*/
80
81void
83
84/*----------------------------------------------------------------------------
85 * Switch bft_printf() mechanism to Fortran output.
86 *
87 * This function may only be called after cs_base_fortran_bft_printf_set()
88 *----------------------------------------------------------------------------*/
89
90void
92
93/*----------------------------------------------------------------------------
94 * Wrappers for C functions
95 *----------------------------------------------------------------------------*/
96
97void
99
100void
102
103/*----------------------------------------------------------------------------*/
104
106
107#endif /* __CS_BASE_FORTRAN_H__ */
void cs_user_boundary_conditions_wrapper(int *itypcl)
Definition: cs_base_fortran.c:440
void cs_base_fortran_bft_printf_to_f(void)
Definition: cs_base_fortran.c:397
void cs_base_fortran_bft_printf_to_c(void)
Definition: cs_base_fortran.c:363
void cs_user_extra_operations_wrapper(void)
void cs_base_fortran_bft_printf_set(const char *log_name, bool rn_log_flag)
Definition: cs_base_fortran.c:281
#define BEGIN_C_DECLS
Definition: cs_defs.h:542
#define END_C_DECLS
Definition: cs_defs.h:543