|
[Sponsors] |
March 11, 2019, 17:54 |
UDF interpreted problem
|
#1 |
New Member
Join Date: Nov 2018
Posts: 14
Rep Power: 8 |
Hello guys,
I have a quick question. Is there a reason of why i can't use "c-structured" variables on my interpreted UDF codes? I am using a 4core parallel fluent. Interpreting, then, fluent is giving the error ' Error: ~/*.c line 43: declaration: invalid opcode pop.char ' as you can see in the attachment. In the line 43 I have the c-structured variable. |
|
March 11, 2019, 21:08 |
|
#2 |
Senior Member
Alexander
Join Date: Apr 2013
Posts: 2,363
Rep Power: 34 |
try to compile your code instead of interpret
best regards |
|
March 14, 2019, 09:47 |
|
#3 |
Senior Member
Join Date: Nov 2013
Posts: 1,965
Rep Power: 27 |
Or show a little of your code, especially around line 43.
For you, "c-structured variable" seems like a normal term, but I don't understand what you mean with this, and Google does not help. Don't describe your code if you want help with it, just show it! |
|
April 13, 2019, 11:04 |
|
#4 |
New Member
Join Date: Nov 2018
Posts: 14
Rep Power: 8 |
Thank you for your fast answer.
The point is that I always compiled my code on a serial fluent and now I want to get the analysis faster using a parallel fluent. I saw 2 solution: 1) Interpret the code; 2) Compile it with something like this http://www.afs.enea.it/project/neptu...df/node230.htm but it seems a bit complicated for me, so I wanted to interpret. On the attachment you can see an example of a C-structured. So I want to interpret it, but it shows that error. |
|
April 15, 2019, 01:12 |
|
#5 |
Senior Member
Alexander
Join Date: Apr 2013
Posts: 2,363
Rep Power: 34 |
you've put a picture of your code here.
the thing is you don;t have to if it is too complicated for you best regards |
|
April 17, 2019, 09:57 |
|
#6 |
New Member
Join Date: Nov 2018
Posts: 14
Rep Power: 8 |
I'm just asking what is the problem with that structure in a interpreted code. Is there a solution? If you try to compile just a simple code with a variable like that fluent is not working or at least on my computer is not working.
Thank you and Regards |
|
April 17, 2019, 10:11 |
|
#7 |
Senior Member
Join Date: Nov 2013
Posts: 1,965
Rep Power: 27 |
If you interpret c-code, not everything will work. And, apparently, structs don't work.
The solution is to compile. If you want to do a parallel calculation, you might have to adjust your code a bit. * Sometimes you have to change nothing. * Usually you have to add just a few #if lines. * Sometimes you have to change more, like in the example you gave. You said that if you try to compile just a simple code with a variable like that fluent is not working: this just means that you made a mistake in your code. You have given us not enough information to find out what the mistake is. |
|
April 17, 2019, 10:28 |
|
#8 |
New Member
Join Date: Nov 2018
Posts: 14
Rep Power: 8 |
Okay then, I will try to compile and insert #if statements.
Thank you for your quick answer. Regards. |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
UDF Problem | ozgur | Fluent UDF and Scheme Programming | 18 | January 17, 2016 15:40 |
UDF compiling problem in Flient 6.3 | jeevan kumar | FLUENT | 2 | February 25, 2009 01:43 |
UDF using problem, error happens-heip!! | Michael | FLUENT | 1 | December 9, 2008 08:51 |
parallel UDF problem | kerem | FLUENT | 2 | June 20, 2006 07:56 |
UDF variables F1, y / problem with UDF | Fabian | FLUENT | 6 | June 2, 2003 11:22 |