Skip to content
Snippets Groups Projects
Unverified Commit 49ae16a9 authored by Brent Huisman's avatar Brent Huisman Committed by GitHub
Browse files

Two context decomp swaps were forgotten (#1912)

parent f685f0e3
Branches
Tags
No related merge requests found
...@@ -119,7 +119,7 @@ int main(int argc, char** argv) { ...@@ -119,7 +119,7 @@ int main(int argc, char** argv) {
if (!out.good()) throw std::runtime_error("Could not open output file for writing."); if (!out.good()) throw std::runtime_error("Could not open output file for writing.");
auto C = make_context({1, O.gpu}); auto C = make_context({1, O.gpu});
auto R = linear{O.L, O.dx, O.Xi, O.dX}; auto R = linear{O.L, O.dx, O.Xi, O.dX};
simulation S(R, partition_load_balance(R, C), C); simulation S(R, C, partition_load_balance(R, C));
S.add_sampler(all_probes, regular_schedule(O.ds), sampler); S.add_sampler(all_probes, regular_schedule(O.ds), sampler);
S.run(O.T, O.dt); S.run(O.T, O.dt);
out.close(); out.close();
......
#!/usr/bin/env python3 #!/usr/bin/env python3
import arbor as A import arbor as A
import pandas as pd
import seaborn as sns import seaborn as sns
import matplotlib.pyplot as plt import matplotlib.pyplot as plt
......
...@@ -114,7 +114,7 @@ testing::AssertionResult run(const linear& rec, const result_t exp) { ...@@ -114,7 +114,7 @@ testing::AssertionResult run(const linear& rec, const result_t exp) {
} }
}; };
auto ctx = make_context({arbenv::default_concurrency(), with_gpu}); auto ctx = make_context({arbenv::default_concurrency(), with_gpu});
auto sim = simulation{rec, partition_load_balance(rec, ctx), ctx}; auto sim = simulation{rec, ctx, partition_load_balance(rec, ctx)};
sim.add_sampler(arb::all_probes, arb::regular_schedule(0.1), sampler); sim.add_sampler(arb::all_probes, arb::regular_schedule(0.1), sampler);
sim.run(0.11, 0.01); sim.run(0.11, 0.01);
return all_near(sample_values, exp, epsilon); return all_near(sample_values, exp, epsilon);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment