Skip to content

Correct get_parameter_information_string, fixes #974 - #975

Merged
ibell merged 1 commit into
CoolProp:masterfrom
JonWel:patch-1
Feb 16, 2016
Merged

ibell merged 1 commit into
CoolProp:masterfrom
JonWel:patch-1

Conversation

@JonWel

@JonWel JonWel commented Feb 15, 2016

Copy link
Copy Markdown
Contributor

Put the catch in a more useful way and solves the call to CoolProp::get_parameter_information:
The int key = CoolProp::get_parameter_index(param); will trigger the catch if the param is not valid (as no int is furnished in that case), which will give the correct output message now.
When param is valid, this will run the corrected CoolProp::get_parameter_information(key, "long").

Put the catch in a more useful way and solves the call to CoolProp::get_parameter_information.
ibell added a commit that referenced this pull request Feb 16, 2016
Correct get_parameter_information_string, fixes #974
@ibell
ibell merged commit 42e674c into CoolProp:master Feb 16, 2016
@JonWel
JonWel deleted the patch-1 branch February 18, 2016 20:53
@ibell ibell modified the milestone: v6 May 11, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants