Commit Graph

2418 Commits

Author SHA1 Message Date
Ian Bell
421a6e050a Bump revision for 5.0.8 release
Signed-off-by: Ian Bell <ian.h.bell@gmail.com>
2015-02-28 21:26:27 -07:00
Ian Bell
11af811d45 Reverted some C++11 only code
@mikekaganski, if you could please try to compile with C++03, that would make my life a lot easier
2015-02-28 20:26:44 -07:00
Ian Bell
f053de76b1 Kill warning about initialization order in Helmholtz.h 2015-02-28 20:12:59 -07:00
Ian Bell
ecbeaed8fc include "crossplatform_shared_ptr.h"
Signed-off-by: Ian Bell <ian.h.bell@gmail.com>
2015-02-28 20:12:12 -07:00
Ian Bell
b28583f4b6 Fix for shared_ptr
@mikekaganski, different compilers put shared_ptr in different namespaces, which is why we handle things in the way that we do in crossplatform_shared_ptr.h
2015-02-28 20:01:05 -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
c3026be768 Added compressibility factor for humid air; closes #503 2015-02-28 19:52:37 -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
130c880d83 Docs for low-level interface; Closes #492
Signed-off-by: Ian Bell <ian.h.bell@gmail.com>
2015-02-28 16:56:43 -07: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
09f8976605 Back to PQ for water for humid air visc and conductivity
Closes #470
Closes #498
2015-02-28 16:00:04 -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
2e413d3de4 Allow the user to get the HOME directory through get_global_param_string()
Signed-off-by: Ian Bell <ian.h.bell@gmail.com>
2015-02-27 22:16:45 -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
527bac72d0 Implemented a number of functions to python's AbstractState that were missing; Closes #505
Signed-off-by: Ian Bell <ian.h.bell@gmail.com>
2015-02-27 21:24:22 -07:00
Jorrit Wronski
f50bf8bbf9 Fixed default unit system for TTSE tests 2015-02-26 17:53:41 +01:00
Ian Bell
5c3cb6f9a4 Fix templated output type for min3 and min4 functions 2015-02-26 09:43:12 -07:00
Ian Bell
1dafe24f48 Merge pull request #504 from mikekaganski/master
More ref args
2015-02-26 09:34:02 -07:00
mikekaganski
869d1afc71 More ref args 2015-02-27 00:56:38 +10:00
Jorrit Wronski
f31a75e1ed Trying to write a Python script to compare the speed of TTSE in v4 and v5 2015-02-26 10:47:59 +01:00
Ian Bell
004d497ec0 Merge pull request #501 from mikekaganski/master
thread_local: one more (hopefully portable) attempt
2015-02-25 08:23:26 -07:00
Ian Bell
f2e23cd5d7 Merge branch 'master' of https://github.com/coolprop/coolprop 2015-02-25 08:22:51 -07:00
Ian Bell
77046321b8 Allow user to specify another HMX.BNC path for REFPROP
Signed-off-by: Ian Bell <ian.h.bell@gmail.com>
2015-02-25 08:22:34 -07:00
Ian Bell
5cbab2a859 Remove double declaration of UNICODE
Signed-off-by: Ian Bell <ian.h.bell@gmail.com>
2015-02-25 08:10:08 -07:00
mikekaganski
4c8421165c thread_local: one more (hopefully portable) attempt 2015-02-25 20:20:05 +10:00
Ian Bell
de2d5828d3 One more CoolProp namespace on OSX in CoolPropTools.h 2015-02-24 21:59:32 -07:00
Ian Bell
c7ef99e7bf Resolve another bug with OSX compilation
Signed-off-by: Ian Bell <ian.h.bell@gmail.com>
2015-02-24 21:51:54 -07:00
Ian Bell
8ef1a75f38 Added CoolProp:: namespace spec to some functions in CoolPropTools.h
Signed-off-by: Ian Bell <ian.h.bell@gmail.com>
2015-02-24 21:47:00 -07:00
Ian Bell
44ad30bcb0 Fix const ref for strsplit
Signed-off-by: Ian Bell <ian.h.bell@gmail.com>
2015-02-24 21:29:53 -07:00
Ian Bell
2f029d40e7 Revert the thread_local; not all our supported compilers can do C++11
Signed-off-by: Ian Bell <ian.h.bell@gmail.com>
2015-02-24 21:27:14 -07:00
Ian Bell
2e270f291f Cleaned up CoolPropTools.h a little bit
Signed-off-by: Ian Bell <ian.h.bell@gmail.com>
2015-02-24 21:25:33 -07:00
Ian Bell
aeb1fed0ba Merge branch 'master' of https://github.com/coolprop/coolprop 2015-02-24 21:20:17 -07:00
Ian Bell
e4672f1a98 Merge pull request #500 from mikekaganski/master
Fix directory size calculations
2015-02-24 21:19:46 -07:00
mikekaganski
c38c4c468f Fix directory size calculations 2015-02-25 13:58:41 +10:00
Ian Bell
6c58a9fa1d Merge branch 'master' of https://github.com/coolprop/coolprop 2015-02-24 20:05:39 -07:00
Ian Bell
b0eb894240 Merge pull request #499 from CoolProp/longdouble_remap
Longdouble remap
2015-02-24 20:05:25 -07:00
Ian Bell
729b44ae5d Merge remote-tracking branch 'remotes/origin/longdouble_remap' 2015-02-24 20:03:57 -07:00
Ian Bell
e5b66b3218 Merge pull request #496 from CoolProp/directory_size
Implement checking of directory size
2015-02-23 23:39:11 -07:00
Ian Bell
d12a4883f9 Fix python build script
Signed-off-by: Ian Bell <ian.h.bell@gmail.com>
2015-02-23 23:27:57 -07:00
Ian Bell
e74211910f Once more to get rid of min and max macros
Signed-off-by: Ian Bell <ian.h.bell@gmail.com>
2015-02-23 23:15:11 -07:00
Ian Bell
2c61b99ffb Undef min and max aggressively
Signed-off-by: Ian Bell <ian.h.bell@gmail.com>
2015-02-23 23:12:11 -07:00
Ian Bell
703fd306ee Merge pull request #495 from mikekaganski/CoolPropDbl
CoolPropDbl
2015-02-23 23:08:01 -07:00
Ian Bell
01f4b87dae Undef min and max macros for windows
Signed-off-by: Ian Bell <ian.h.bell@gmail.com>
2015-02-23 23:06:36 -07:00
Ian Bell
b1f28712e8 Fixed uint64_t on visual studio
Signed-off-by: Ian Bell <ian.h.bell@gmail.com>
2015-02-23 22:58:53 -07:00
Ian Bell
a7116fd6ad Add UNICODE and _UNICODE to CMakeLists.txt 2015-02-23 22:52:03 -07:00
Ian Bell
fe396aa3f5 Windows uses wstring, *nix uses string
Signed-off-by: Ian Bell <ian.h.bell@gmail.com>
2015-02-23 22:46:49 -07:00