Skip to content

Commit 466e171

Browse files
committed
optimized histogram merge
0 parents  commit 466e171

456 files changed

Lines changed: 90918 additions & 0 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.dockerignore

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
.git/
2+
plot/
3+
untracked/
4+
arch/

.gitignore

Lines changed: 155 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,155 @@
1+
# Custom
2+
*.csv
3+
*.df
4+
*.log
5+
*.pickle
6+
*.json
7+
nwchem/
8+
streaming/
9+
doc/
10+
*~
11+
12+
# Automake files
13+
*.in
14+
m4/
15+
autom4te.cache/
16+
aclocal.m4
17+
ar-lib
18+
compile
19+
config.*
20+
configure
21+
depcomp
22+
install-sh
23+
ltmain.sh
24+
missing
25+
26+
# Byte-compiled / optimized / DLL files
27+
__pycache__/
28+
*.py[cod]
29+
*$py.class
30+
31+
# C extensions
32+
*.so
33+
34+
# Distribution / packaging
35+
.Python
36+
build/
37+
develop-eggs/
38+
dist/
39+
downloads/
40+
eggs/
41+
.eggs/
42+
#lib/
43+
lib64/
44+
parts/
45+
sdist/
46+
var/
47+
wheels/
48+
*.egg-info/
49+
.installed.cfg
50+
*.egg
51+
MANIFEST
52+
53+
# PyInstaller
54+
# Usually these files are written by a python script from a template
55+
# before PyInstaller builds the exe, so as to inject date/other infos into it.
56+
*.manifest
57+
*.spec
58+
59+
# Installer logs
60+
pip-log.txt
61+
pip-delete-this-directory.txt
62+
63+
# Unit test / coverage reports
64+
htmlcov/
65+
.tox/
66+
.coverage
67+
.coverage.*
68+
.cache
69+
nosetests.xml
70+
coverage.xml
71+
*.cover
72+
.hypothesis/
73+
.pytest_cache/
74+
75+
# Translations
76+
*.mo
77+
*.pot
78+
79+
# Django stuff:
80+
*.log
81+
local_settings.py
82+
db.sqlite3
83+
84+
# Flask stuff:
85+
instance/
86+
.webassets-cache
87+
88+
# Scrapy stuff:
89+
.scrapy
90+
91+
# Sphinx documentation
92+
docs/_build/
93+
94+
# PyBuilder
95+
target/
96+
97+
# Jupyter Notebook
98+
.ipynb_checkpoints
99+
100+
# pyenv
101+
.python-version
102+
103+
# celery beat schedule file
104+
celerybeat-schedule
105+
106+
# SageMath parsed files
107+
*.sage.py
108+
109+
# Environments
110+
.env
111+
.venv
112+
env/
113+
venv/
114+
ENV/
115+
env.bak/
116+
venv.bak/
117+
118+
# Spyder project settings
119+
.spyderproject
120+
.spyproject
121+
122+
# Rope project settings
123+
.ropeproject
124+
125+
# mkdocs documentation
126+
/site
127+
128+
# mypy
129+
.mypy_cache/
130+
131+
# pycharm
132+
.idea
133+
134+
# archive
135+
arch
136+
untracked/dump*
137+
untracked/*.json
138+
untracked/*bp*
139+
untracked/*.log
140+
untracked/*.pkl
141+
untracked/results/*.log
142+
untracked/results/*.json
143+
untracked/results/*.pkl
144+
.vscode
145+
cpp/bin/*
146+
cpp/extern/*
147+
.DS_Store
148+
149+
# cpp 3rd-party
150+
cpp/3rdparty/nlohmann
151+
152+
# docs
153+
docs/doxygen_api/xml/
154+
sphinx/build/
155+
sphinx/source/_build/

.travis.yml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
language: cpp
2+
services:
3+
- docker
4+
before_install:
5+
- cd docker/ubuntu18.04/openmpi4.0.4/ && docker build -f Dockerfile.ad.provdb.gcov -t chimbuko/ad:ubuntu18.04-provdb-gcov .
6+
script:
7+
- ci_env=`bash <(curl -s https://codecov.io/env)`
8+
- echo "${ci_env}"
9+
- docker run ${ci_env} -it chimbuko/ad:ubuntu18.04-provdb-gcov
10+
addons:
11+
apt:
12+
packages:
13+
- docker-ce

3rdparty/Makefile.am

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
thirdpartydir = $(includedir)/chimbuko/3rdparty
2+
nobase_thirdparty_HEADERS = nlohmann/json.hpp nlohmann/thirdparty/hedley/hedley.hpp nlohmann/thirdparty/hedley/hedley_undef.hpp nlohmann/json_fwd.hpp nlohmann/adl_serializer.hpp nlohmann/detail/input/json_sax.hpp nlohmann/detail/input/binary_reader.hpp nlohmann/detail/input/parser.hpp nlohmann/detail/input/position_t.hpp nlohmann/detail/input/lexer.hpp nlohmann/detail/input/input_adapters.hpp nlohmann/detail/json_pointer.hpp nlohmann/detail/value_t.hpp nlohmann/detail/macro_scope.hpp nlohmann/detail/iterators/json_reverse_iterator.hpp nlohmann/detail/iterators/internal_iterator.hpp nlohmann/detail/iterators/iteration_proxy.hpp nlohmann/detail/iterators/primitive_iterator.hpp nlohmann/detail/iterators/iterator_traits.hpp nlohmann/detail/iterators/iter_impl.hpp nlohmann/detail/json_ref.hpp nlohmann/detail/conversions/to_chars.hpp nlohmann/detail/conversions/to_json.hpp nlohmann/detail/conversions/from_json.hpp nlohmann/detail/meta/void_t.hpp nlohmann/detail/meta/is_sax.hpp nlohmann/detail/meta/cpp_future.hpp nlohmann/detail/meta/detected.hpp nlohmann/detail/meta/type_traits.hpp nlohmann/detail/macro_unscope.hpp nlohmann/detail/exceptions.hpp nlohmann/detail/output/binary_writer.hpp nlohmann/detail/output/output_adapters.hpp nlohmann/detail/output/serializer.hpp

3rdparty/install_nlohmann.sh

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
wget https://github.com/nlohmann/json/releases/download/v3.7.0/include.zip
2+
unzip include.zip
3+
mv include/nlohmann .
4+
rm -rf include include.zip
Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
#pragma once
2+
3+
#include <utility>
4+
5+
#include <nlohmann/detail/conversions/from_json.hpp>
6+
#include <nlohmann/detail/conversions/to_json.hpp>
7+
8+
namespace nlohmann
9+
{
10+
11+
template<typename, typename>
12+
struct adl_serializer
13+
{
14+
/*!
15+
@brief convert a JSON value to any value type
16+
17+
This function is usually called by the `get()` function of the
18+
@ref basic_json class (either explicit or via conversion operators).
19+
20+
@param[in] j JSON value to read from
21+
@param[in,out] val value to write to
22+
*/
23+
template<typename BasicJsonType, typename ValueType>
24+
static auto from_json(BasicJsonType&& j, ValueType& val) noexcept(
25+
noexcept(::nlohmann::from_json(std::forward<BasicJsonType>(j), val)))
26+
-> decltype(::nlohmann::from_json(std::forward<BasicJsonType>(j), val), void())
27+
{
28+
::nlohmann::from_json(std::forward<BasicJsonType>(j), val);
29+
}
30+
31+
/*!
32+
@brief convert any value type to a JSON value
33+
34+
This function is usually called by the constructors of the @ref basic_json
35+
class.
36+
37+
@param[in,out] j JSON value to write to
38+
@param[in] val value to read from
39+
*/
40+
template <typename BasicJsonType, typename ValueType>
41+
static auto to_json(BasicJsonType& j, ValueType&& val) noexcept(
42+
noexcept(::nlohmann::to_json(j, std::forward<ValueType>(val))))
43+
-> decltype(::nlohmann::to_json(j, std::forward<ValueType>(val)), void())
44+
{
45+
::nlohmann::to_json(j, std::forward<ValueType>(val));
46+
}
47+
};
48+
49+
} // namespace nlohmann

0 commit comments

Comments
 (0)