non-integer subscript expression: float
Hi,
Being a total rookie at programming I am trying to set free steam temperature as a function of flow time. While interpreting UDF i get this error: Code:
non-integer subscript expression: float Code:
F_PROFILE(f, thread, index) = tab[s]; Code:
#include "udf.h" How else can I specify array index? Does code look ok? EDIT I have changed "real s" to "int s" and now fluent do interpret UDF. Does the rest looks fine? |
You might need to change the code if the index of tab corresponds to time step rather than flow time. Also you need to avoid index out of range.
Code:
#include "udf.h" |
Thanks a lot!
|
All times are GMT -4. The time now is 15:02. |