CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > ANSYS > FLUENT

array in UDF

Register Blogs Members List Search Today's Posts Mark Forums Read

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   March 28, 2001, 04:52
Default array in UDF
  #1
Kamal
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
  Reply With Quote

Old   November 7, 2013, 01:15
Default
  #2
Member
 
Georgy
Join Date: Apr 2011
Location: Russia
Posts: 32
Rep Power: 15
gera is on a distinguished road
Kamal,

did you solve this problem?
gera is offline   Reply With Quote

Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are On


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 22: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 12:55
can we initialize an array in UDF? blueberry Fluent UDF and Scheme Programming 2 April 14, 2009 12:00
Initialising a 2-Dimensional Array in a UDF morourke Fluent UDF and Scheme Programming 0 April 14, 2009 11:55
UDF array problem Malachy FLUENT 0 February 10, 2009 10:41


All times are GMT -4. The time now is 05:19.