fix typos
This commit is contained in:
parent
3be143423a
commit
06229c2a46
|
|
@ -86,9 +86,8 @@ extern int OSDIparam(int param, IFvalue *value, GENinstance *instPtr,
|
|||
OsdiRegistryEntry *entry = osdi_reg_entry_inst(instPtr);
|
||||
const OsdiDescriptor *descr = entry->descriptor;
|
||||
|
||||
if (param > (int)descr->num_instance_params) {
|
||||
|
||||
// special handleing for temperature parameters
|
||||
if (param >= (int)descr->num_instance_params) {
|
||||
// special handling for temperature parameters
|
||||
OsdiExtraInstData *inst = osdi_extra_instance_data(entry, instPtr);
|
||||
if (param == (int)entry->dt) {
|
||||
inst->dt = value->rValue;
|
||||
|
|
|
|||
|
|
@ -52,10 +52,10 @@ static int handle_init_info(OsdiInitInfo info, const OsdiDescriptor *descr) {
|
|||
|
||||
/*
|
||||
* The OSDI instance data contains the `node_mapping` array.
|
||||
* Here an index is stored for each node. This function initalizes this array
|
||||
* with its indecies {0, 1, 2, 3, .., n}.
|
||||
* Here an index is stored for each node. This function initializes this array
|
||||
* with its indicies {0, 1, 2, 3, .., n}.
|
||||
* The node collapsing information generated by setup_instance is used to
|
||||
* replace these initial indecies with those that a node is collapsed into.
|
||||
* replace these initial indicies with those that a node is collapsed into.
|
||||
* For example collapsing nodes i and j sets node_mapping[i] = j.
|
||||
*
|
||||
* Terminals can never be collapsed in ngspice because they are allocated by
|
||||
|
|
|
|||
Loading…
Reference in New Issue