Artifact b5d3952873c9ae0396baddac4a42bdf49ebfc23d764a9ded06559a83f03e62eb:
- Executable file mttroot/mtt/bin/trans/sympar2par_txt2m — part of check-in [d247ecf1a2] at 2000-05-19 13:50:07 on branch origin/master — Added zero second argument - sets params to zero. (user: gawthrop@users.sourceforge.net, size: 537) [annotate] [blame] [check-ins using]
#! /bin/sh ###################################### ##### Model Transformation Tools ##### ###################################### # Bourne shell script: sympar2par_txt2m # Symbolic parameters parameter conversion # Used in lang_header # Copyright (C) 2000 by Peter J. Gawthrop if [ "$2" = "zero" ]; then strip_comments <$1_sympar.txt |\ awk '{ i++; printf(" %s = 0.0;\n", tolower($1)); }' else strip_comments <$1_sympar.txt |\ awk '{ i++; printf(" %s = mttpar(%i);\n", tolower($1), i); }' fi