/[ascend]/trunk/base/generic/solver/slv_interface.c
ViewVC logotype

Diff of /trunk/base/generic/solver/slv_interface.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1251 by johnpye, Tue Jan 23 06:13:51 2007 UTC revision 1252 by johnpye, Sat Jan 27 06:29:17 2007 UTC
# Line 46  Line 46 
46  #include <utilities/ascMalloc.h>  #include <utilities/ascMalloc.h>
47  #include <utilities/readln.h> /* you wot? */  #include <utilities/readln.h> /* you wot? */
48    
49    /* DISABLED -- JP
50  #include <compiler/plot.h>  #include <compiler/plot.h>
51    */
52    
53  #include "slv_client.h"  #include "slv_client.h"
54  #include "calc.h"  #include "calc.h"
# Line 86  Line 88 
88  #define C_ITERATE               22  #define C_ITERATE               22
89  #define C_SOLVE                 23  #define C_SOLVE                 23
90  #define C_DUMP_SYSTEM           25  #define C_DUMP_SYSTEM           25
91  #define C_PLOT                  26  /* #define C_PLOT                  26 */
92    
93  static struct command_list_t {  static struct command_list_t {
94     char *name;     char *name;
# Line 127  static struct command_list_t { Line 129  static struct command_list_t {
129     { "resolve" , "Re-solves system" , C_RESOLVE } ,     { "resolve" , "Re-solves system" , C_RESOLVE } ,
130     { "iterate" , "Perform one iteration" , C_ITERATE } ,     { "iterate" , "Perform one iteration" , C_ITERATE } ,
131     { "solve" , "Attempts to solve entire system" , C_SOLVE } ,     { "solve" , "Attempts to solve entire system" , C_SOLVE } ,
132     { "dump system" , "Dump solve system to a file" , C_DUMP_SYSTEM } ,     { "dump system" , "Dump solve system to a file" , C_DUMP_SYSTEM }/* ,
133     { "plot" , "Plots the solve instance" , C_PLOT }     { "plot" , "Plots the solve instance" , C_PLOT } */
134  };  };
135  #define NCOMMANDS array_length(commands)  #define NCOMMANDS array_length(commands)
136    
# Line 780  static boolean do_command(int command) Line 782  static boolean do_command(int command)
782           break;           break;
783        }        }
784    
785        case C_PLOT: {  /*      case C_PLOT: {
786           char args[50];           char args[50];
787           static char plotfilename[] = "~/ascend.plot";           static char plotfilename[] = "~/ascend.plot";
788    
# Line 793  static boolean do_command(int command) Line 795  static boolean do_command(int command)
795           readln(args,sizeof(args));           readln(args,sizeof(args));
796           plot_prepare_file(inst,plotfilename);           plot_prepare_file(inst,plotfilename);
797           PRINTF("Plot left in %s\n",plotfilename);           PRINTF("Plot left in %s\n",plotfilename);
798           break;           break;
799        }        }*/
800     }     }
801     return(TRUE);     return(TRUE);
802  }  }

Legend:
Removed from v.1251  
changed lines
  Added in v.1252

john.pye@anu.edu.au
ViewVC Help
Powered by ViewVC 1.1.22