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
6a382347
Commit
6a382347
authored
16 years ago
by
Christophe Geuzaine
Browse files
Options
Downloads
Patches
Plain Diff
new netgen leaves crumbs all over the place
parent
f4eabe49
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
contrib/Netgen/libsrc/general/profiler.cpp
+4
-3
4 additions, 3 deletions
contrib/Netgen/libsrc/general/profiler.cpp
contrib/Netgen/nglib_addon.cpp
+7
-9
7 additions, 9 deletions
contrib/Netgen/nglib_addon.cpp
with
11 additions
and
12 deletions
contrib/Netgen/libsrc/general/profiler.cpp
+
4
−
3
View file @
6a382347
...
@@ -48,9 +48,10 @@ namespace netgen
...
@@ -48,9 +48,10 @@ namespace netgen
sprintf
(
filename
,
"netgen.prof"
);
sprintf
(
filename
,
"netgen.prof"
);
#endif
#endif
FILE
*
prof
=
fopen
(
filename
,
"w"
);
// MODIFIED FOR GMSH
Print
(
prof
);
//FILE *prof = fopen(filename,"w");
fclose
(
prof
);
//Print (prof);
//fclose(prof);
}
}
...
...
This diff is collapsed.
Click to expand it.
contrib/Netgen/nglib_addon.cpp
+
7
−
9
View file @
6a382347
...
@@ -15,18 +15,15 @@ using namespace netgen;
...
@@ -15,18 +15,15 @@ using namespace netgen;
namespace
nglib
namespace
nglib
{
{
class
mystreambuf
:
public
streambuf
class
mystreambuf
:
public
streambuf
{
{
int
index
;
int
index
;
char
txt
[
1024
];
char
txt
[
1024
];
public:
public:
mystreambuf
()
{
mystreambuf
()
:
index
(
0
)
{}
index
=
0
;
int
sync
()
}
{
int
sync
(){
txt
[
index
]
=
'\0'
;
txt
[
index
]
=
'\0'
;
if
(
!
index
||
if
(
!
index
||
(
index
==
1
&&
(
txt
[
0
]
==
'.'
||
txt
[
0
]
==
'+'
||
txt
[
0
]
==
' '
))){
(
index
==
1
&&
(
txt
[
0
]
==
'.'
||
txt
[
0
]
==
'+'
||
txt
[
0
]
==
' '
))){
// ignore these messages
// ignore these messages
}
}
else
{
else
{
...
@@ -38,7 +35,8 @@ class mystreambuf: public streambuf
...
@@ -38,7 +35,8 @@ class mystreambuf: public streambuf
index
=
0
;
index
=
0
;
return
0
;
return
0
;
}
}
int
overflow
(
int
ch
){
int
overflow
(
int
ch
)
{
if
(
index
<
1023
){
if
(
index
<
1023
){
txt
[
index
]
=
ch
;
txt
[
index
]
=
ch
;
if
(
txt
[
index
]
==
'\n'
||
txt
[
index
]
==
'\r'
)
txt
[
index
]
=
' '
;
if
(
txt
[
index
]
==
'\n'
||
txt
[
index
]
==
'\r'
)
txt
[
index
]
=
' '
;
...
...
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