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/)
-   -   Is possible to define an array like UDM in parallel udf? (https://www.cfd-online.com/Forums/fluent-udf/114395-possible-define-array-like-udm-parallel-udf.html)

supliu March 10, 2013 10:09

Arrays in parallel udf
 
hello,
I have a doubt about arrays defined in parallel udf, plz help me.
Below is some of my opinion, but i don't know if that is right or not.

If I defined an array in a parallel udf without using compiling directives such as #if RP_NODE, the host and all the other compute nodes would have an independent copy of the array with the same name. If a node modified some elements of the array, the other nodes would not automatically see the modification.

Am i right?

vasava March 20, 2013 03:29

In my opinion unless you use RP_NODE or RP_HOST the changes in array would not be communicated between nodes and host.


All times are GMT -4. The time now is 11:16.