From 48ee43b2f4d49324798509b6358b86b3485d20a9 Mon Sep 17 00:00:00 2001 From: Eduardo DAVILA Date: Thu, 1 Aug 2019 16:35:49 +0200 Subject: [PATCH] #3290 BBTK Feature New Normal - VectorFilterDounble invert option 9 --- packages/std/src/bbstdVectorFilterDouble.cxx | 34 ++++++++++++++++---- packages/std/src/bbstdVectorFilterDouble.h | 2 +- 2 files changed, 29 insertions(+), 7 deletions(-) diff --git a/packages/std/src/bbstdVectorFilterDouble.cxx b/packages/std/src/bbstdVectorFilterDouble.cxx index 63d2271..ffed94a 100644 --- a/packages/std/src/bbstdVectorFilterDouble.cxx +++ b/packages/std/src/bbstdVectorFilterDouble.cxx @@ -279,7 +279,6 @@ void VectorFilterDouble::Process() if (bbGetInputType()==8) // order all vectors using as base the vector In0 { -printf("EED VectorFilterDouble::Process Type 8 Start\n"); double tmp; int i,j,ii,sizeII; sizeII=pLstVec.size(); @@ -305,17 +304,40 @@ printf("EED VectorFilterDouble::Process Type 8 Start\n"); tmp = (*pLstVecOut[ii])[i]; (*pLstVecOut[ii])[i] = (*pLstVecOut[ii])[j]; (*pLstVecOut[ii])[j] = tmp; -// tmp=Out0[i]; Out0[i]=Out0[j]; Out0[j]=tmp; - } - } + } // for ii + } // if < } // for j } // for i -printf("EED VectorFilterDouble::Process Type 8 End\n"); - } // Type 8 + if (bbGetInputType()==9) // Invert vectors + { + double tmp; + int i,j,ii,sizeII; + sizeII=pLstVec.size(); + + int size=In0.size(); + int size2=size/2; + for (i=0;i,""); BBTK_INPUT(VectorFilterDouble,In1,"Input vector",std::vector,""); -- 2.47.1