CFD Online Discussion Forums

CFD Online Discussion Forums (http://www.cfd-online.com/Forums/)
-   FLUENT (http://www.cfd-online.com/Forums/fluent/)
-   -   Qestion about 'DEFINE_ADJUST' (http://www.cfd-online.com/Forums/fluent/43634-qestion-about-define_adjust.html)

braket February 6, 2007 22:59

Qestion about 'DEFINE_ADJUST'
 
In my case there are two domain (d=1 and d=2). I want to modify some variables in every iteration. In the following, which is right or better? thank you. 1. DEFINE_ADJUST(name,d) {Thread *t; if (d==1) {...} else {...} ...} 2.DEFINE_ADJUST(name,d) {Thread *t1=Lookup_Thread(domain,1); Thread *t2=Lookup_Thread(domain,2); begin_c-loop(c,t1){...}end_c_loop(c,t1) begin_c_loop(c,t2){...}end_c_loop(c,t2) ...}



All times are GMT -4. The time now is 10:44.