Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
A
arbor
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Analyze
Contributor analytics
Repository analytics
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
arbor-sim
arbor
Commits
49ae16a9
Unverified
Commit
49ae16a9
authored
2 years ago
by
Brent Huisman
Committed by
GitHub
2 years ago
Browse files
Options
Downloads
Patches
Plain Diff
Two context decomp swaps were forgotten (#1912)
parent
f685f0e3
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
example/diffusion/diffusion.cpp
+1
-1
1 addition, 1 deletion
example/diffusion/diffusion.cpp
python/example/diffusion.py
+0
-1
0 additions, 1 deletion
python/example/diffusion.py
test/unit/test_diffusion.cpp
+1
-1
1 addition, 1 deletion
test/unit/test_diffusion.cpp
with
2 additions
and
3 deletions
example/diffusion/diffusion.cpp
+
1
−
1
View file @
49ae16a9
...
...
@@ -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
();
...
...
This diff is collapsed.
Click to expand it.
python/example/diffusion.py
+
0
−
1
View file @
49ae16a9
#!/usr/bin/env python3
import
arbor
as
A
import
pandas
as
pd
import
seaborn
as
sns
import
matplotlib.pyplot
as
plt
...
...
This diff is collapsed.
Click to expand it.
test/unit/test_diffusion.cpp
+
1
−
1
View file @
49ae16a9
...
...
@@ -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
);
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment