CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   FLUENT (https://www.cfd-online.com/Forums/fluent/)
-   -   Parallel UDF-UDM Reserveration (https://www.cfd-online.com/Forums/fluent/43261-parallel-udf-udm-reserveration.html)

bernhard January 8, 2007 08:13

Parallel UDF-UDM Reserveration
 
Hello! I running fluent 6.3.21 3ddp on two nodes. Within my compiled UDF, there is a DEFINE_EXECUTE_ON_LOADING routine, which should reserve and name various UDMs. While working on a single CPU that works nicely, however in parallel, the UDF freezes, and/or gives floating point exceptions:

>int start=-1;
:Message("I am %i\n",myid);
:start=Reserve_User_Memory_Vars(10);
:Message("I am %i\n and my starting udms is %i",myid,start);
:Set_User_Memory_Name(0,"heating");
:...

I guess that the problem is that each command can only be executed on specific processes. But on which processes does one need to invoke the two commands? Honestly, searching the UDF manual did not reveal to much information..

Thank you very much, and nice greetings, Bernhard


Philipp_Sch December 2, 2010 12:06

Having exactly the same problem :(
Anybody knows the solution?

Philipp_Sch December 2, 2010 12:49

I figured out the solution in the mean time. The only thing one has to do is add a " return; " at the end of (each) UDF.


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