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
83ce887d
Commit
83ce887d
authored
11 years ago
by
Amaury Johnen
Browse files
Options
Downloads
Patches
Plain Diff
add BasisFactory::clearAll()
parent
b7cf4524
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
Numeric/BasisFactory.cpp
+21
-0
21 additions, 0 deletions
Numeric/BasisFactory.cpp
Numeric/BasisFactory.h
+2
-0
2 additions, 0 deletions
Numeric/BasisFactory.h
with
23 additions
and
0 deletions
Numeric/BasisFactory.cpp
+
21
−
0
View file @
83ce887d
...
@@ -71,3 +71,24 @@ const JacobianBasis* BasisFactory::getJacobianBasis(int elementType)
...
@@ -71,3 +71,24 @@ const JacobianBasis* BasisFactory::getJacobianBasis(int elementType)
if
(
J
)
js
.
insert
(
std
::
make_pair
(
elementType
,
J
));
if
(
J
)
js
.
insert
(
std
::
make_pair
(
elementType
,
J
));
return
J
;
return
J
;
}
}
void
BasisFactory
::
clearAll
()
{
std
::
map
<
int
,
nodalBasis
*>::
iterator
itF
=
fs
.
begin
();
while
(
itF
!=
fs
.
end
())
{
delete
itF
->
second
;
}
fs
.
clear
();
std
::
map
<
int
,
JacobianBasis
*>::
iterator
itJ
=
js
.
begin
();
while
(
itJ
!=
js
.
end
())
{
delete
itJ
->
second
;
}
js
.
clear
();
std
::
map
<
int
,
bezierBasis
*>::
iterator
itB
=
bs
.
begin
();
while
(
itB
!=
bs
.
end
())
{
delete
itB
->
second
;
}
bs
.
clear
();
}
This diff is collapsed.
Click to expand it.
Numeric/BasisFactory.h
+
2
−
0
View file @
83ce887d
...
@@ -24,6 +24,8 @@ class BasisFactory
...
@@ -24,6 +24,8 @@ class BasisFactory
static
const
nodalBasis
*
getNodalBasis
(
int
elementType
);
static
const
nodalBasis
*
getNodalBasis
(
int
elementType
);
static
const
bezierBasis
*
getBezierBasis
(
int
elementType
);
static
const
bezierBasis
*
getBezierBasis
(
int
elementType
);
static
const
JacobianBasis
*
getJacobianBasis
(
int
elementType
);
static
const
JacobianBasis
*
getJacobianBasis
(
int
elementType
);
static
void
clearAll
();
};
};
#endif
#endif
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