pushback function for vectors in Fluent UDFs
I'm writing a UDF that involves storing values for cells in a vector where the number of cells is indefinite, therefore I cannot specify the number of elements in my vector when I declare it, instead I initialize it beginning with one element, for example: real myvector;
As my program loops through different cells, if a certain criteria is met by that cell, the parameter of interest is added to the end of the vector. Normally with c programming you would just use the pushback function, ex: myvector.push_back(newvalue);
That should increase the vector size by one and put the value of newvalue into the new element. However, push_back doesn't work with fluent UDF's since fluent has created their own vector.h header file which is included when you include the udf.h header file, and push_back isn't included in this new vector.h header. Does anyone know how to do this operation in a fluent UDF?
|All times are GMT -4. The time now is 16:34.|