Differences From Artifact [58cb32da86]:

To Artifact [a2463771db]:


11
12
13
14
15
16
17



18
19
20
21
22
23
24
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27







+
+
+







# Copyright (c) P.J.Gawthrop 1991, 1992, 1994.

###############################################################
## Version control history
###############################################################
## $Id$
## $Log$
## Revision 1.16  2001/07/13 04:54:04  geraint
## Branch merge: numerical-algebraic-solution back to main.
##
## Revision 1.15.2.4  2001/06/26 00:55:48  geraint
## Writes algebraic equation Jacobian _aej.r (not used yet).
##
## Revision 1.15.2.3  2001/05/09 00:19:22  geraint
## Fixed EOF error when MTTNYZ=0.
##
## Revision 1.15.2.2  2001/05/05 20:50:16  geraint
91
92
93
94
95
96
97
98
99



100
101
102
103





104
105
106
107
108
109
110
111
112
113



114
115
116
117
118

119
120
121
122


123
124
125
126
127
128
129
94
95
96
97
98
99
100


101
102
103
104
105
106

107
108
109
110
111
112
113
114
115
116
117
118



119
120
121
122




123




124
125
126
127
128
129
130
131
132







-
-
+
+
+



-
+
+
+
+
+







-
-
-
+
+
+

-
-
-
-
+
-
-
-
-
+
+







## Sorted out bug when MTTNz=0
##
## Revision 1.1  1996/08/15 16:47:02  peter
## Initial revision
##
###############################################################

#Explicit solution option
solve=0
#Explicit solution option and optimise option
solve=0; solve_msg=''
optimise=''; optimise_msg=''
while [ -n "`echo $1 | grep '^-'`" ]; do
  case $1 in
        -A )
                solve=1;;
                solve=1
		solve_msg=' with explicit solution of algebraic equations' ;;
	-optimise)
	    optimise='-optimise'
	    optimise_msg=' with optimisation' ;;
        *)
                echo "$1 is an invalid argument - ignoring" ;;
  esac
  shift
done

# Create the reduce output code
def2write_r $1 cse      
def2write_r $1 csex  # Version without E matrix
def2write_r $1 cseo
def2write_r $optimise $1 cse 
def2write_r $optimise $1 csex # Version without E matrix
def2write_r $optimise $1 cseo

if [ "$solve" = "1" ]; then
    echo "Creating $1_cse.r (with explicit solution of algebraic equations)"
else
    echo "Creating $1_cse.r"
echo "Creating $1_cse.r $solve_msg $optimise_msg"
fi

echo "Creating $1_csex.r"
echo "Creating $1_cseo.r"
echo "Creating $1_csex.r $optimise_msg"
echo "Creating $1_cseo.r $optimise_msg"

# Remove the old log file
rm -f dae2cse_r.log

# Remove some files
rm -f $1_cse.r? $1_cseo.r?


MTT: Model Transformation Tools
GitHub | SourceHut | Sourceforge | Fossil RSS ]