From ce9f23f7af180a7188b3e07c6e4cb1e70cd21cc3 Mon Sep 17 00:00:00 2001 From: h_vogt Date: Mon, 31 Jul 2017 07:56:05 +0200 Subject: [PATCH] outitf.c, restrict vector length to 1, the minimum needed --- src/frontend/outitf.c | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/src/frontend/outitf.c b/src/frontend/outitf.c index 1047ca6d6..e4a56e5b4 100644 --- a/src/frontend/outitf.c +++ b/src/frontend/outitf.c @@ -1058,6 +1058,12 @@ plotInit(runDesc *run) static inline int vlength2delta(int l) { +#ifdef SHARED_MODULE + if (savenone) + /* We need just a vector length of 1 */ + return 1; +#endif + if (l < 50000) return 512; if (l < 200000) @@ -1078,7 +1084,8 @@ plotAddRealValue(dataDesc *desc, double value) struct dvec *v = desc->vec; #ifdef SHARED_MODULE - if(savenone) + if (savenone) + /* always save new data to same location */ v->v_length = 0; #endif