home *** CD-ROM | disk | FTP | other *** search
- #!/bin/csh
- # $argv[1]: name of dynamical system class
- # $argv[2-]: codenames of dynamical systems belonging to the class
- #
- set argum =
- echo "Write a file ${argv[1]}_kaos_model.h from a set of dynamical systems"
-
- cat > ${argv[1]}_kaos_model.h <<END
- /*
- ----------------------------------------------------------------
- This file is automatically generated by kwrite_model.
- -----------------------------------------------------------------
- */
- /*
- vector field and function routine pointers
- */
- extern int (*f_p)();
- extern int (*func_p)();
- END
-
- foreach argum ($argv[2-])
- cat >> ${argv[1]}_kaos_model.h <<END
- extern int ${argum}_f(),${argum}_func();
- END
- end
- echo Done!
-