Skip to content
Snippets Groups Projects
Commit 359fd431 authored by Pradipta Samanta's avatar Pradipta Samanta
Browse files

change the place of start the timer

parent 6416163a
No related branches found
No related tags found
1 merge request!37Draft: C++ port of horizontal/mo_lib_gradients.F90
...@@ -8,6 +8,9 @@ void tdma_solver_vec(double *a, double *b, double *c, double *d, ...@@ -8,6 +8,9 @@ void tdma_solver_vec(double *a, double *b, double *c, double *d,
int slev, int elev, int startidx, int endidx, int slev, int elev, int startidx, int endidx,
double* varout, int opt_acc_queue = -1) { double* varout, int opt_acc_queue = -1) {
// Start timing
auto start_time = std::chrono::high_resolution_clock::now();
int acc_queue = (opt_acc_queue == -1) ? 1 : opt_acc_queue; // Use 1 as the default if opt_acc_queue is not provided int acc_queue = (opt_acc_queue == -1) ? 1 : opt_acc_queue; // Use 1 as the default if opt_acc_queue is not provided
// Determine array sizes based on startidx and endidx // Determine array sizes based on startidx and endidx
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment