Rank: Advanced Member Groups: Registered
Joined: 04/07/2010(UTC) Posts: 178 Was thanked: 19 time(s) in 13 post(s)
|
I'm having a problem with a subroutine. A counter is not being incremented. The counter iter is not incremented. The loop works if niter = 1 but not anything more than 1. The screen shot in the pdf file was obtained by using the Esc key to terminate the subroutine. And the results at the bottom were left over from niter = 1, which to me means iter was incremented once. The SMath v0.88 file can be found at: http://smath.info/wiki/G...%2fsoilbearingstress.pdfhttp://smath.info/wiki/G...%2fsoilbearingstress.zipAny suggestions/observations would be appreciated. Thanks. |
Ed |
|
|
|
Rank: Administration Groups: Developers, Registered, Knovel Developers, Administrators, Advanced Member Joined: 11/07/2008(UTC) Posts: 1,616 Was thanked: 1978 time(s) in 666 post(s)
|
Cannot reproduce it. After calculation is finished I see this (mouse hovers the main loop): This error is well known and that's why Numeric Optimization option have added. Please, check out the next screen: Regards.
|
|
|
|
Rank: Advanced Member Groups: Registered
Joined: 04/07/2010(UTC) Posts: 178 Was thanked: 19 time(s) in 13 post(s)
|
Andrey,
I was not familiar with the Optimization feature. I did exactly as you suggested and it works.
Thanks.
|
Ed |
|
|
|
Rank: Administration Groups: Developers, Registered, Knovel Developers, Administrators, Advanced Member Joined: 11/07/2008(UTC) Posts: 1,616 Was thanked: 1978 time(s) in 666 post(s)
|
No problem. Please check also these posts to understand what optimization for: slow and fast growing sheet computation timeProgramming (The Need for Speed! section) As I told you earlier optimization is also implemented in order to avoid errors like "result is above max/min allowed positive/negative number". These errors occurs because the Symbolic Library (SyLib.dll) sometimes makes expressions significantly grow (when simplification is not possible) - you can see screenshots of large expressions in a posts I've linked to. Parts of these large expressions sometimes may look like 124323443323434^234243222342344 or even much greater - that's why SMath Studio shows an error message and stops evaluating. Regards, Andrey Ivashov.
|
|
|
|
Forum Jump
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.