|
[Sponsors] |
March 28, 2001, 05:52 |
array in UDF
|
#1 |
Guest
Posts: n/a
|
Hi everybody, in my UDF i use the following piece of code: #include "udf.h" #define N 20
double AG[N][N]; DEFINE_PROFILE(flux_surf,t,nv) { int i,j; for(i=0;i<N;i++) for(j=0;j<N;j++) AG[j][i] = 0.0; } it is interpreted whitout problem, but when initializing, i receive this message: Chip: invalid opcode 0: pc=480 and other times the FATAL ERROR!!! 1)tatat tititi 2)batata bititi 3).... 4).... this came when initializing my array: i made several "printf()" in the code , and it stoped at this moment. please help me: how can i have my array initialized? i noticed that malloc didn't work for global variables! thanks |
|
November 7, 2013, 02:15 |
|
#2 |
Member
Georgy
Join Date: Apr 2011
Location: Russia
Posts: 32
Rep Power: 15 |
Kamal,
did you solve this problem? |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
UDF parallel error: chip-exec: function not found????? | shankara.2 | Fluent UDF and Scheme Programming | 1 | January 16, 2012 23:14 |
UDF for Species Mass Fraction Gradient *IN SPECIFIC ZONE * -- e.g. along axis of sym. | ksiegs2 | Fluent UDF and Scheme Programming | 0 | February 27, 2011 13:55 |
can we initialize an array in UDF? | blueberry | Fluent UDF and Scheme Programming | 2 | April 14, 2009 13:00 |
Initialising a 2-Dimensional Array in a UDF | morourke | Fluent UDF and Scheme Programming | 0 | April 14, 2009 12:55 |
UDF array problem | Malachy | FLUENT | 0 | February 10, 2009 11:41 |