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

RP_set_integer

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   July 14, 2005, 15:57
Default RP_set_integer
  #1
Rafael
Guest
 
Posts: n/a
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 ?
  Reply With Quote

Old   July 14, 2005, 17:42
Default Re: RP_set_integer
  #2
Angelo Sozzi
Guest
 
Posts: n/a
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
  Reply With Quote

Old   July 15, 2005, 08:14
Default Re: RP_set_integer
  #3
Rafael
Guest
 
Posts: n/a
I use UDF and Scheme, the problem is on Linux. On windows it works fine, but on Linux RP_set_integer doesn't work.
  Reply With Quote

Old   July 15, 2005, 09:59
Default Re: RP_set_integer
  #4
Rafael
Guest
 
Posts: n/a
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.
  Reply With Quote

Reply


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



All times are GMT -4. The time now is 13:51.