CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   FLUENT (https://www.cfd-online.com/Forums/fluent/)
-   -   RP_set_integer (https://www.cfd-online.com/Forums/fluent/37274-rp_set_integer.html)

Rafael July 14, 2005 15:57

RP_set_integer
 
hi, i need set a variable in the Scheme.sch, but in Linux it doens't work:

RP_Set_Integer("newfdd",newfd);

Has anyone suggestions ?

Angelo Sozzi July 14, 2005 17:42

Re: RP_set_integer
 
You swaped the UDF and Sheme environment

RP_Set_Integer.... can only be used in UDF's (set scheme vars from within the C environment.

The equivalent Scheme command would be (rpsetvar 'newfdd newfd)

but I don't know what newfd and newfdd are (and neither does fluent it seems) so they need to be defined first

Rafael July 15, 2005 08:14

Re: RP_set_integer
 
I use UDF and Scheme, the problem is on Linux. On windows it works fine, but on Linux RP_set_integer doesn't work.

Rafael July 15, 2005 09:59

Re: RP_set_integer
 
thank you angelo, I found out the problem. I was using (set! old-flagd (rp-var-value'oldfd))

in my scheme, but on linux rp-var-value don't work, but:

(set! old-flagd (%rpgetvar 'oldfd)) works fine.


All times are GMT -4. The time now is 18:16.