mirror of
https://github.com/CoolProp/CoolProp.git
synced 2026-04-01 03:00:13 -04:00
Warn in EES if more than one character are trying to be passed to Props function
Signed-off-by: Ian Bell <ian.h.bell@gmail.com>
This commit is contained in:
@@ -161,6 +161,8 @@ extern "C"
|
||||
}
|
||||
}
|
||||
else{
|
||||
if (In1str.size() != 0){ strcpy(fluid, format("Input #1 [%s] can only be 1 character long for coolprop()",In1str.c_str()).c_str());
|
||||
if (In2str.size() != 0){ strcpy(fluid, format("Input #2 [%s] can only be 1 character long for coolprop()",In2str.c_str()).c_str());
|
||||
// Mole fractions are not given
|
||||
out = Props(Outstr.c_str(), In1str[0], In1, In2str[0], In2, Fluidstr.c_str());
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user