Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
Daniel Perry
Nektar
Commits
40c100bf
Commit
40c100bf
authored
Aug 26, 2013
by
Chris Cantwell
Browse files
Merge branch 'fix/TetGeomRead' of /opt/gitlab/repositories/nektar
parents
e45e8713
b75e0f74
Changes
3
Hide whitespace changes
Inline
Side-by-side
library/SpatialDomains/TetGeom.cpp
View file @
40c100bf
...
...
@@ -333,27 +333,35 @@ namespace Nektar
SegGeomSharedPtr
edge
;
// First set up the 3 bottom edges
if
(
m_faces
[
0
]
->
GetEid
(
0
)
!=
m_faces
[
1
]
->
GetEid
(
0
))
{
std
::
ostringstream
errstrm
;
errstrm
<<
"Local edge 0 (eid="
<<
m_faces
[
0
]
->
GetEid
(
0
);
errstrm
<<
") on face "
<<
m_faces
[
0
]
->
GetFid
();
errstrm
<<
" must be the same as local edge 0 (eid="
<<
m_faces
[
1
]
->
GetEid
(
0
);
errstrm
<<
") on face "
<<
m_faces
[
1
]
->
GetFid
();
ASSERTL0
(
false
,
errstrm
.
str
());
}
int
faceConnected
;
for
(
faceConnected
=
1
;
faceConnected
<
4
;
faceConnected
++
)
{
check
=
0
;
for
(
i
=
0
;
i
<
3
;
i
++
)
{
for
(
j
=
0
;
j
<
3
;
j
++
)
if
(
(
m_faces
[
0
])
->
GetEid
(
i
)
==
(
m_faces
[
faceConnected
])
->
GetEid
(
0
)
)
{
if
(
(
m_faces
[
0
])
->
GetEid
(
i
)
==
(
m_faces
[
faceConnected
])
->
GetEid
(
j
)
)
{
edge
=
boost
::
dynamic_pointer_cast
<
SegGeom
>
((
m_faces
[
0
])
->
GetEdge
(
i
));
m_edges
.
push_back
(
edge
);
check
++
;
}
edge
=
boost
::
dynamic_pointer_cast
<
SegGeom
>
((
m_faces
[
0
])
->
GetEdge
(
i
));
m_edges
.
push_back
(
edge
);
check
++
;
}
}
if
(
check
<
1
)
{
std
::
ostringstream
errstrm
;
errstrm
<<
"
Connected faces
do not share an edge. Faces "
;
errstrm
<<
"
Face 0
do
es
not share an edge
with first edge of adjacent face
. Faces "
;
errstrm
<<
(
m_faces
[
0
])
->
GetFid
()
<<
", "
<<
(
m_faces
[
faceConnected
])
->
GetFid
();
ASSERTL0
(
false
,
errstrm
.
str
());
}
...
...
@@ -366,6 +374,7 @@ namespace Nektar
}
}
// Then, set up the 3 vertical edges
check
=
0
;
for
(
i
=
0
;
i
<
3
;
i
++
)
//Set up the vertical edge :face(1) and face(3)
...
...
solvers/IncNavierStokesSolver/EquationSystems/VelocityCorrectionScheme.cpp
View file @
40c100bf
...
...
@@ -788,7 +788,6 @@ namespace Nektar
Pbc
->
NormVectorIProductWRTBase
(
Uy
,
Vx
,
Pvals
);
}
}
// setting if just standard BC not High order
else
if
(
type
==
SpatialDomains
::
eNoUserDefined
||
type
==
SpatialDomains
::
eTimeDependent
)
{
...
...
solvers/IncNavierStokesSolver/Utilities/CFLStep.cpp
View file @
40c100bf
...
...
@@ -43,7 +43,7 @@ int main(int argc, char *argv[])
Array
<
OneD
,
MultiRegions
::
ExpListSharedPtr
>
fields
=
IncNav
->
UpdateFields
();
int
i
,
n
,
nquad
,
cnt
;
int
nfields
=
fields
.
num_elements
();
int
nexp
=
fields
[
n
]
->
GetExpSize
();
int
nexp
=
fields
[
0
]
->
GetExpSize
();
int
elmtid
=
Vmath
::
Imax
(
nexp
,
cfl
,
1
);
...
...
Write
Preview
Supports
Markdown
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