Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
gmsh
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Larry Price
gmsh
Commits
e9add275
Commit
e9add275
authored
9 years ago
by
Koen Hillewaert
Browse files
Options
Downloads
Patches
Plain Diff
Modification to avoid seg fault while stopping Gmsh (on linux)
parent
68a81283
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
contrib/Netgen/libsrc/general/profiler.cpp
+3
-1
3 additions, 1 deletion
contrib/Netgen/libsrc/general/profiler.cpp
contrib/Netgen/libsrc/general/profiler.hpp
+2
-0
2 additions, 0 deletions
contrib/Netgen/libsrc/general/profiler.hpp
with
5 additions
and
1 deletion
contrib/Netgen/libsrc/general/profiler.cpp
+
3
−
1
View file @
e9add275
...
@@ -6,6 +6,7 @@
...
@@ -6,6 +6,7 @@
#include
<myadt.hpp>
#include
<myadt.hpp>
#include
<cstdlib>
namespace
netgen
namespace
netgen
{
{
...
@@ -28,6 +29,7 @@ namespace netgen
...
@@ -28,6 +29,7 @@ namespace netgen
total_timer
=
CreateTimer
(
"total CPU time"
);
total_timer
=
CreateTimer
(
"total CPU time"
);
StartTimer
(
total_timer
);
StartTimer
(
total_timer
);
envNGPROFILE
=
getenv
(
"NGPROFILE"
);
}
}
NgProfiler
::
~
NgProfiler
()
NgProfiler
::
~
NgProfiler
()
...
@@ -43,7 +45,7 @@ namespace netgen
...
@@ -43,7 +45,7 @@ namespace netgen
// which leads to an "order of destruction"-problem,
// which leads to an "order of destruction"-problem,
// thus we use the C-variant:
// thus we use the C-variant:
if
(
getenv
(
"
NGPROFILE
"
)
)
if
(
env
NGPROFILE
)
{
{
char
filename
[
100
];
char
filename
[
100
];
#ifdef PARALLEL
#ifdef PARALLEL
...
...
This diff is collapsed.
Click to expand it.
contrib/Netgen/libsrc/general/profiler.hpp
+
2
−
0
View file @
e9add275
...
@@ -30,7 +30,9 @@ class NgProfiler
...
@@ -30,7 +30,9 @@ class NgProfiler
static
string
names
[
SIZE
];
static
string
names
[
SIZE
];
static
int
usedcounter
[
SIZE
];
static
int
usedcounter
[
SIZE
];
bool
envNGPROFILE
;
int
total_timer
;
int
total_timer
;
public
:
public
:
NgProfiler
();
NgProfiler
();
~
NgProfiler
();
~
NgProfiler
();
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
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