OpenCMISS-Iron Internal API Documentation
external_dae_solver_routines.c
Go to the documentation of this file.
1 /* \file
2  * \author Chris Bradley
3  * \brief This file provides the routines for solving differential-algebraic equations with an external solver.
4  *.
5  * \section LICENSE
6  *
7  * Version: MPL 1.1/GPL 2.0/LGPL 2.1
8  *
9  * The contents of this file are subject to the Mozilla Public License
10  * Version 1.1 (the "License"); you may not use this file except in
11  * compliance with the License. You may obtain a copy of the License at
12  * http://www.mozilla.org/MPL/
13  *
14  * Software distributed under the License is distributed on an "AS IS"
15  * basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See the
16  * License for the specific language governing rights and limitations
17  * under the License.
18  *
19  * The Original Code is OpenCMISS
20  *
21  * The Initial Developer of the Original Code is University of Auckland,
22  * Auckland, New Zealand, the University of Oxford, Oxford, United
23  * Kingdom and King's College, London, United Kingdom. Portions created
24  * by the University of Auckland, the University of Oxford and King's
25  * College, London are Copyright (C) 2007-2010 by the University of
26  * Auckland, the University of Oxford and King's College, London.
27  * All Rights Reserved.
28  *
29  * Contributor(s):
30  *
31  * Alternatively, the contents of this file may be used under the terms of
32  * either the GNU General Public License Version 2 or later (the "GPL"), or
33  * the GNU Lesser General Public License Version 2.1 or later (the "LGPL"),
34  * in which case the provisions of the GPL or the LGPL are applicable instead
35  * of those above. If you wish to allow use of your version of this file only
36  * under the terms of either the GPL or the LGPL, and not to allow others to
37  * use your version of this file under the terms of the MPL, indicate your
38  * decision by deleting the provisions above and replace them with the notice
39  * and other provisions required by the GPL or the LGPL. If you do not delete
40  * the provisions above, a recipient may use your version of this file under
41  * the terms of any one of the MPL, the GPL or the LGPL.
42  *
43  */
44 
45 /*
46 File: external_dae_solver_routines.c
47 ===================
48 
49 This file provides provides the routines for solving differential-algebraic equations with an external solver.
50 
51 Functions included:
52 
53 SolverDAEExternalIntegrate Solves the differential-algebraic equation.
54 
55 */
56 
57 /* Included files */
58 
59 #include <stdio.h>
60 #include <stdlib.h>
61 
63 
64 /* Type definitions */
65 
66 /* Function Definitions */
67 
68 void SolverDAEExternalIntegrate(const int NumberOfDofs,
69  const double StartTime,
70  const double EndTime,
71  double *InitialStep,
72  const int OnlyOneModelIndex,
73  int *ModelsData,
74  int NumberOfState,
75  double *StateData,
76  int NumberOfParameters,
77  double *ParametersData,
78  int NumberOfIntermediate,
79  double *IntermediateData,
80  int *err)
81 {
82 
83  printf("Hello World!\n");
84 
85 }
86 
87 
void SolverDAEExternalIntegrate(const int NumberOfDofs, const double StartTime, const double EndTime, double *InitialStep, const int OnlyOneModelIndex, int *ModelsData, int NumberOfState, double *StateData, int NumberOfParameters, double *ParametersData, int NumberOfIntermediate, double *IntermediateData, int *err)