TrioCFD 1.9.8
TrioCFD documentation
Loading...
Searching...
No Matches
dlsinterf.h
1/****************************************************************************
2* Copyright (c) 2024, CEA
3* All rights reserved.
4*
5* Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
6* 1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
7* 2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.
8* 3. Neither the name of the copyright holder nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission.
9*
10* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
11* IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS;
12* OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
13*
14*****************************************************************************/
15
16extern "C" {
17#ifdef F77_Majuscule
18 int F77DECLARE(DLSODECHIMIES)(integer *neq, double *y, double *t, double *tout, double* tau_mel, integer *itol, double *rtol, double *atol, double *rwork, integer *lrw, integer *iwork, integer *liw);
19#else
20 int F77DECLARE(dlsodechimies)(integer *neq, double *y, double *t, double *tout, double* tau_mel, integer *itol, double *rtol, double *atol, double *rwork, integer *lrw, integer *iwork, integer *liw);
21#endif
22}
23#ifndef F77_Majuscule
24inline int F77DECLARE(DLSODECHIMIES)(integer *neq, double *y, double *t, double *tout, double* tau_mel, integer *itol, double *rtol, double *atol, double *rwork, integer *lrw, integer *iwork, integer *liw)
25{
26 return F77NAME(dlsodechimies)(neq, y, t, tout, tau_mel,itol, rtol, atol, rwork, lrw, iwork, liw);
27}
28#endif
29extern "C" {
30#ifdef F77_Majuscule
31 int F77DECLARE(DLSODE_CHIMIE_S_OLD)(integer *neq, double *y, double *t, double *tout, integer *itol, double *rtol, double *atol, double *rwork, integer *lrw, integer *iwork, integer *liw);
32#else
33 int F77DECLARE(dlsode_chimie_s_old)(integer *neq, double *y, double *t, double *tout, integer *itol, double *rtol, double *atol, double *rwork, integer *lrw, integer *iwork, integer *liw);
34#endif
35}
36#ifndef F77_Majuscule
37inline int F77DECLARE(DLSODE_CHIMIE_S_OLD)(integer *neq, double *y, double *t, double *tout, integer *itol, double *rtol, double *atol, double *rwork, integer *lrw, integer *iwork, integer *liw)
38{
39 return F77NAME(dlsode_chimie_s_old)(neq, y, t, tout, itol, rtol, atol, rwork, lrw, iwork, liw);
40}
41#endif
42
43extern "C" {
44#ifdef F77_Majuscule
45 int F77DECLARE(INITTAILLECOMMON)(integer *nreact, integer *ncons);
46#else
47 int F77DECLARE(inittaillecommon)(integer *nreact, integer *ncons);
48#endif
49}
50#ifndef F77_Majuscule
51inline int F77DECLARE(INITTAILLECOMMON)(integer *nreact, integer *ncons)
52{
53 return F77NAME(inittaillecommon)(nreact, ncons);
54}
55#endif
56
57extern "C" {
58#ifdef F77_Majuscule
59 int F77DECLARE(INITREACTIONCOMMON)(integer *ir, double *pstochio, integer *pactivite, integer *contrereaction);
60#else
61 int F77DECLARE(initreactioncommon)(integer *ir, double *pstochio, integer *pactivite, integer *contrereaction);
62#endif
63}
64#ifndef F77_Majuscule
65inline int F77DECLARE(INITREACTIONCOMMON)(integer *ir, double *pstochio, integer *pactivite, integer *contrereaction)
66{
67 return F77NAME(initreactioncommon)(ir, pstochio, pactivite,contrereaction);
68}
69#endif
70
71extern "C" {
72#ifdef F77_Majuscule
73 int F77DECLARE(SETCWREACTION)(integer *ir, double *rcw);
74#else
75 int F77DECLARE(setcwreaction)(integer *ir, double *rcw);
76#endif
77}
78#ifndef F77_Majuscule
79inline int F77DECLARE(SETCWREACTION)(integer *ir, double *rcw)
80{
81 return F77NAME(setcwreaction)(ir, rcw);
82}
83#endif
84extern "C" {
85#ifdef F77_Majuscule
86 int F77DECLARE(SETMARQUEUR)(integer *ir);
87#else
88 int F77DECLARE(setmarqueur)(integer *ir);
89#endif
90}
91#ifndef F77_Majuscule
92inline int F77DECLARE(SETMARQUEUR)(integer *ir)
93{
94 return F77NAME(setmarqueur)(ir);
95}
96#endif
97extern "C" {
98#ifdef F77_Majuscule
99 int F77DECLARE(PRINTCOMMON)();
100#else
101 int F77DECLARE(printcommon)();
102#endif
103}
104#ifndef F77_Majuscule
105inline int F77DECLARE(PRINTCOMMON)()
106{
107 return F77NAME(printcommon)();
108}
109#endif