mirror of
https://github.com/CoolProp/CoolProp.git
synced 2026-01-14 08:28:03 -05:00
* 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
15 lines
284 B
C
15 lines
284 B
C
#include "udf.h"
|
|
|
|
double Props(char*, char, double, char, double, char*);
|
|
|
|
DEFINE_ON_DEMAND(call_coolprop) {
|
|
real p, t, r;
|
|
|
|
p = 100000.0;
|
|
t = 300.0;
|
|
|
|
r = Props((char*)"D", 'T', t, 'P', p / 1000, (char*)"Air");
|
|
|
|
Message("p = %lf, t = %lf => r = %lf\n", p, t, r);
|
|
}
|