Skip to content

Commit cfece1c

Browse files
committed
fix double type for chrono
1 parent f86cbde commit cfece1c

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/advection.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
// ==========================================
1515
// ==========================================
1616
// returns duration for maxIter-1 iterations
17-
std::chrono::duration<real_t>
17+
std::chrono::duration<double>
1818
advection(sycl::queue &Q, real_t* fidst_dev,
1919
sref::unique_ref<IAdvectorX> &advector, const AdvectionSolver &solver) {
2020

src/conv1d.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -169,7 +169,7 @@ main(int argc, char **argv) {
169169
auto start = std::chrono::high_resolution_clock::now();
170170
bkma_run(Q, data, solver, optim_params).wait();
171171
auto end = std::chrono::high_resolution_clock::now();
172-
const std::chrono::duration<real_t> elapsed_seconds = end - start;
172+
const std::chrono::duration<double> elapsed_seconds = end - start;
173173

174174
auto err = sum_and_normalize_conv(Q, data, params.n_write);
175175
std::cout << "Normalized Array after: " << err << std::endl;

0 commit comments

Comments
 (0)