problem with coupling UDFs
Hello,
I wrote a UDF and it is compiled and loaded without any error, but there seems to be a deficiency as it is not ending in the result i'm expecting. I have a DEFINE_PROFILE macro with a begin and end loop and there's another UDF called "void transformation (Thread *f_thread)" which i introduced in my udf to store some vectors in F_UDMI. but my problem is that i can not couple these UDFs when i'm compiling. I think i need something like if (RP_Get_Integer (...)) transformation (f_thread) in the first udf but i have no idea how to trigger the coupling as i'm inexperienced in this subject. Thanks in Advance.:) |
Quote:
|
Quote:
DEFINE_PROFILE(HF,f_thread,index) /*declaring all variables*/ if (RP_Get_Integer(“needing_transformation")==1) transformation (f_thread) { .. .. .. } void transformation(Thread *f_thread) { .. .. .. } but when i'm trying to compile this Fluent says: there is a missing ';' before '{' in my if line !! but i'm sure after if we shouldn't use semi colon, should we?? and I'm very sorry but do you have any idea how should i assign "needing_transformation" a value like 1 to link these two, since i don't know what RP_Integer.. really does although i've read a lot about it.. Thank you so so so much :) |
All times are GMT -4. The time now is 09:26. |