2000-07-16 15:24:58 +02:00
|
|
|
#include <config.h>
|
2011-08-20 19:27:09 +02:00
|
|
|
#include <ngspice/ngspice.h>
|
|
|
|
|
#include <ngspice/bool.h>
|
|
|
|
|
#include <ngspice/wordlist.h>
|
|
|
|
|
#include <ngspice/ftedefs.h>
|
|
|
|
|
#include <ngspice/inpdefs.h>
|
2000-06-27 18:09:02 +02:00
|
|
|
|
|
|
|
|
#include "circuits.h"
|
2000-07-16 15:24:58 +02:00
|
|
|
#include "com_state.h"
|
2011-08-20 19:27:09 +02:00
|
|
|
#include <ngspice/cpextern.h>
|
2000-07-16 15:24:58 +02:00
|
|
|
#include "plotting/plotting.h"
|
2000-04-27 22:03:57 +02:00
|
|
|
|
|
|
|
|
|
|
|
|
|
void
|
|
|
|
|
com_state(wordlist *wl)
|
|
|
|
|
{
|
2010-11-16 21:38:24 +01:00
|
|
|
NG_IGNORE(wl);
|
2010-11-16 20:11:32 +01:00
|
|
|
|
2000-04-27 22:03:57 +02:00
|
|
|
if (!ft_curckt) {
|
|
|
|
|
fprintf(cp_err, "Error: no circuit loaded.\n");
|
|
|
|
|
return;
|
|
|
|
|
}
|
|
|
|
|
fprintf(cp_out, "Current circuit: %s\n", ft_curckt->ci_name);
|
|
|
|
|
if (!ft_curckt->ci_inprogress) {
|
|
|
|
|
fprintf(cp_out, "No run in progress.\n");
|
|
|
|
|
return;
|
|
|
|
|
}
|
|
|
|
|
fprintf(cp_out, "Type of run: %s\n", plot_cur->pl_name);
|
|
|
|
|
fprintf(cp_out, "Number of points so far: %d\n",
|
|
|
|
|
plot_cur->pl_scale->v_length);
|
|
|
|
|
fprintf(cp_out, "(That's all this command does so far)\n");
|
|
|
|
|
return;
|
|
|
|
|
}
|