Welcome Guest! To enable all features please Login. New Registrations are disabled.

Notification

Icon
Error

Login


Options
Go to last post Go to first unread
Offline mikekaganski  
#1 Posted : 30 March 2016 07:17:49(UTC)
mikekaganski


Rank: Advanced Member

Groups: Registered
Joined: 17/01/2013(UTC)
Posts: 296
Man
Russian Federation
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
thanks 1 user thanked mikekaganski for this useful post.
on 02/04/2016(UTC)

Wanna join the discussion?! Login to your SMath Studio Forum forum account. New Registrations are disabled.

Offline Davide Carpi  
#2 Posted : 31 March 2016 20:13:05(UTC)
Davide Carpi


Rank: Advanced Member

Groups: Registered, Advanced Member
Joined: 13/01/2012(UTC)
Posts: 2,648
Man
Italy
Location: Italy

Was thanked: 1331 time(s) in 876 post(s)
Confirmed. Huh
If you like my plugins consider to support SMath Studio buying a plan; to offer me a coffee: paypal.me/dcprojects
Offline Jean Giraud  
#3 Posted : 01 April 2016 04:03:24(UTC)
Jean Giraud

Rank: Guest

Groups: Registered
Joined: 04/07/2015(UTC)
Posts: 6,866
Canada

Was thanked: 981 time(s) in 809 post(s)
Originally Posted by: mikekaganski Go to Quoted Post
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
thanks 1 user thanked Jean Giraud for this useful post.
on 02/04/2016(UTC)
Offline Jean Giraud  
#4 Posted : 01 April 2016 04:22:27(UTC)
Jean Giraud

Rank: Guest

Groups: Registered
Joined: 04/07/2015(UTC)
Posts: 6,866
Canada

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.

Forum Smath Silent Killer Bug.gif
thanks 1 user thanked Jean Giraud for this useful post.
on 02/04/2016(UTC)
Offline Andrey Ivashov  
#5 Posted : 01 April 2016 18:32:36(UTC)
Andrey Ivashov


Rank: Administration

Groups: Developers, Registered, Knovel Developers, Administrators, Advanced Member
Joined: 11/07/2008(UTC)
Posts: 1,616
Man
Russian Federation

Was thanked: 1978 time(s) in 666 post(s)
Fixed in Stable SMath Studio 0.98.5935.
Thank you.
thanks 2 users thanked Andrey Ivashov for this useful post.
on 02/04/2016(UTC),  on 02/04/2016(UTC)
Offline Davide Carpi  
#6 Posted : 02 April 2016 00:56:42(UTC)
Davide Carpi


Rank: Advanced Member

Groups: Registered, Advanced Member
Joined: 13/01/2012(UTC)
Posts: 2,648
Man
Italy
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.

2016-04-01 23_55_33-SMath Studio Desktop - [clear.sm_].png


Originally Posted by: Andrey Ivashov Go to Quoted Post
Fixed in Stable SMath Studio 0.98.5935.
Thank you.

Once again, thank you very much Andrey. Good

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
thanks 1 user thanked Davide Carpi for this useful post.
on 02/04/2016(UTC)
Users browsing this topic
Guest
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.