diff --git a/src/frontend/where.c b/src/frontend/where.c index c8e3c4f99..c0ef2597f 100644 --- a/src/frontend/where.c +++ b/src/frontend/where.c @@ -18,10 +18,28 @@ com_where(void) { char *msg; + /*CDHW typing where with no current circuit caused crashes CDHW*/ + if (!ft_curckt) { + fprintf(cp_err, "There is no current circuit\n"); + return; } + else if (ft_curckt->ci_ckt != "") { + fprintf(cp_err, "No unconverged node found.\n"); + return; + } + msg = (*ft_sim->nonconvErr)((void *) (ft_curckt->ci_ckt), 0); + + printf("%s", msg); + + + + +/* if (ft_curckt) { msg = (*ft_sim->nonconvErr)((void *) (ft_curckt->ci_ckt), 0); fprintf(cp_out, "%s", msg); } else { fprintf(cp_err, "Error: no circuit loaded.\n"); } + +*/ }