Cantera  3.2.0a5
Loading...
Searching...
No Matches
include/cantera/clib/ctfunc.h
Go to the documentation of this file.
1/**
2 * @file ctfunc.h
3 *
4 * @deprecated Deprecated in %Cantera 3.2 and to be removed thereafter.
5 * The legacy CLib is superseded by the generated CLib.
6 */
7
8// This file is part of Cantera. See License.txt in the top-level directory or
9// at https://cantera.org/license.txt for license and copyright information.
10
11#ifndef CTC_FUNC1_H
12#define CTC_FUNC1_H
13
14#pragma message("warning: The legacy CLib library ctfunc.h is deprecated and " \
15 "will be removed after Cantera 3.2. Use generated CLib instead.")
16
17#include "clib_defs.h"
18
19#ifdef __cplusplus
20extern "C" {
21#endif
22
23 CANTERA_CAPI int func_check(const char* type, size_t len, char* buf); //!< @since New in %Cantera 3.1
24 CANTERA_CAPI int func_new_basic(const char* type, double c);
25 CANTERA_CAPI int func_new_advanced(const char* type, size_t lenp, const double* p);
26 CANTERA_CAPI int func_new_compound(const char* type, int a, int b);
27 CANTERA_CAPI int func_new_modified(const char* type, int a, double c);
28 CANTERA_CAPI int func_new_sum(int a, int b);
29 CANTERA_CAPI int func_new_diff(int a, int b);
30 CANTERA_CAPI int func_new_prod(int a, int b);
31 CANTERA_CAPI int func_new_ratio(int a, int b);
32 CANTERA_CAPI int func_del(int i);
33 CANTERA_CAPI int func_type(int i, size_t lennm, char* nm);
34 CANTERA_CAPI double func_value(int i, double t);
35 CANTERA_CAPI int func_derivative(int i);
36 CANTERA_CAPI int func_duplicate(int i);
37 //! @since Changed signature in %Cantera 3.1
38 CANTERA_CAPI int func_write(int i, const char* arg, size_t lennm, char* nm);
39 CANTERA_CAPI int ct_clearFunc();
40
41#ifdef __cplusplus
42}
43#endif
44
45#endif
CANTERA_CAPI int func_check(const char *type, size_t len, char *buf)
CANTERA_CAPI int func_write(int i, const char *arg, size_t lennm, char *nm)