Skip to content

Commit 92ebe1e

Browse files
committed
Not passing tests, but passing compiler
1 parent 76a21b2 commit 92ebe1e

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

core/pythoncdb/py_algorithms.hh

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
namespace cadabra
1010
{
1111
template <class Algo, typename... Args>
12-
Ex_ptr apply_algo(Ex_ptr ex, Args... args, bool deep, bool repeat, unsigned int depth)
12+
Ex_ptr apply_algo(Ex_ptr ex, bool deep, bool repeat, unsigned int depth, Args... args)
1313
{
1414
Algo algo(*get_kernel_from_scope(), *ex, args...);
1515

@@ -39,13 +39,14 @@ namespace cadabra
3939
}
4040

4141
template <class Algo, typename... Args>
42-
Ex_ptr apply_algo_preorder(Ex_ptr ex, Args... args, bool deep, bool repeat, unsigned int depth)
42+
Ex_ptr apply_algo_preorder(Ex_ptr ex, bool deep, bool repeat, unsigned int depth, Args... args)
4343
{
4444
Algo algo(*get_kernel_from_scope(), *ex, args...);
4545

4646
Ex::iterator it = ex->begin();
4747
if (ex->is_valid(it)) {
48-
//ProgressMonitor* pm = get_progress_monitor();
48+
ProgressMonitor* pm = get_progress_monitor();
49+
algo.set_progress_monitor(pm);
4950
ex->update_state(algo.apply_pre_order(repeat));
5051
call_post_process(*get_kernel_from_scope(), ex);
5152
}

core/pythoncdb/py_ex.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -502,7 +502,7 @@ namespace cadabra
502502
std::vector<std::string> av;
503503
for (auto& arg : args)
504504
av.push_back(arg.cast<std::string>());
505-
return apply_algo_preorder<map_sympy, std::string, std::vector<std::string>>(ex, head, av, true, false, 0);
505+
return apply_algo_preorder<map_sympy, std::string, std::vector<std::string>>(ex, true, false, 0, head, av);
506506
}
507507

508508
#ifdef MATHEMATICA_FOUND

0 commit comments

Comments
 (0)