|
[Sponsors] |
January 17, 2018, 22:21 |
A problem about begin_f_loop
|
#1 |
New Member
BigZ
Join Date: Jan 2018
Posts: 11
Rep Power: 8 |
Hi, guys. recentlly, i have a problem about begin_f_loop. the code is presented below.
************************ int fu = 0; real A = 0; begin_f_loop(f, t) { fu = fu + 1; A = A + 1; M[fu] = fu; Message("fu, M: %e, %e, %e \n",fu, a, M[fu]); } end_f_loop(f, t) **************************** But the value of fu is nearly zero and A is correct. Could anybody tell me why? |
|
January 17, 2018, 23:22 |
|
#2 |
New Member
BigZ
Join Date: Jan 2018
Posts: 11
Rep Power: 8 |
i have found the mistake. The data type of fu declared in Message is wrong. After changing to "d", the displayed value of fu is correct.
|
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
UDF compiling problem | Wouter | Fluent UDF and Scheme Programming | 6 | June 6, 2012 05:43 |
Gambit - meshing over airfoil wrapping (?) problem | JFDC | FLUENT | 1 | July 11, 2011 06:59 |
natural convection problem for a CHT problem | Se-Hee | CFX | 2 | June 10, 2007 07:29 |
Adiabatic and Rotating wall (Convection problem) | ParodDav | CFX | 5 | April 29, 2007 20:13 |
Is this problem well posed? | Thomas P. Abraham | Main CFD Forum | 5 | September 8, 1999 15:52 |