Index: mttroot/mtt/bin/trans/abg2connections_m2dat ================================================================== --- mttroot/mtt/bin/trans/abg2connections_m2dat +++ mttroot/mtt/bin/trans/abg2connections_m2dat @@ -24,9 +24,9 @@ save_header_format_string = ["# Model Transformation Tools\t", ... " -*-octave-*-\n", ... "# Created by abg2connections_m\n", ... str]; -save -ascii ${file} ${sys}_connections; +save -text ${file} ${sys}_connections; EOF Index: mttroot/mtt/bin/trans/cbg_m2dia ================================================================== --- mttroot/mtt/bin/trans/cbg_m2dia +++ mttroot/mtt/bin/trans/cbg_m2dia @@ -37,11 +37,11 @@ ## get connections data: ${sys}_connections ## structure with two cell arrays: head and tail ## the index of each array element is the bond index ## the value of each array element is a component name -load -ascii ${sys}_connections.dat; +load -text ${sys}_connections.dat; con = ${sys}_connections; nibgbonds = length (fieldnames (ibg.bonds)); ncbgbonds = length (con.head); Index: mttroot/mtt/bin/trans/mtt_make_sim ================================================================== --- mttroot/mtt/bin/trans/mtt_make_sim +++ mttroot/mtt/bin/trans/mtt_make_sim @@ -11,10 +11,14 @@ ############################################################### ## Version control history ############################################################### ## $Id$ ## $Log$ +## Revision 1.8 2002/04/28 18:41:27 geraint +## Fixed [ 549658 ] awk should be gawk. +## Replaced calls to awk with call to gawk. +## ## Revision 1.7 2000/05/19 17:47:35 peterg ## Fixed bug in oct version but still needs proper check ## ## Revision 1.6 2000/05/17 17:20:49 peterg ## Fixed bugs with ny>1. Could be made faster by not generating y when @@ -113,18 +117,18 @@ tim = time; ## Create the system input file t1 = [0:N_u-1]*dt; # Create time vector from zero (to fit u); ut = [t1' u']; - save -ascii $1_input.dat ut + save -text $1_input.dat ut ## Create the state file xi = [[1:$Nx]' x0]; #' - save -ascii $1_state.dat xi + save -text $1_state.dat xi ## Create the sympar file - save -ascii $1_simpar.dat dt + save -text $1_simpar.dat dt ## Create the numpar file [n_par,m_par] = size(par); if m_par==1 if n_par!=$Npar @@ -137,11 +141,11 @@ else error(sprintf("Number of parameter columns is %i, should be 1 or 2", m_par)); endif; if !doing_sensitivities - save -ascii $1_numpar.dat ipar + save -text $1_numpar.dat ipar endif; dtime = time-tim; T = [T; num2str(dtime)]; @@ -156,11 +160,11 @@ i_4 = i_1 + n_y + $Nx; else if doing_sensitivities i_2 = 1 + 2*n_y; ipars = [ipar; [sensitivities(i_sim) 1]]; - save -ascii $1_numpar.dat ipars + save -text $1_numpar.dat ipars else i_2 = i_1 + n_y -1; endif endif; Index: mttroot/mtt/bin/trans/octave_ode2odes ================================================================== --- mttroot/mtt/bin/trans/octave_ode2odes +++ mttroot/mtt/bin/trans/octave_ode2odes @@ -11,10 +11,13 @@ ############################################################### ## Version control history ############################################################### ## $Id$ ## $Log$ +## Revision 1.5 2002/05/07 10:13:48 gawthrop +## Files marked by update as out of sync +## ## Revision 1.4 2001/03/30 15:13:58 gawthrop ## Rationalised simulation modes to each return mtt_data ## ## Revision 1.3 2000/05/19 17:47:56 peterg ## Agument to state @@ -37,9 +40,9 @@ mtt_data = $1_ode2odes(x_0,par,simpar); if is_complex(mtt_data) mtt_error("octave_ode2odes: Simulated data is complex - something is wrong!"); mtt_data = real(mtt_data); endif; - save -ascii $1_odes.dat2 mtt_data + save -text $1_odes.dat2 mtt_data EOF mtt_error mtt_error.txt Index: mttroot/mtt/bin/trans/ode2odess_m2dat2 ================================================================== --- mttroot/mtt/bin/trans/ode2odess_m2dat2 +++ mttroot/mtt/bin/trans/ode2odess_m2dat2 @@ -13,10 +13,13 @@ ############################################################### ## Version control history ############################################################### ## $Id$ ## $Log$ +## Revision 1.1 2000/10/17 12:55:29 peterg +## Initial revision +## ## Revision 1.4 2000/10/17 11:07:59 peterg ## *** empty log message *** ## ## Revision 1.3 1998/05/19 19:27:04 peterg ## Zapped all the parameter stuff @@ -90,11 +93,11 @@ x = fsolve('f',x); y = $1_odeo(x,u,t,par); mtt_write(t,x,y,$Nx,$Ny); # Write it out end; -save -ascii $1_odess.dat2 MTT_data +save -text $1_odess.dat2 MTT_data EOF # Now invoke the standard error handling. mtt_error mtt_error.txt