|
[Sponsors] |
July 20, 2016, 07:59 |
for loop compile error
|
#1 |
Member
amirhossein
Join Date: Jul 2014
Location: Canada
Posts: 81
Rep Power: 12 |
Hi
can i use for loops in udf ? like this : for (int j = 10 ; j >= 0 ; j = j - 1) { .......; } errors : error C2143: syntax error : missing ';' before 'type' error C2143: syntax error : missing ')' before 'type' error C2065: 'j' : undeclared identifier warning C4552: '>=' : operator has no effect; expected operator with side-effect
__________________
amirhosseinfardi94@gmail.com |
|
July 20, 2016, 08:17 |
|
#2 | |
Senior Member
Bruno Machado
Join Date: May 2014
Posts: 271
Rep Power: 13 |
Quote:
if (j >= 0) { ... j--; } |
||
Tags |
compile a udf, fluent, udf |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Building OpenFOAM1.7.0 from source | ata | OpenFOAM Installation | 46 | March 6, 2022 14:21 |
Pressure outlet boundary condition | rolando | OpenFOAM Running, Solving & CFD | 62 | September 18, 2017 07:45 |
OpenFOAM without MPI | kokizzu | OpenFOAM Installation | 4 | May 26, 2014 10:17 |
Ansys Fluent 13.0 UDF compilation problem in Window XP (32 bit) | Yogini | Fluent UDF and Scheme Programming | 7 | October 3, 2012 08:24 |
DecomposePar links against liblamso0 with OpenMPI | jens_klostermann | OpenFOAM Bugs | 11 | June 28, 2007 18:51 |