Revert "Enable linearizing all vectors, when none is given, with or without np statement."

This reverts commit 8639a053a3.
This commit is contained in:
Holger Vogt 2026-03-16 13:15:40 +01:00
parent f7ef88b637
commit e95f19af46
1 changed files with 1 additions and 10 deletions

View File

@ -148,7 +148,6 @@ com_linearnp(wordlist* wl)
struct dvec* lin;
int expo, len, i;
wordlist* wlnew;
bool nponly = FALSE;
if (!plot_cur || !plot_cur->pl_typename || !ciprefix("tran", plot_cur->pl_typename)) {
fprintf(cp_err, "Error: plot must be a transient analysis\n");
@ -247,14 +246,7 @@ com_linearnp(wordlist* wl)
newtime->v_realdata[i] = d;
new->pl_scale = new->pl_dvecs = newtime;
/* check if "np=" is the only entry in wl.
If yes, linearize all vectors */
if (wl && ciprefix("np=", wl->wl_word) && wl->wl_next == NULL) {
nponly = TRUE;
}
if (wl && !nponly) {
/* check for vectors given in the command line */
if (wl) {
while (wl) {
if (ciprefix("np=", wl->wl_word)) {
wl = wl->wl_next;
@ -272,7 +264,6 @@ com_linearnp(wordlist* wl)
}
}
else {
/* linearize all vectors of the current plot */
for (v = old->pl_dvecs; v; v = v->v_next) {
if (v == old->pl_scale)
continue;