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
d6777b61
Commit
d6777b61
authored
16 years ago
by
Christophe Geuzaine
Browse files
Options
Downloads
Patches
Plain Diff
deal with netgen exceptions
parent
7b80350c
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
contrib/Netgen/nglib_addon.cpp
+20
-10
20 additions, 10 deletions
contrib/Netgen/nglib_addon.cpp
with
20 additions
and
10 deletions
contrib/Netgen/nglib_addon.cpp
+
20
−
10
View file @
d6777b61
...
@@ -31,7 +31,7 @@ class mystreambuf: public streambuf
...
@@ -31,7 +31,7 @@ class mystreambuf: public streambuf
}
}
else
{
else
{
if
(
!
strncmp
(
txt
,
"ERROR"
,
5
))
if
(
!
strncmp
(
txt
,
"ERROR"
,
5
))
Msg
::
Fatal
(
txt
);
Msg
::
Error
(
txt
);
else
else
Msg
::
Info
(
txt
);
Msg
::
Info
(
txt
);
}
}
...
@@ -76,11 +76,16 @@ Ng_Result NgAddOn_GenerateVolumeMesh(Ng_Mesh *mesh, double maxh)
...
@@ -76,11 +76,16 @@ Ng_Result NgAddOn_GenerateVolumeMesh(Ng_Mesh *mesh, double maxh)
MeshingParameters
mparam
;
MeshingParameters
mparam
;
mparam
.
uselocalh
=
1
;
mparam
.
uselocalh
=
1
;
mparam
.
maxh
=
maxh
;
mparam
.
maxh
=
maxh
;
m
->
CalcLocalH
();
try
{
MeshVolume
(
mparam
,
*
m
);
m
->
CalcLocalH
();
//RemoveIllegalElements(*m);
MeshVolume
(
mparam
,
*
m
);
//OptimizeVolume(mparam, *m);
//RemoveIllegalElements(*m);
//OptimizeVolume(mparam, *m);
}
catch
(
netgen
::
NgException
error
){
return
NG_VOLUME_FAILURE
;
}
return
NG_OK
;
return
NG_OK
;
}
}
...
@@ -93,10 +98,15 @@ Ng_Result NgAddOn_OptimizeVolumeMesh(Ng_Mesh *mesh, double maxh)
...
@@ -93,10 +98,15 @@ Ng_Result NgAddOn_OptimizeVolumeMesh(Ng_Mesh *mesh, double maxh)
mparam
.
uselocalh
=
1
;
mparam
.
uselocalh
=
1
;
mparam
.
maxh
=
maxh
;
mparam
.
maxh
=
maxh
;
m
->
CalcLocalH
();
try
{
//MeshVolume(mparam, *m);
m
->
CalcLocalH
();
RemoveIllegalElements
(
*
m
);
//MeshVolume(mparam, *m);
OptimizeVolume
(
mparam
,
*
m
);
RemoveIllegalElements
(
*
m
);
OptimizeVolume
(
mparam
,
*
m
);
}
catch
(
netgen
::
NgException
error
){
return
NG_VOLUME_FAILURE
;
}
return
NG_OK
;
return
NG_OK
;
}
}
...
...
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