|
| 1 | +(* |
| 2 | + Copyright PELAB, Linkoping University |
| 3 | + |
| 4 | + This file is part of Open Source Modelica (OSM). |
| 5 | + |
| 6 | + OSM is free software; you can redistribute it and/or modify |
| 7 | + it under the terms of the GNU General Public License as published by |
| 8 | + the Free Software Foundation; either version 2 of the License, or |
| 9 | + (at your option) any later version. |
| 10 | + |
| 11 | + OSM is distributed in the hope that it will be useful, |
| 12 | + but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 13 | + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 14 | + GNU General Public License for more details. |
| 15 | + |
| 16 | + You should have received a copy of the GNU General Public License |
| 17 | + along with Foobar; if not, write to the Free Software |
| 18 | + Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA |
| 19 | + |
| 20 | +*) |
| 21 | + |
| 22 | +(** |
| 23 | + ** file: daelow.rml |
| 24 | + ** module: DAELow |
| 25 | + ** description: DAELow a lower form of DAE including sparse matrises for |
| 26 | + ** BLT decomposition, etc. |
| 27 | + ** |
| 28 | + ** RCS: %W% %E% |
| 29 | + ** |
| 30 | + **) |
| 31 | + |
| 32 | +(** - Module header *) |
| 33 | + |
| 34 | +module DAEEXT: |
| 35 | + |
| 36 | + |
| 37 | + relation init_marks: (int,int) => () (* sets v_mark(i), e_mark(i) to false *) |
| 38 | + relation e_mark: (int) => () (* sets e_mark(i) to true *) |
| 39 | + relation get_e_mark: (int) => bool (* returns e_mark(i) *) |
| 40 | + relation v_mark: (int) => () (* sets v_mark(i) to true *) |
| 41 | + relation get_v_mark: (int) => bool (* returns e_mark(i) *) |
| 42 | + relation dump_marked_equations: (int) => () |
| 43 | + relation dump_marked_variables: (int) => () |
| 44 | + |
| 45 | + relation init_lowlink: int => () |
| 46 | + relation init_number: int => () |
| 47 | + relation set_lowlink: (int,int) => () |
| 48 | + relation get_lowlink: (int) => int |
| 49 | + relation set_number: (int,int) => () |
| 50 | + relation get_number: (int) => int |
| 51 | + |
| 52 | + relation init_v: (int) => () |
| 53 | + relation init_f: (int) => () |
| 54 | + relation set_v: (int,int) => () |
| 55 | + relation get_v: (int) => (int) |
| 56 | + |
| 57 | + relation set_f: (int,int) => () |
| 58 | + relation get_f: (int) => (int) |
| 59 | + |
| 60 | + relation vector_setnth: (int vector,int,int) => () |
| 61 | + |
| 62 | +end |
| 63 | + |
0 commit comments