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
No related branches found
No related tags found
No related merge requests found
......@@ -119,7 +119,7 @@ int main(int argc, char** argv) {
if (!out.good()) throw std::runtime_error("Could not open output file for writing.");
auto C = make_context({1, O.gpu});
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.run(O.T, O.dt);
out.close();
......
#!/usr/bin/env python3
import arbor as A
import pandas as pd
import seaborn as sns
import matplotlib.pyplot as plt
......
......@@ -114,7 +114,7 @@ testing::AssertionResult run(const linear& rec, const result_t exp) {
}
};
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.run(0.11, 0.01);
return all_near(sample_values, exp, epsilon);
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment