Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Nektar
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Iterations
Merge Requests
0
Merge Requests
0
Requirements
Requirements
List
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Operations
Operations
Incidents
Packages & Registries
Packages & Registries
Container Registry
Analytics
Analytics
Code Review
Insights
Issue
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Julia
Nektar
Commits
ed6aa656
Commit
ed6aa656
authored
Mar 05, 2014
by
Dave Moxey
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix post-merge issues
parent
7414f733
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
37 additions
and
37 deletions
+37
-37
library/LibUtilities/BasicUtils/ShapeType.hpp
library/LibUtilities/BasicUtils/ShapeType.hpp
+4
-4
library/SpatialDomains/PyrGeom.cpp
library/SpatialDomains/PyrGeom.cpp
+1
-1
library/StdRegions/StdPyrExp.cpp
library/StdRegions/StdPyrExp.cpp
+1
-1
utilities/PreProcessing/MeshConvert/MeshElements.cpp
utilities/PreProcessing/MeshConvert/MeshElements.cpp
+29
-29
utilities/PreProcessing/MeshConvert/MeshElements.h
utilities/PreProcessing/MeshConvert/MeshElements.h
+2
-2
No files found.
library/LibUtilities/BasicUtils/ShapeType.hpp
View file @
ed6aa656
...
...
@@ -188,8 +188,8 @@ namespace Nektar
ASSERTL2
(
Na
>
1
,
"Order in 'a' direction must be > 1."
);
ASSERTL2
(
Nb
>
1
,
"Order in 'b' direction must be > 1."
);
ASSERTL2
(
Nc
>
1
,
"Order in 'c' direction must be > 1."
);
ASSERTL1
(
Na
<=
N
b
,
"order in 'a' direction is higher "
"than order in '
b
' direction"
);
ASSERTL1
(
Na
<=
N
c
,
"order in 'a' direction is higher "
"than order in '
c
' direction"
);
ASSERTL1
(
Nb
<=
Nc
,
"order in 'b' direction is higher "
"than order in 'c' direction"
);
int
nCoef
=
0
;
...
...
@@ -211,8 +211,8 @@ namespace Nektar
ASSERTL2
(
Na
>
1
,
"Order in 'a' direction must be > 1."
);
ASSERTL2
(
Nb
>
1
,
"Order in 'b' direction must be > 1."
);
ASSERTL2
(
Nc
>
1
,
"Order in 'c' direction must be > 1."
);
ASSERTL1
(
Na
<=
N
b
,
"order in 'a' direction is higher "
"than order in '
b
' direction"
);
ASSERTL1
(
Na
<=
N
c
,
"order in 'a' direction is higher "
"than order in '
c
' direction"
);
ASSERTL1
(
Nb
<=
Nc
,
"order in 'b' direction is higher "
"than order in 'c' direction"
);
...
...
library/SpatialDomains/PyrGeom.cpp
View file @
ed6aa656
...
...
@@ -175,7 +175,7 @@ namespace Nektar
{
if
(
m_geomFactorsState
!=
ePtsFilled
)
{
int
i
,
f
;
int
i
;
GeomType
Gtype
=
eRegular
;
v_FillGeom
();
...
...
library/StdRegions/StdPyrExp.cpp
View file @
ed6aa656
...
...
@@ -798,7 +798,7 @@ namespace Nektar
// Evaluation functions
//---------------------------------------
NekDouble
StdPyrExp
::
v_LocCoordToLocCollapsed
(
void
StdPyrExp
::
v_LocCoordToLocCollapsed
(
const
Array
<
OneD
,
const
NekDouble
>&
xi
,
Array
<
OneD
,
NekDouble
>&
eta
)
{
...
...
utilities/PreProcessing/MeshConvert/MeshElements.cpp
View file @
ed6aa656
...
...
@@ -1202,8 +1202,8 @@ namespace Nektar
}
}
Element
Type
Pyramid
::
type
=
GetElementFactory
().
RegisterCreatorFunction
(
ePyramid
,
Pyramid
::
create
,
"Pyramid"
);
LibUtilities
::
Shape
Type
Pyramid
::
type
=
GetElementFactory
().
RegisterCreatorFunction
(
LibUtilities
::
ePyramid
,
Pyramid
::
create
,
"Pyramid"
);
/**
* @brief Create a pyramidic element.
...
...
@@ -1216,7 +1216,7 @@ namespace Nektar
m_tag
=
"P"
;
m_dim
=
3
;
m_taglist
=
pTagList
;
int
n
=
m_conf
.
order
-
1
;
int
n
=
m_conf
.
m_
order
-
1
;
// This edge-node map is based on Nektar++ ordering.
map
<
pair
<
int
,
int
>
,
int
>
edgeNodeMap
;
...
...
@@ -1233,7 +1233,7 @@ namespace Nektar
// Add vertices
for
(
int
i
=
0
;
i
<
5
;
++
i
)
{
vertex
.
push_back
(
pNodeList
[
i
]);
m_
vertex
.
push_back
(
pNodeList
[
i
]);
}
// Create edges (with corresponding set of edge points)
...
...
@@ -1241,19 +1241,19 @@ namespace Nektar
for
(
it
=
edgeNodeMap
.
begin
();
it
!=
edgeNodeMap
.
end
();
++
it
)
{
vector
<
NodeSharedPtr
>
edgeNodes
;
if
(
m_conf
.
order
>
1
)
if
(
m_conf
.
m_
order
>
1
)
{
for
(
int
j
=
it
->
second
;
j
<
it
->
second
+
n
;
++
j
)
{
edgeNodes
.
push_back
(
pNodeList
[
j
-
1
]);
}
}
edge
.
push_back
(
m_
edge
.
push_back
(
EdgeSharedPtr
(
new
Edge
(
pNodeList
[
it
->
first
.
first
-
1
],
pNodeList
[
it
->
first
.
second
-
1
],
edgeNodes
,
m_conf
.
edgeCurveType
)));
edge
.
back
()
->
id
=
eid
++
;
m_conf
.
m_
edgeCurveType
)));
m_edge
.
back
()
->
m_
id
=
eid
++
;
}
// Create faces
...
...
@@ -1271,22 +1271,22 @@ namespace Nektar
for
(
int
k
=
0
;
k
<
nEdge
;
++
k
)
{
faceVertices
.
push_back
(
vertex
[
face_ids
[
j
][
k
]]);
NodeSharedPtr
a
=
vertex
[
face_ids
[
j
][
k
]];
NodeSharedPtr
b
=
vertex
[
face_ids
[
j
][(
k
+
1
)
%
nEdge
]];
for
(
unsigned
int
i
=
0
;
i
<
edge
.
size
();
++
i
)
faceVertices
.
push_back
(
m_
vertex
[
face_ids
[
j
][
k
]]);
NodeSharedPtr
a
=
m_
vertex
[
face_ids
[
j
][
k
]];
NodeSharedPtr
b
=
m_
vertex
[
face_ids
[
j
][(
k
+
1
)
%
nEdge
]];
for
(
unsigned
int
i
=
0
;
i
<
m_
edge
.
size
();
++
i
)
{
if
((
edge
[
i
]
->
n1
==
a
&&
edge
[
i
]
->
n2
==
b
)
||
(
edge
[
i
]
->
n1
==
b
&&
edge
[
i
]
->
n2
==
a
))
if
((
m_edge
[
i
]
->
m_n1
==
a
&&
m_edge
[
i
]
->
m_
n2
==
b
)
||
(
m_edge
[
i
]
->
m_n1
==
b
&&
m_edge
[
i
]
->
m_
n2
==
a
))
{
faceEdges
.
push_back
(
edge
[
i
]);
faceEdges
.
push_back
(
m_
edge
[
i
]);
face_edges
[
j
][
k
]
=
i
;
break
;
}
}
}
if
(
m_conf
.
faceNodes
)
if
(
m_conf
.
m_
faceNodes
)
{
int
facenodes
=
j
==
0
?
n
*
n
:
n
*
(
n
-
1
)
/
2
;
faceoffset
+=
facenodes
;
...
...
@@ -1296,20 +1296,20 @@ namespace Nektar
faceNodes
.
push_back
(
pNodeList
[
N
+
i
]);
}
}
face
.
push_back
(
FaceSharedPtr
(
new
Face
(
faceVertices
,
faceNodes
,
faceEdges
,
m_conf
.
faceCurveType
)));
m_
face
.
push_back
(
FaceSharedPtr
(
new
Face
(
faceVertices
,
faceNodes
,
faceEdges
,
m_conf
.
m_
faceCurveType
)));
}
vector
<
EdgeSharedPtr
>
tmp
(
8
);
tmp
[
0
]
=
edge
[
face_edges
[
0
][
0
]];
tmp
[
1
]
=
edge
[
face_edges
[
0
][
1
]];
tmp
[
2
]
=
edge
[
face_edges
[
0
][
2
]];
tmp
[
3
]
=
edge
[
face_edges
[
0
][
3
]];
tmp
[
4
]
=
edge
[
face_edges
[
1
][
2
]];
tmp
[
5
]
=
edge
[
face_edges
[
1
][
1
]];
tmp
[
6
]
=
edge
[
face_edges
[
3
][
1
]];
tmp
[
7
]
=
edge
[
face_edges
[
3
][
2
]];
edge
=
tmp
;
tmp
[
0
]
=
m_
edge
[
face_edges
[
0
][
0
]];
tmp
[
1
]
=
m_
edge
[
face_edges
[
0
][
1
]];
tmp
[
2
]
=
m_
edge
[
face_edges
[
0
][
2
]];
tmp
[
3
]
=
m_
edge
[
face_edges
[
0
][
3
]];
tmp
[
4
]
=
m_
edge
[
face_edges
[
1
][
2
]];
tmp
[
5
]
=
m_
edge
[
face_edges
[
1
][
1
]];
tmp
[
6
]
=
m_
edge
[
face_edges
[
3
][
1
]];
tmp
[
7
]
=
m_
edge
[
face_edges
[
3
][
2
]];
m_
edge
=
tmp
;
}
SpatialDomains
::
GeometrySharedPtr
Pyramid
::
GetGeom
(
int
coordDim
)
...
...
@@ -1318,7 +1318,7 @@ namespace Nektar
for
(
int
i
=
0
;
i
<
5
;
++
i
)
{
faces
[
i
]
=
face
[
i
]
->
GetGeom
(
coordDim
);
faces
[
i
]
=
m_
face
[
i
]
->
GetGeom
(
coordDim
);
}
m_geom
=
MemoryManager
<
SpatialDomains
::
PyrGeom
>::
...
...
@@ -1332,7 +1332,7 @@ namespace Nektar
*/
unsigned
int
Pyramid
::
GetNumNodes
(
ElmtConfig
pConf
)
{
int
n
=
pConf
.
order
;
int
n
=
pConf
.
m_
order
;
return
5
+
8
*
(
n
-
1
);
}
...
...
utilities/PreProcessing/MeshConvert/MeshElements.h
View file @
ed6aa656
...
...
@@ -1393,12 +1393,12 @@ namespace Nektar
vector
<
FaceSharedPtr
>
faces
=
e
->
GetFaceList
();
for
(
int
i
=
0
;
i
<
faces
.
size
();
++
i
)
{
faces
[
i
]
->
elLink
.
push_back
(
pair
<
ElementSharedPtr
,
int
>
(
e
,
i
));
faces
[
i
]
->
m_
elLink
.
push_back
(
pair
<
ElementSharedPtr
,
int
>
(
e
,
i
));
}
return
e
;
}
/// Element type
static
Element
Type
type
;
static
LibUtilities
::
Shape
Type
type
;
Pyramid
(
ElmtConfig
pConf
,
std
::
vector
<
NodeSharedPtr
>
pNodeList
,
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment