ngspice/src/frontend/where.c

48 lines
959 B
C
Raw Normal View History

2000-04-27 22:03:57 +02:00
/**********
Copyright 1990 Regents of the University of California. All rights reserved.
Author: 1985 Wayne A. Christopher, U. C. Berkeley CAD Group
**********/
#include "ngspice/ngspice.h"
#include "ngspice/cpdefs.h"
#include "ngspice/ftedefs.h"
#include "ngspice/dvec.h"
2000-04-27 22:03:57 +02:00
#include "ftehelp.h"
#include "ngspice/hlpdefs.h"
2000-04-27 22:03:57 +02:00
src/Makefile.am src/help.c src/main.c src/circuit/Makefile.am src/circuit/ifnewuid.c src/frontend/Makefile.am src/frontend/aspice.c src/frontend/circuits.h src/frontend/com_display.c src/frontend/com_hardcopy.c src/frontend/commands.c src/frontend/commands.h src/frontend/cpitf.c src/frontend/debugcom.c src/frontend/device.c src/frontend/diff.c src/frontend/display.c src/frontend/dotcards.c src/frontend/fourier.c src/frontend/inp.c src/frontend/inpcom.c src/frontend/linear.c src/frontend/misccoms.c src/frontend/mw_coms.c src/frontend/nutinp.c src/frontend/options.c src/frontend/outitf.c src/frontend/parse.c src/frontend/postcoms.c src/frontend/postsc.c src/frontend/rawfile.c src/frontend/resource.c src/frontend/runcoms.c src/frontend/runcoms2.c src/frontend/shyu.c src/frontend/spec.c src/frontend/spiceif.c src/frontend/subckt.c src/frontend/vectors.c src/frontend/where.c src/frontend/plotting/Makefile.am src/frontend/plotting/agraf.c src/frontend/plotting/graf.c src/frontend/plotting/plotcurv.c src/frontend/plotting/plotit.c src/frontend/plotting/x11.c src/frontend/plotting/xgraph.c src/include/Makefile.am src/maths/cmaths/cmath4.c src/misc/terminal.c src/misc/terminal.h src/parser/cshpar.c src/parser/front.c src/parser/front.h src/parser/history.c src/parser/history.h src/parser/modify.c src/parser/var2.c src/parser/var2.h src/parser/variable.c: Refactoring of frontend code. * src/include/ftehelp.h src/include/variable.h: Moved into frontend directory. * src/include/cpdefs.h src/include/cpextern.h src/include/ftedefs.h src/include/plot.h: Updates.
2000-06-27 18:09:02 +02:00
#include "circuits.h"
#include "where.h"
2000-04-27 22:03:57 +02:00
void
2010-06-23 19:40:56 +02:00
com_where(wordlist *wl)
2000-04-27 22:03:57 +02:00
{
char *msg;
2010-11-16 21:38:24 +01:00
NG_IGNORE(wl);
2010-11-16 20:11:32 +01:00
2010-01-17 17:40:22 +01:00
/*CDHW typing where with no current circuit caused crashes CDHW*/
if (!ft_curckt) {
fprintf(cp_err, "There is no current circuit\n");
return; }
2010-01-17 17:40:22 +01:00
else if (ft_curckt->ci_ckt != NULL) {
fprintf(cp_err, "No unconverged node found.\n");
return;
}
2011-04-27 20:30:15 +02:00
msg = ft_sim->nonconvErr (ft_curckt->ci_ckt, 0);
printf("%s", msg);
/*
2000-04-27 22:03:57 +02:00
if (ft_curckt) {
2011-04-27 20:30:15 +02:00
msg = ft_sim->nonconvErr (ft_curckt->ci_ckt, 0);
2000-04-27 22:03:57 +02:00
fprintf(cp_out, "%s", msg);
} else {
fprintf(cp_err, "Error: no circuit loaded.\n");
}
*/
2000-04-27 22:03:57 +02:00
}