CFD Online Discussion Forums

CFD Online Discussion Forums (http://www.cfd-online.com/Forums/)
-   Fluent UDF and Scheme Programming (http://www.cfd-online.com/Forums/fluent-udf/)
-   -   Is possible to define an array like UDM in parallel udf? (http://www.cfd-online.com/Forums/fluent-udf/114395-possible-define-array-like-udm-parallel-udf.html)

supliu March 10, 2013 11: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 04: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 12:20.