Skip to content

Commit 00c56a2

Browse files
committed
Remove partdiff.h
1 parent 95b4f41 commit 00c56a2

3 files changed

Lines changed: 12 additions & 22 deletions

File tree

argument_parser.cpp

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,19 @@
44
#include <print>
55
#include <sstream>
66

7-
#include "partdiff.h"
8-
97
namespace partdiff {
108

9+
template <typename T, typename U = std::underlying_type_t<T>>
10+
U to_underlying(T v) {
11+
return static_cast<U>(v);
12+
}
13+
14+
static constexpr uint64_t max_interlines = 10240;
15+
static constexpr uint64_t max_iteration = 200000;
16+
static constexpr uint64_t max_threads = 1024;
17+
static constexpr double min_accuracy = 1e-4;
18+
static constexpr double max_accuracy = 1e-20;
19+
1120
using calculation_method = calculation_options::calculation_method;
1221
using perturbation_function = calculation_options::perturbation_function;
1322
using termination_condition = calculation_options::termination_condition;

justfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,4 @@ build:
55
make
66

77
format:
8-
clang-format --style=file -i *.h *.cpp *.hpp
8+
clang-format --style=file -i *.cpp *.hpp

partdiff.h

Lines changed: 0 additions & 19 deletions
This file was deleted.

0 commit comments

Comments
 (0)