Overview
Comment: | Reorganised integration method using -i switch Introduced -r (reset) switch |
---|---|
Downloads: | Tarball | ZIP archive | SQL archive |
Timelines: | family | ancestors | descendants | both | origin/master | trunk |
Files: | files | file ages | folders |
SHA3-256: |
6b232a05beb7a3db01676d6afd14cdcd |
User & Date: | gawthrop@users.sourceforge.net on 1999-11-15 22:45:31 |
Other Links: | branch diff | manifest | tags |
Context
1999-11-15
| ||
22:47:17 | Generates method-specific code for the ode2odeso rep. check-in: c5eae5f60d user: gawthrop@users.sourceforge.net tags: origin/master, trunk | |
22:45:31 |
Reorganised integration method using -i switch Introduced -r (reset) switch check-in: 6b232a05be user: gawthrop@users.sourceforge.net tags: origin/master, trunk | |
1999-11-14
| ||
22:22:17 | Removed checks for implicit - now done at command-line level. check-in: 7111b13d99 user: gawthrop@users.sourceforge.net tags: origin/master, trunk | |
Changes
Modified mttroot/mtt/bin/mtt from [2a67a3fad5] to [27ccd43894].
︙ | |||
10 11 12 13 14 15 16 17 18 19 20 21 22 23 | 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 | + + + | # Copyright (c) P.J.Gawthrop, 1989, 1990, 1991, 1993, 1994, 1995, 1996, 1997,1998,1999 ############################################################### ## Version control history ############################################################### ## $Header$ ## $Log$ ## Revision 1.214 1999/11/14 21:27:11 peterg ## *** empty log message *** ## ## Revision 1.213 1999/09/02 23:24:40 peterg ## Now explicitly generates executable _ode2odes.out file ## Which takes command line arguments ## ## Revision 1.212 1999/08/18 06:20:32 peterg ## Put -u back again ..... ## |
︙ | |||
733 734 735 736 737 738 739 740 741 742 743 744 745 746 747 748 749 750 751 752 753 754 755 756 757 758 759 760 761 762 763 764 765 766 767 768 769 770 771 772 773 774 775 776 | 736 737 738 739 740 741 742 743 744 745 746 747 748 749 750 751 752 753 754 755 756 757 758 759 760 761 762 763 764 765 766 767 768 769 770 771 772 773 774 775 776 777 778 779 780 781 782 783 784 785 786 787 788 789 790 791 792 793 794 795 796 797 798 799 800 801 802 803 804 805 806 807 808 809 810 | + + + + + + + + + + + - - - + + + + + + + + + + + + + | level=0 #Computation mode is octave by default computation=octave #By default, the dae and ode representations are different dae_is_ode=0 #By default, the ode and cse reps are different ode_is_cse=0 # By default, don't look for BG switches switches=0 #By default, don't print the environment variables print=''; # By default, make it tidy tidy=tidy; # Default not verbose verbose=' -s' # Default integration method integration_method=implicit; # Default no info info_switch='' #Initialise list mtt_switches=''; #Look for a command line argument while [ -n "`echo $1 | grep '^-'`" ]; do case $1 in -q ) mtt_switches="$mtt_switches $1"; quiet=quiet;; -r ) mtt_switches="$mtt_switches $1"; reset=reset;; -p ) mtt_switches="$mtt_switches $1"; print='-p';; -c ) mtt_switches="$mtt_switches $1"; computation=c ;; -o ) mtt_switches="$mtt_switches $1"; dae_is_ode=1 ;; -i ) mtt_switches="$mtt_switches $1"; shift; |
︙ | |||
875 876 877 878 879 880 881 | 899 900 901 902 903 904 905 906 907 908 909 910 911 912 913 914 915 916 917 | + - - + + + | echo ' -A solve algebraic equations symbolically' echo ' -D debug -- leave log files etc' echo ' -I prints more information' echo ' -abg start at abg.m representation' echo ' -c c-code generation' echo ' -d <dir> use directory <dir>' echo ' -dc Maximise derivative (not integral) causality' echo ' -dc Maximise derivative (not integral) causality' |
︙ | |||
1300 1301 1302 1303 1304 1305 1306 | 1326 1327 1328 1329 1330 1331 1332 1333 1334 1335 1336 1337 1338 1339 1340 1341 1342 1343 1344 1345 1346 1347 1348 1349 1350 1351 1352 | - + - - - | # Exit on failure if [ "$mtt_status" != "0" ]; then echo Exiting MTT with error $mtt_status exit 1 fi # Copy back form working directory |
︙ | |||
1346 1347 1348 1349 1350 1351 1352 1353 1354 1355 1356 1357 1358 1359 1360 | 1369 1370 1371 1372 1373 1374 1375 1376 1377 1378 1379 1380 1381 1382 1383 1384 1385 1386 1387 1388 1389 1390 1391 1392 1393 1394 1395 1396 1397 1398 1399 1400 1401 1402 1403 1404 | + + + + + + + + + + + + + + + + + + + + + | echo Copying $1_$2_$4.ps cp $1_$2_$4.ps .. fi fi exit fi ## Check for pre version 4.0 integration method specification. if [ $level = "0" ]; then if [ -f "$1_simpar.txt" ]; then method_line=`grep -i METHOD $1_simpar.txt` if [ -n "`echo $method_line | grep -i euler`" ]; then echo Obsolete $1_simpar.txt contains: $method_line echo " please use mtt -i euler in future" mtt_switches="$mtt_switches -i euler"; elif [ -n "`echo $method_line | grep -i implicit`" ]; then echo Obsolete $1_simpar.txt contains: $method_line echo " please use mtt -i implicit in future" mtt_switches="$mtt_switches -i implicit"; fi fi fi if [ -n "$reset" ]; then echo $reset echo Resetting $1_$2.$3; touch $1_$2.$3; exit; fi ################################ # This is the main mtt programme ################################ $MAKE -S $verbose -f - $1_$2.$3 << EOF # Cancel implicit rules I don't want |
︙ | |||
1547 1548 1549 1550 1551 1552 1553 | 1591 1592 1593 1594 1595 1596 1597 1598 1599 1600 1601 1602 1603 1604 | - | echo "# Simulation parameters for system $1 ($1_simpar.txt)"; \ echo "# Generated by MTT on" `date`.; \ cat $MTTPATH/trans/rcs_header.sh; \ echo ;\ echo 'LAST = 10.0; # Last time in simulation'; \ echo 'DT = 0.1; # Print interval'; \ echo 'STEPFACTOR = 1; # Integration steps per print interval'; \ |
︙ | |||
1806 1807 1808 1809 1810 1811 1812 | 1849 1850 1851 1852 1853 1854 1855 1856 1857 1858 1859 1860 1861 1862 1863 1864 1865 1866 1867 1868 | + - - + + + + + | #SUMMARY cse* constrained-state equations (m) #SUMMARY cse constrained-state equations (tex) #SUMMARY cse* constrained-state equations (view) #SUMMARY cse constrained-state equations (ps) #Constrained-state equations $1_cse.r: $1_dae.r $1_def.r $1_sympar.r $1_subs.r dae2cse_r $Solve $1; tidy $1_cse.r $1_subs.r |
︙ | |||
1829 1830 1831 1832 1833 1834 1835 | 1876 1877 1878 1879 1880 1881 1882 1883 1884 1885 1886 1887 1888 1889 1890 1891 1892 1893 1894 1895 1896 1897 1898 1899 1900 1901 1902 1903 1904 1905 1906 1907 1908 1909 1910 1911 1912 1913 1914 1915 1916 1917 1918 1919 1920 1921 1922 1923 1924 1925 1926 1927 1928 1929 1930 1931 1932 1933 1934 1935 1936 1937 1938 1939 1940 1941 1942 1943 1944 1945 1946 1947 1948 1949 1950 1951 1952 1953 1954 | - - - - - - - - + + + + + + + + - - + + + + + + + + + + + + + + + + + + - + + | ifeq ($dae_is_ode,1) $1_ode.r: $1_dae.r echo Copying $1_dae.r to $1_ode.r cp $1_dae.r $1_ode.r endif |
︙ |