Julien Marrec
6913fc41dc
Format macros, they keep getting picked incrementally by clang format + Strip trailing whitespaces
...
```
find . -regextype posix-extended -regex '.*\.(cpp|hpp|c|h|cxx|hxx|py)$' | xargs -I@ sed -i 's/[ \t]*$//' "@"
```
2022-04-01 07:39:35 -04:00
Julien Marrec
05c8cf503b
Lint: use automated tooling to reformat C++ and CMakeLists files ( #2103 )
...
* Add initial clang tidy / clang format config files
* Clang format the entire codebase
```
find ./src -regextype posix-extended -regex '.*\.(cpp|hpp|c|h|cxx|hxx)$' | xargs clang-format-12 -style=file -i -fallback-style=none
find ./include -regextype posix-extended -regex '.*\.(cpp|hpp|c|h|cxx|hxx)$' | xargs clang-format-12 -style=file -i -fallback-style=none
find ./Web -regextype posix-extended -regex '.*\.(cpp|hpp|c|h|cxx|hxx)$' | xargs clang-format-12 -style=file -i -fallback-style=none
find ./dev -regextype posix-extended -regex '.*\.(cpp|hpp|c|h|cxx|hxx)$' | xargs clang-format-12 -style=file -i -fallback-style=none
find ./wrappers -regextype posix-extended -regex '.*\.(cpp|hpp|c|h|cxx|hxx)$' | xargs clang-format-12 -style=file -i -fallback-style=none
```
* Add a .cmake-format file and reformat CmakeLists.txt with it
https://github.com/cheshirekow/cmake_format
* Add a clang-format workflow
only runs on PRs, only on touched files
2022-03-31 10:51:48 -04:00
Ian Bell
e119cbca29
Fix remove row and column functions
2015-11-14 21:46:45 -07:00
Ian Bell
1283143e64
Fix bug in adjugate function and fix tests thereof
2015-08-16 16:56:27 -06:00
Ian Bell
66153844cc
Implement all the derivatives needed for analytic second derivative in 1D solve for L1* = 0
2015-08-06 10:06:01 -04:00
Ian Bell
995037121b
Allow factory to provide debug output
2015-06-07 22:55:16 -06:00
Ian Bell
6b282109d0
Move the Eigen stuff out of CoolPropTools.h and into MatrixMath.h
2015-06-07 19:32:44 -06: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
aef97f9755
Lots of little changes to squelch warnings
...
Closes #484
Closes #483
Signed-off-by: Ian Bell <ian.h.bell@gmail.com >
2015-02-21 14:39:25 -07:00
Ian Bell
8327d54ea2
Replaced all tabs with spaces (finally) in C++ files
...
Signed-off-by: Ian Bell <ian.h.bell@gmail.com >
2014-11-19 12:16:14 -05:00
Ian Bell
67e26391b0
Killed off doxygen errors
...
Signed-off-by: Ian Bell <ian.h.bell@gmail.com >
2014-09-13 15:57:57 +02:00
Ian Bell
4b082029c4
Finally repaired flash routines.
...
Some edge cases remain
Signed-off-by: Ian Bell <ian.h.bell@gmail.com >
2014-08-24 13:40:46 +02:00
Ian Bell
d3261395bf
Replaced all fabs() with std::abs()
...
Signed-off-by: Ian Bell <ian.h.bell@gmail.com >
2014-08-23 14:56:07 +02:00
Ian Bell
74449b5151
Reorganized MatrixMath.h header file
...
Signed-off-by: Ian Bell <ian.h.bell@gmail.com >
2014-07-23 12:26:34 -04:00
jowr
e946d84dec
Incompressible library and backend work, still need to convert the coefficients from v4.
2014-07-16 13:18:45 +02:00
jowr
79beb6fddc
The incompressibles pass the first tests and concentration inputs are read properly
2014-07-14 14:54:09 +02:00
jowr
c28012c00a
Started implementing the solvers... Inheritance is a little unclear, wrote todo notes in the source. Added test object factories for consistent testing.
2014-07-11 13:06:43 +02:00
Ian Bell
7d9c0bffdf
Fixed Eigen include in CMake and moved num_rows and num_cols to placate gcc
2014-07-06 11:31:19 +02:00
jowr
4e2aa1c404
Started to work on flexible polynomial solvers for fractional exponents
2014-06-13 13:56:08 +02:00
jowr
e2eee9a1df
Added solver and derivative functions, tested and works. Might need to implement our own solvers. Now way of telling Eigen not to find all roots. We know the bounds in most cases...
2014-06-11 17:52:56 +02:00
jowr
669195f654
Added more PolyMath functions and tests, integration and derivation seems to work.
2014-06-11 13:26:35 +02:00
jowr
602e1f9829
More matrix math and eigen integration
2014-06-10 17:03:28 +02:00
jowr
44f7288944
A little bit on polynomials
2014-06-07 12:28:53 +02:00
jowr
f4be09df63
Finally, some luck with the Matrix classes... C++ lessons learned.
2014-06-06 18:39:33 +02:00
jowr
2e615f1434
Starting to write tests
2014-06-06 15:28:12 +02:00
jowr
636df0ec82
Converters seem to work
2014-06-06 14:26:47 +02:00
jowr
893785fe95
More matrix conversions
2014-06-06 14:07:57 +02:00
jowr
183c93ac3c
More testing, changed vector to string functions
2014-06-06 01:03:35 +02:00
jowr
bdf92d95a9
const madness
2014-06-05 18:08:21 +02:00
Ian bell
b3847c7522
Initial commit for v5, but this time with the right line endings
...
Signed-off-by: Ian bell <ian.h.bell@gmail.com >
2014-05-14 12:46:24 +02:00