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" |
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; |
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 |
|
|
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 |
|
|
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 |
} |
} |