#include "spice.h"
#include "inpdefs.h"
#include "misc.h"
Go to the source code of this file.
Definition at line 15 of file inpgmod.c.
32 modtmp = ((modtmp)->INPnextModel)) {
33 if (strcmp((modtmp)->INPmodName,name))
42 err = (
char *)
tmalloc((35+strlen(name)) *
sizeof(
char));
44 "Unknown device type for model %s.",name);
47 if (! ((modtmp)->INPmodUsed )) {
49 error = (*(
ft_sim->newModel))( ckt,(modtmp)->INPmodType,
50 &((modtmp)->INPmodfast), (modtmp)->INPmodName);
55 line = ((modtmp)->INPmodLine)->line;
61 while (*parm !=
'\0') {
64 numModelParms); j++) {
66 INPmodType ]).modelParms[j].keyword)) == 0) {
69 INPmodType ]).modelParms[j].
71 error = (*(
ft_sim->setModelParm))(ckt,
72 ((modtmp)->INPmodfast),
82 if (strcmp(parm,
"level") == 0) {
90 temp = (
char *)
tmalloc((40+strlen(parm)) *
sizeof(char));
92 "Unrecognized parameter (%s) - ignored.", parm);
99 (modtmp)->INPmodUsed = 1;
100 (modtmp)->INPmodLine->error = err;
103 return ((
char *)
NULL);
108 err = (
char *)
tmalloc((60+strlen(name)) *
sizeof(
char));
110 "Unable to find definition of model %s - default assumed.",name);