Jump to content

Piero Favero

Members
  • Content Count

    4
  • Joined

  • Last visited

Community Reputation

0 Neutral

About Piero Favero

  • Rank
    Newbie

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

  1. Thank you Carsten! I move it to the helpdesk then! Piero
  2. Hi! I'd like to use some math functions that we created for other workflows. They are in DLLs and I'd like to just include them and then call into the feature definition. Is it possible? This way I don't have to maintain multiple versions of the same thing! Thank you!! Piero
  3. Yes, sure! This was working! Now I went around the issue, so I don't really need support to sort it out. I would just like to understand if there is some specific case in which you cannot do something like: a = a + b Or if this is always allowed. function lininterpolSAC (Farray2D<double> SAC, double point_x, integer pos) : double integer i(0) double interpolatedvalue () if (point_x != 0) While (SAC.at(i , 0) <= point_x) i = i + 1 endwhile Else i = 1 Endif interpolatedvalue = SAC.at(i-1, pos) + (point_x - SAC.at(i - 1, 0)) / (SAC.at(i, 0) - SAC.at(i - 1, 0)) * (SAC.at(i, pos) - SAC.at(i-1, pos)) return (interpolatedvalue) Endfunction Thank you!!
  4. I have a While loop where an index i needs to be incremented by 1 at each loop. I used the notation i=i+1 as like more this clear notation. Funny enough the loop worked fine for some days but since today my index i refuses to increment (!!!) and the loop iterates endlessly. I know it's weird, but I am sure. it worked fine until this morning!! I didn't touch this function at all! I replaced i=i+1 with: i+=1 and now it works 😞 😞 I also noted that within the same function, since today, another instruction i=1 was systematically ignored and i remained at 0. Just a code like: i=1 echo ("i = " +i) would return i=0 😞 😞 For a while I got the feeling that in-place operations did not work with features programming. or they worked "when they wanted". But today, in the same feature, I tested: Fdouble test (0) test = test + 2 test = test * 2 echo ("test = " + test) and I got a nice 4.... So how come i=i+1 does not work? Thanks! Piero
×
×
  • Create New...