CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   Fluent UDF and Scheme Programming (https://www.cfd-online.com/Forums/fluent-udf/)
-   -   What is the opposite macro of C_ID(cell_t c,Thread*t)? (https://www.cfd-online.com/Forums/fluent-udf/121355-what-opposite-macro-c_id-cell_t-c-thread-t.html)

upeksa July 26, 2013 06:30

What is the opposite macro of C_ID(cell_t c,Thread*t)?
 
I'm programming an UDF that stores cell index in serial or parallel with different number of nodes.

Using the macro C_ID(cell_t c,Thread*t), I can get in parallel use the same cell index as I had in serial use.
However, when I open my case each time with different number of nodes, I have different cell ID, although the global ID obtained with C_ID is the same.

What I want to do is the opposite of the marco C_ID: given the global cell ID as an input, I want to get the cell ID of my case, which will be different depending on the number of nodes.

Thanks in advance.


All times are GMT -4. The time now is 09:45.