Artifact 18547a7f99dc5e8a1a1658ebc695e6ab853f13264f67fcd862a89670b62d591e:
- Executable file mtt/bin/trans/abg_m2a4c — part of check-in [af3953deae] at 2021-03-01 11:39:42 on branch master — Cleanup repository after cvs2git conversion. (user: jeff@gridfinity.com, size: 585) [annotate] [blame] [check-ins using] [more...]
- Executable file mttroot/mtt/bin/trans/abg_m2a4c — part of check-in [9928b68158] at 2000-12-28 12:29:52 on branch origin/master — Initial revision (user: gawthrop@users.sourceforge.net, size: 585) [annotate] [blame] [check-ins using]
#! /bin/sh
######################################
##### Model Transformation Tools #####
######################################
# Bourne shell script: abg_m2a4c
#
# Acausal bond graph to ascend format
infofile='mtt_info.txt'
errorfile='mtt_error.txt'
# Remove the old log file
rm -f abg_m2a4c_m.log
rm -f $1_abg.a4c
#Inform user
echo "Creating $1_abg.a4c"
# Use matrix manipulation to accomplish the transformation
octave -q << EOF >$1_abg.a4c
ABG = $1_abg;
name = "$1";
abg_m2a4c(ABG,name);
EOF
if [ "$info" = "info" ]; then
cat $infofile
fi