CFD Online Discussion Forums

CFD Online Discussion Forums (
-   FLUENT (
-   -   Qestion about 'DEFINE_ADJUST' (

braket February 6, 2007 23: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 16:37.