SMath Studio Forum
»
SMath Studio
»
Bugs & Problems
»
Strange failure (a simple calculation changes some global status?)
Rank: Advanced Member Groups: Registered
Joined: 17/01/2013(UTC) Posts: 296 Location: Khabarovsk, Russia Was thanked: 151 time(s) in 107 post(s)
|
coolprop.sm (5kb) downloaded 30 time(s).This file uses CoolProp wrapper plugin to get some water property. But between two invocations, a calculation is made that changes some state, so that after it any CoolProp calculation fails. May it be that A() somehow mangles, say, FPU state (flags)? Like exeption masking, or somesuch? Edited by moderator 23 April 2016 12:10:08(UTC)
| Reason: marked as solved |
Best regards, Mike Kaganski |
1 user thanked mikekaganski for this useful post.
|
|
|
Rank: Advanced Member Groups: Registered, Advanced Member Joined: 13/01/2012(UTC) Posts: 2,648 Location: Italy Was thanked: 1331 time(s) in 876 post(s)
|
Confirmed. |
If you like my plugins consider to support SMath Studio buying a plan; to offer me a coffee: paypal.me/dcprojects |
|
|
|
Rank: Guest
Groups: Registered
Joined: 04/07/2015(UTC) Posts: 6,866 Was thanked: 981 time(s) in 809 post(s)
|
Originally Posted by: mikekaganski This file uses CoolProp wrapper plugin to get some water property. But between two invocations, a calculation is made that changes some state, so that after it any CoolProp calculation fails.
May it be that A() somehow mangles, say, FPU state (flags)? Like exeption masking, or somesuch? I have a good idea about this plugin, having programmed WaterSteam in Visual basic years ago. The plugin may be OK by itself but it suffers from the Smath silent killer bug. Naturally, getting some properties uses some of the related constants. Then, getting next properties does not renew constants previously used, and you get any zombie result. Nothing to do untill this bug is cleared. The "clear" function works, does not work. If you work with WaterSteam, better get the freeware from "Katmar" [piece of gold]. Same formulation than IAPWS [quite monkey business inside IAPWS]. I programmed them in Mahcad 11, collab Fred was very happy. Jean
|
1 user thanked Jean Giraud for this useful post.
|
|
|
Rank: Guest
Groups: Registered
Joined: 04/07/2015(UTC) Posts: 6,866 Was thanked: 981 time(s) in 809 post(s)
|
Please don't reply: do this, do that Smath does NOT do first, I don't have to do what it should do.
|
1 user thanked Jean Giraud for this useful post.
|
|
|
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)
|
|
2 users thanked Andrey Ivashov for this useful post.
|
on 02/04/2016(UTC), on 02/04/2016(UTC)
|
|
Rank: Advanced Member Groups: Registered, Advanced Member Joined: 13/01/2012(UTC) Posts: 2,648 Location: Italy Was thanked: 1331 time(s) in 876 post(s)
|
Jean, thank you for pointing out the different behavior of Clear about built-in constants. My fault, was in my knowledge and I've forget to document it. I've updated the plugin (SS 0.97.5346 and later), now the description of Clear(...) reflects also this behavior. Originally Posted by: Andrey Ivashov Once again, thank you very much Andrey. Edited by user 02 April 2016 01:00:41(UTC)
| Reason: Not specified |
If you like my plugins consider to support SMath Studio buying a plan; to offer me a coffee: paypal.me/dcprojects |
1 user thanked Davide Carpi for this useful post.
|
|
|
SMath Studio Forum
»
SMath Studio
»
Bugs & Problems
»
Strange failure (a simple calculation changes some global status?)
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.