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
00e2b085
Commit
00e2b085
authored
12 years ago
by
Éric Béchet
Browse files
Options
Downloads
Patches
Plain Diff
added constructor for subelements
parent
f7eeeb37
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
Geo/MSubElement.h
+11
-0
11 additions, 0 deletions
Geo/MSubElement.h
with
11 additions
and
0 deletions
Geo/MSubElement.h
+
11
−
0
View file @
00e2b085
...
@@ -31,6 +31,9 @@ class MSubTetrahedron : public MTetrahedron
...
@@ -31,6 +31,9 @@ class MSubTetrahedron : public MTetrahedron
MSubTetrahedron
(
std
::
vector
<
MVertex
*>
v
,
int
num
=
0
,
int
part
=
0
,
bool
owner
=
false
,
MSubTetrahedron
(
std
::
vector
<
MVertex
*>
v
,
int
num
=
0
,
int
part
=
0
,
bool
owner
=
false
,
MElement
*
orig
=
NULL
)
MElement
*
orig
=
NULL
)
:
MTetrahedron
(
v
,
num
,
part
),
_owner
(
owner
),
_orig
(
orig
),
_intpt
(
0
)
{}
:
MTetrahedron
(
v
,
num
,
part
),
_owner
(
owner
),
_orig
(
orig
),
_intpt
(
0
)
{}
MSubTetrahedron
(
const
MTetrahedron
&
tet
,
bool
owner
=
false
,
MElement
*
orig
=
NULL
)
:
MTetrahedron
(
tet
),
_owner
(
owner
),
_orig
(
orig
),
_intpt
(
0
)
{}
~
MSubTetrahedron
();
~
MSubTetrahedron
();
virtual
int
getTypeForMSH
()
const
{
return
MSH_TET_SUB
;
}
virtual
int
getTypeForMSH
()
const
{
return
MSH_TET_SUB
;
}
virtual
const
polynomialBasis
*
getFunctionSpace
(
int
order
=-
1
)
const
;
virtual
const
polynomialBasis
*
getFunctionSpace
(
int
order
=-
1
)
const
;
...
@@ -66,6 +69,8 @@ class MSubTriangle : public MTriangle
...
@@ -66,6 +69,8 @@ class MSubTriangle : public MTriangle
MSubTriangle
(
std
::
vector
<
MVertex
*>
v
,
int
num
=
0
,
int
part
=
0
,
bool
owner
=
false
,
MSubTriangle
(
std
::
vector
<
MVertex
*>
v
,
int
num
=
0
,
int
part
=
0
,
bool
owner
=
false
,
MElement
*
orig
=
NULL
)
MElement
*
orig
=
NULL
)
:
MTriangle
(
v
,
num
,
part
),
_owner
(
owner
),
_orig
(
orig
),
_intpt
(
0
)
{}
:
MTriangle
(
v
,
num
,
part
),
_owner
(
owner
),
_orig
(
orig
),
_intpt
(
0
)
{}
MSubTriangle
(
const
MTriangle
&
tri
,
bool
owner
=
false
,
MElement
*
orig
=
NULL
)
:
MTriangle
(
tri
),
_owner
(
owner
),
_orig
(
orig
),
_intpt
(
0
)
{}
~
MSubTriangle
();
~
MSubTriangle
();
virtual
int
getTypeForMSH
()
const
{
return
MSH_TRI_SUB
;
}
virtual
int
getTypeForMSH
()
const
{
return
MSH_TRI_SUB
;
}
virtual
const
polynomialBasis
*
getFunctionSpace
(
int
order
=-
1
)
const
;
virtual
const
polynomialBasis
*
getFunctionSpace
(
int
order
=-
1
)
const
;
...
@@ -101,6 +106,9 @@ class MSubLine : public MLine
...
@@ -101,6 +106,9 @@ class MSubLine : public MLine
MSubLine
(
std
::
vector
<
MVertex
*>
v
,
int
num
=
0
,
int
part
=
0
,
bool
owner
=
false
,
MSubLine
(
std
::
vector
<
MVertex
*>
v
,
int
num
=
0
,
int
part
=
0
,
bool
owner
=
false
,
MElement
*
orig
=
NULL
)
MElement
*
orig
=
NULL
)
:
MLine
(
v
,
num
,
part
),
_owner
(
owner
),
_orig
(
orig
),
_intpt
(
0
)
{}
:
MLine
(
v
,
num
,
part
),
_owner
(
owner
),
_orig
(
orig
),
_intpt
(
0
)
{}
MSubLine
(
const
MLine
&
lin
,
bool
owner
=
false
,
MElement
*
orig
=
NULL
)
:
MLine
(
lin
),
_owner
(
owner
),
_orig
(
orig
),
_intpt
(
0
)
{}
~
MSubLine
();
~
MSubLine
();
virtual
int
getTypeForMSH
()
const
{
return
MSH_LIN_SUB
;
}
virtual
int
getTypeForMSH
()
const
{
return
MSH_LIN_SUB
;
}
virtual
const
polynomialBasis
*
getFunctionSpace
(
int
order
=-
1
)
const
;
virtual
const
polynomialBasis
*
getFunctionSpace
(
int
order
=-
1
)
const
;
...
@@ -135,6 +143,9 @@ class MSubPoint : public MPoint
...
@@ -135,6 +143,9 @@ class MSubPoint : public MPoint
MSubPoint
(
std
::
vector
<
MVertex
*>
v
,
int
num
=
0
,
int
part
=
0
,
bool
owner
=
false
,
MSubPoint
(
std
::
vector
<
MVertex
*>
v
,
int
num
=
0
,
int
part
=
0
,
bool
owner
=
false
,
MElement
*
orig
=
NULL
)
MElement
*
orig
=
NULL
)
:
MPoint
(
v
,
num
,
part
),
_owner
(
owner
),
_orig
(
orig
),
_intpt
(
0
)
{}
:
MPoint
(
v
,
num
,
part
),
_owner
(
owner
),
_orig
(
orig
),
_intpt
(
0
)
{}
MSubPoint
(
const
MPoint
&
pt
,
bool
owner
=
false
,
MElement
*
orig
=
NULL
)
:
MPoint
(
pt
),
_owner
(
owner
),
_orig
(
orig
),
_intpt
(
0
)
{}
~
MSubPoint
();
~
MSubPoint
();
virtual
int
getTypeForMSH
()
const
{
return
MSH_PNT_SUB
;
}
virtual
int
getTypeForMSH
()
const
{
return
MSH_PNT_SUB
;
}
virtual
const
polynomialBasis
*
getFunctionSpace
(
int
order
=-
1
)
const
;
virtual
const
polynomialBasis
*
getFunctionSpace
(
int
order
=-
1
)
const
;
...
...
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