Ian Bell
cb59cbcea0
When the reference state is changed, update the fixed points
...
Signed-off-by: Ian Bell <ian.h.bell@gmail.com >
2015-03-10 20:00:48 -06:00
Ian Bell
79a7350b55
Fix(?) SWIG+MATLAB by moving enum out of class
2015-03-10 19:34:45 -06:00
Ian Bell
275adbbb6f
Fixed reference states for real; Closes #524
2015-03-10 01:17:44 -06:00
Ian Bell
b44523c8bd
hide enum from swig+matlab
2015-03-09 23:33:44 -06:00
Ian Bell
04145b5c15
Killed off a bunch of order-of-initialization warnings from mingw
...
Watch out @mkaganski, its not serious, but annoying.
Signed-off-by: Ian Bell <ian.h.bell@gmail.com >
2015-03-09 23:30:53 -06:00
Ian Bell
3915fbd56d
Maybe making config data types private will work with SWIG
2015-03-09 22:57:03 -06:00
mikekaganski
8c08bad4d7
Fix Coverity CID 38540
2015-03-09 19:31:14 +10:00
mikekaganski
8f968302e2
Fix Coverity CID 38545
2015-03-09 17:59:48 +10:00
mikekaganski
d5f9cd73de
Fix Coverity CID 38546
...
@ibell: icrit seems to be unused: no modules set it
2015-03-09 17:51:18 +10:00
mikekaganski
5bc139847e
Fix Coverity CID 38547
2015-03-09 17:37:13 +10:00
mikekaganski
ef0df39419
Fix Coverity CID 38548
2015-03-09 17:33:48 +10:00
mikekaganski
544b239843
Fix Coverity CID 38549
2015-03-09 17:30:30 +10:00
mikekaganski
1b7ccca9a3
Fix Coverity CID 38552
...
Add some const method qualifiers
2015-03-09 17:12:34 +10:00
mikekaganski
02eb288fb3
Fix Coverity CID 38555
2015-03-09 16:41:10 +10:00
mikekaganski
73a8fe2899
Fix Coverity CID 38557
2015-03-09 16:29:58 +10:00
Ian Bell
ea214085c1
Merge pull request #529 from mikekaganski/master
...
First bunch of Coverity Scan static analysis warning fixes
2015-03-09 07:05:50 +01:00
mikekaganski
746f56a53a
Remove MSVC warnings on msgpack
2015-03-09 14:07:58 +10:00
mikekaganski
d470157314
Refactor solver function interfaces, to allow more verbose requirements for deriv
2015-03-09 13:38:49 +10:00
mikekaganski
60b6bfca0d
Fix Coverity CID 38565
2015-03-08 11:11:10 +10:00
mikekaganski
16b13f3f0f
Fix Coverity CID 38567
...
Add some const methods to allow passing const ref
2015-03-07 20:41:24 +10:00
mikekaganski
993b684168
Fix Coverity CID 38568
2015-03-07 17:42:07 +10:00
mikekaganski
a7d33d5f77
Fix Coverity CID 38585
2015-03-07 14:28:46 +10:00
mikekaganski
982ff51478
Tried to fix Coverity CID 38586
2015-03-07 14:17:37 +10:00
Ian Bell
7a375952e0
Implement calling a flash routine with guess values provided at the low-level (PQ only for now)
2015-03-06 15:38:25 -07:00
mikekaganski
ae6e516754
Tried to fix Coverity CID 38605
2015-03-06 23:55:56 +10:00
mikekaganski
4ae7040d91
Fix Coverity CID 38615
2015-03-06 22:46:07 +10:00
mikekaganski
af3107ed9a
Fix Coverity CID 38616
2015-03-06 22:14:30 +10:00
Ian Bell
cd3e6323d2
Enable the ability to set mixture binary pair data from python (I think)
...
Signed-off-by: Ian Bell <ian.h.bell@gmail.com >
2015-03-05 23:46:22 -07:00
Ian Bell
5e74610d0e
Fix unexplained crashes with setting of reference state; See #524
2015-03-05 21:47:36 -07:00
Ian Bell
6b6f2dbb29
Removed pEOS and replaced it with EOS() function - reference state works properly; Closes #524
2015-03-05 20:59:46 -07:00
Ian Bell
c984702f9e
Tabular files are in fact compressed to z and read as z; Closes #516
2015-03-03 23:06:20 -07:00
Ian Bell
ceef2cd960
Actually check the size of the directory of tables and warn or error appropriately; Closes #43
2015-03-02 21:17:11 -07:00
Ian Bell
e4d28ecaa0
Fixed problems from faulty merge
...
Signed-off-by: Ian Bell <ian.h.bell@gmail.com >
2015-03-02 20:43:52 -07:00
Ian Bell
d9e16a77f3
Merge branch 'master' into tabular
...
Signed-off-by: Ian Bell <ian.h.bell@gmail.com >
2015-03-02 20:20:51 -07:00
Ian Bell
c063a40183
Implement a wrapper of AbstractState that can be called through the shared library
...
Closes #508
Closes #497
Sample code:
```
#include "CoolPropLib.h"
const long buffer_length = 255;
char message_buffer[buffer_length];
long errcode = 0;
const long N = 2;
double fractions[N] = {0.5, 0.5};
long T_param = get_param_index("T");
long PQ = get_input_pair_index("PQ_INPUTS");
long handle = AbstractState_factory("HEOS", "Water&Ethanol", &errcode, message_buffer, buffer_length);
AbstractState_set_fractions(handle, fractions, N, &errcode, message_buffer, buffer_length);
AbstractState_update(handle, PQ, 101325, 0, &errcode, message_buffer, buffer_length);
double Tc = AbstractState_keyed_output(handle, T_param, &errcode, message_buffer, buffer_length);
AbstractState_free(handle, &errcode, message_buffer, buffer_length);
```
2015-03-01 15:30:31 -07:00
Ian Bell
2e0f267b77
Only silence CRT warning if compiler is MSVC
2015-03-01 13:23:12 -07:00
mikekaganski
0858d98223
Kill off the CRT deprecate warning ( #512 )
2015-03-01 20:11:14 +10:00
Ian Bell
f053de76b1
Kill warning about initialization order in Helmholtz.h
2015-02-28 20:12:59 -07:00
Ian Bell
c674ff5aa8
Merge pull request #510 from mikekaganski/master
...
const, ref and iterator optimization
2015-02-28 19:55:10 -07:00
Ian Bell
6cd7307a06
Fix preprocessor for non-clang compilers
...
No short-circuiting in preprocessor logicals - didn't know that
Signed-off-by: Ian Bell <ian.h.bell@gmail.com >
2015-02-28 19:09:56 -07:00
Ian Bell
63b5fd938d
Disable thread_local for apple clang that is not up-to-date (new clang is fine, but I can't update clang on the IPU slave)
...
Signed-off-by: Ian Bell <ian.h.bell@gmail.com >
2015-02-28 18:57:35 -07:00
Ian Bell
864904f61d
Destructor for CoolPropBaseError has to be throw()
...
Signed-off-by: Ian Bell <ian.h.bell@gmail.com >
2015-02-28 18:07:01 -07:00
mikekaganski
28691e8e75
const, ref and iterator optimization
...
1. Another set of arguments optimized:
* args-by-val converted to args-by-ref
* in some cases, reverse has been done, if that is better: if the
object's copy is modified in the func, it's better to avoid extra copy
from arg to local var
2. some const functions marked as such (this is just a beginning)
3. iterators were replaced with const_iterators where applicable
4. catches that catch std::exception& changed to catch (...) - that is
safer; if exception handling is restructured, this will have to be
reconsidered anyway
5. removed some basic structures' constructors; changed them to hold
const char*s to avoid unnecessary string constructions;
6. in some places, moved variable declarations to their definitions, to
avoid calling default constructors and then assigning
7. removed some unnecessary shared_pointers in favor of local objects;
8. in FORTRAN-style functions, added const specifiers to input doubles;
9. fixed a place where values were inserted into a map while iterating
through it
10. fixed is_valid_*_derivative: they could accept incorrect values and
throw when upper index is less than lower
2015-03-01 10:51:01 +10:00
Ian Bell
edd82bbb73
Fixed c++11 incompatibility with Exception refactor;
2015-02-28 16:46:56 -07:00
Ian Bell
8503e37c0f
Merge pull request #509 from mikekaganski/master
...
Exceptions restructured
2015-02-28 16:36:45 -07:00
Ian Bell
526a241ccc
Updated docs for Tabular Interpolation; fixed bugs in interpolation code
...
Signed-off-by: Ian Bell <ian.h.bell@gmail.com >
2015-02-28 15:54:27 -07:00
mikekaganski
e9c1d6ad60
Exceptions restructured
...
1. add integer codes to exceptions (to address #381 No1);
2. restructure derived exceptions to be specializations of templated
classes to make their definitions more compact, and remove code
duplication.
2015-02-28 18:00:45 +10:00
Ian Bell
65543cf26e
Merge branch 'master' into tabular
2015-02-27 22:54:28 -07:00
Ian Bell
84bdcb1aee
Add configuration key for maximum table directory size
...
Signed-off-by: Ian Bell <ian.h.bell@gmail.com >
2015-02-27 22:12:59 -07:00
Ian Bell
6eaea3e642
Bicubic coefficients are calculated in all cells
...
Signed-off-by: Ian Bell <ian.h.bell@gmail.com >
2015-02-26 20:54:30 -07:00