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
a14a7485
Commit
a14a7485
authored
8 years ago
by
Benjamin Cumming
Browse files
Options
Downloads
Patches
Plain Diff
small fix when profiler is turned off
parent
0cdeedbc
No related branches found
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
miniapp/io.cpp
+1
-1
1 addition, 1 deletion
miniapp/io.cpp
miniapp/miniapp.cpp
+1
-1
1 addition, 1 deletion
miniapp/miniapp.cpp
src/profiling/profiler.hpp
+2
-0
2 additions, 0 deletions
src/profiling/profiler.hpp
with
4 additions
and
2 deletions
miniapp/io.cpp
+
1
−
1
View file @
a14a7485
...
...
@@ -8,7 +8,7 @@ namespace io {
// for now this is just a placeholder
options
read_options
(
std
::
string
fname
)
{
// 10 cells, 1 synapses per cell, 10 compartments per segment
return
{
10
00
,
1
,
100
};
return
{
2
00
,
1
,
100
};
}
std
::
ostream
&
operator
<<
(
std
::
ostream
&
o
,
const
options
&
opt
)
{
...
...
This diff is collapsed.
Click to expand it.
miniapp/miniapp.cpp
+
1
−
1
View file @
a14a7485
...
...
@@ -150,7 +150,7 @@ int main(int argc, char** argv) {
//
// time stepping
//
auto
tfinal
=
20
0
.
;
auto
tfinal
=
20.
;
auto
dt
=
0.01
;
auto
id
=
m
.
communicator
.
domain_id
();
...
...
This diff is collapsed.
Click to expand it.
src/profiling/profiler.hpp
+
2
−
0
View file @
a14a7485
...
...
@@ -218,8 +218,10 @@ void profiler_enter(const char* n);
/// enter nested profiler regions in a single call
template
<
class
...
Args
>
void
profiler_enter
(
const
char
*
n
,
Args
...
args
)
{
#ifdef WITH_PROFILING
get_profiler
().
enter
(
n
);
profiler_enter
(
args
...);
#endif
}
/// move up one level in the profiler
...
...
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