Preliminary fix to enable the core model with hysteresis.
Make error message more verbose.
This commit is contained in:
parent
fbebfb708c
commit
8f4e712a11
|
|
@ -567,9 +567,13 @@ MIF_INP2A (
|
||||||
|
|
||||||
param_info = &(DEVices[type]->DEVpublic.param[i]);
|
param_info = &(DEVices[type]->DEVpublic.param[i]);
|
||||||
|
|
||||||
if(mdfast->param[i]->is_null) {
|
/* Don't check for model iron core with hysteresis (type 110) due to always missing defaults */
|
||||||
if(! param_info->has_default) {
|
/* FIXME: preliminary, bug is generated elsewhere */
|
||||||
LITERR("Parameter on model has no default");
|
if (mdfast->param[i]->is_null && type != 110) {
|
||||||
|
if (!param_info->has_default) {
|
||||||
|
char* emessage = tprintf("Parameter %s on model %s has no default", param_info->name, mdfast->gen.GENmodName);
|
||||||
|
LITERR(emessage);
|
||||||
|
tfree(emessage);
|
||||||
gc_end();
|
gc_end();
|
||||||
return;
|
return;
|
||||||
} else if((param_info->is_array) && (! param_info->has_conn_ref)) {
|
} else if((param_info->is_array) && (! param_info->has_conn_ref)) {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue