8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
|
+
+
+
|
# Copyright (C) 2000 by Peter J. Gawthrop
###############################################################
## Version control history
###############################################################
## $Id$
## $Log$
## Revision 1.61 2004/06/21 16:30:41 gawthrop
## Don't zero for cc code
##
## Revision 1.60 2004/06/21 16:05:58 gawthrop
## Zapped comment that causes
##
## Revision 1.59 2004/06/20 13:53:06 gawthrop
## Initialise for numpar as well
##
## Revision 1.58 2004/06/20 13:34:11 gawthrop
|
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
|
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
|
-
+
-
+
-
+
-
+
-
+
-
+
-
+
-
+
+
+
+
-
+
|
d)
N=$Ny; M=$Nu
;;
e)
N=$Nx; M=$Nx
;;
x)
N=$Nx; M=1
N=$Nx; M=0
;;
dx)
N=$Nx; M=1
N=$Nx; M=0
;;
edx)
N=$Nx; M=1
N=$Nx; M=0
;;
y)
N=$Ny; M=1
N=$Ny; M=0
;;
u)
N=$Nu; M=1
N=$Nu; M=0
;;
open)
N=$Nx; M=1
N=$Nx; M=0
;;
ax)
N=$Nx; M=1
N=$Nx; M=0
;;
par)
N=$Npar; M=1
N=$Npar; M=0
;;
*)
esac
case ${language} in
m)
if [ "$M" = "0" ]; then
M=1;
fi
echo " mtt$name = zeros($N,$M);"
;;
oct)
if [ "$M" = "1" ]; then
if [ "$M" = "0" ]; then
echo " mtt$name = zeros($N);"
else
echo " mtt$name = zeros($N,$M);"
fi
;;
*)
esac
|