Patches provided by Carsten Schoenert: Misspellings, File access
This commit is contained in:
parent
88844ba74d
commit
ace932e1b9
|
|
@ -92,7 +92,7 @@ c but avoids most of the well-known defects of this type of generator
|
||||||
c by, in effect, generating x[n+k] from x[n] as defined by the
|
c by, in effect, generating x[n+k] from x[n] as defined by the
|
||||||
c sequence above, where k is chosen randomly in 1 ... 128 with the
|
c sequence above, where k is chosen randomly in 1 ... 128 with the
|
||||||
c help of a subsidiary Tauseworth-type generator.
|
c help of a subsidiary Tauseworth-type generator.
|
||||||
c For the positve integer generator irandm, the less
|
c For the positive integer generator irandm, the less
|
||||||
c significant digits are more random than is usual for a Lehmer
|
c significant digits are more random than is usual for a Lehmer
|
||||||
c generator. The last n<31 digits do not repeat with a period of 2^n.
|
c generator. The last n<31 digits do not repeat with a period of 2^n.
|
||||||
c This is also true of the unsigned integer generator urandm, but less
|
c This is also true of the unsigned integer generator urandm, but less
|
||||||
|
|
|
||||||
|
|
@ -54,7 +54,7 @@ static int write_param_info(IFparm **dst, const OsdiDescriptor *descr,
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
errRtn = "get_osdi_info";
|
errRtn = "get_osdi_info";
|
||||||
errMsg = tprintf("Unkown OSDI type %d for parameter %s!",
|
errMsg = tprintf("Unknown OSDI type %d for parameter %s!",
|
||||||
para->flags & PARA_TY_MASK, para->name[0]);
|
para->flags & PARA_TY_MASK, para->name[0]);
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -43,11 +43,11 @@ static int handle_init_info(OsdiInitInfo info, const OsdiDescriptor *descr) {
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
default:
|
default:
|
||||||
printf("Unkown OSDO init error code %d!\n", err->code);
|
printf("Unknown OSDO init error code %d!\n", err->code);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
free(info.errors);
|
free(info.errors);
|
||||||
errMsg = tprintf("%i errors occurred during initalization", info.num_errors);
|
errMsg = tprintf("%i errors occurred during initialization", info.num_errors);
|
||||||
return (E_PRIVATE);
|
return (E_PRIVATE);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -99,7 +99,7 @@ void cm_d_osc(ARGS)
|
||||||
table[i].ctl = PARAM(cntl_array[i]);
|
table[i].ctl = PARAM(cntl_array[i]);
|
||||||
table[i].freq = PARAM(freq_array[i]);
|
table[i].freq = PARAM(freq_array[i]);
|
||||||
if (table[i].freq <= 0) {
|
if (table[i].freq <= 0) {
|
||||||
cm_message_printf("Error: frequency %g is not positve, "
|
cm_message_printf("Error: frequency %g is not positive, "
|
||||||
"value replaced by 1e-16.",
|
"value replaced by 1e-16.",
|
||||||
table[i].freq);
|
table[i].freq);
|
||||||
table[i].freq = 1.0e-16;
|
table[i].freq = 1.0e-16;
|
||||||
|
|
|
||||||
|
|
@ -106,7 +106,7 @@ void cm_d_pwm(ARGS)
|
||||||
table[i].ctl = PARAM(cntl_array[i]);
|
table[i].ctl = PARAM(cntl_array[i]);
|
||||||
table[i].dc = PARAM(dc_array[i]);
|
table[i].dc = PARAM(dc_array[i]);
|
||||||
if (table[i].dc <= 0) {
|
if (table[i].dc <= 0) {
|
||||||
cm_message_printf("Error: duty cycle %g is not positve, "
|
cm_message_printf("Error: duty cycle %g is not positive, "
|
||||||
"value replaced by 0.01.",
|
"value replaced by 0.01.",
|
||||||
table[i].dc);
|
table[i].dc);
|
||||||
table[i].dc = 0.01;
|
table[i].dc = 0.01;
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue