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
Nektar
Nektar
Commits
d6c31a69
Commit
d6c31a69
authored
Feb 28, 2013
by
Pavel Burovskiy
Browse files
Fixing few compile warnings about uninitialised/unused variables
parent
612a6e36
Changes
9
Hide whitespace changes
Inline
Side-by-side
library/Demos/LocalRegions/LocProject2D.cpp
View file @
d6c31a69
...
...
@@ -23,9 +23,10 @@ int main(int argc, char *argv[])
int
order1
,
order2
,
nq1
,
nq2
;
LibUtilities
::
PointsType
Qtype1
,
Qtype2
;
LibUtilities
::
BasisType
btype1
,
btype2
;
LibUtilities
::
PointsType
NodalType
;
LibUtilities
::
ShapeType
regionshape
;
LibUtilities
::
BasisType
btype1
=
LibUtilities
::
eOrtho_A
;
LibUtilities
::
BasisType
btype2
=
LibUtilities
::
eOrtho_B
;
LibUtilities
::
PointsType
NodalType
=
LibUtilities
::
eNodalTriElec
;
StdRegions
::
ExpansionType
regionshape
;
StdRegions
::
StdExpansion2D
*
E
;
Array
<
OneD
,
NekDouble
>
sol
;
Array
<
OneD
,
NekDouble
>
coords
(
8
);
...
...
library/Demos/LocalRegions/LocProject_Diff2D.cpp
View file @
d6c31a69
...
...
@@ -33,9 +33,10 @@ int main(int argc, char *argv[])
int
order1
,
order2
,
nq1
,
nq2
;
LibUtilities
::
PointsType
Qtype1
,
Qtype2
;
LibUtilities
::
BasisType
btype1
,
btype2
;
LibUtilities
::
PointsType
NodalType
;
LibUtilities
::
ShapeType
regionshape
;
LibUtilities
::
BasisType
btype1
=
LibUtilities
::
eOrtho_A
;
LibUtilities
::
BasisType
btype2
=
LibUtilities
::
eOrtho_B
;
LibUtilities
::
PointsType
NodalType
=
LibUtilities
::
eNodalTriElec
;
StdRegions
::
ExpansionType
regionshape
;
StdRegions
::
StdExpansion2D
*
E
;
Array
<
OneD
,
NekDouble
>
sol
,
x
,
y
,
dx
,
dy
;
Array
<
OneD
,
NekDouble
>
coords
(
8
);
...
...
library/Demos/StdRegions/StdProject2D.cpp
View file @
d6c31a69
...
...
@@ -23,9 +23,10 @@ int main(int argc, char *argv[]){
int
order1
,
order2
,
nq1
,
nq2
;
LibUtilities
::
PointsType
Qtype1
,
Qtype2
;
LibUtilities
::
BasisType
btype1
,
btype2
;
LibUtilities
::
PointsType
NodalType
;
LibUtilities
::
ShapeType
regionshape
;
LibUtilities
::
BasisType
btype1
=
LibUtilities
::
eOrtho_A
;
LibUtilities
::
BasisType
btype2
=
LibUtilities
::
eOrtho_B
;
LibUtilities
::
PointsType
NodalType
=
LibUtilities
::
eNodalTriElec
;
StdRegions
::
ExpansionType
regionshape
;
StdRegions
::
StdExpansion
*
E
;
Array
<
OneD
,
NekDouble
>
sol
;
...
...
library/Demos/StdRegions/StdProject3D.cpp
View file @
d6c31a69
...
...
@@ -36,9 +36,11 @@ int main(int argc, char *argv[]){
int
order1
,
order2
,
order3
,
nq1
,
nq2
,
nq3
;
LibUtilities
::
PointsType
Qtype1
,
Qtype2
,
Qtype3
;
LibUtilities
::
BasisType
btype1
,
btype2
,
btype3
;
LibUtilities
::
PointsType
NodalType
;
LibUtilities
::
ShapeType
regionshape
;
LibUtilities
::
BasisType
btype1
=
LibUtilities
::
eOrtho_A
;
LibUtilities
::
BasisType
btype2
=
LibUtilities
::
eOrtho_B
;
LibUtilities
::
BasisType
btype3
=
LibUtilities
::
eOrtho_C
;
LibUtilities
::
PointsType
NodalType
=
LibUtilities
::
eNodalTriElec
;
StdRegions
::
ExpansionType
regionshape
;
StdRegions
::
StdExpansion
*
E
;
Array
<
OneD
,
NekDouble
>
sol
;
...
...
library/Demos/StdRegions/StdProject_Diff2D.cpp
View file @
d6c31a69
...
...
@@ -30,9 +30,10 @@ int main(int argc, char *argv[])
int
order1
,
order2
,
nq1
,
nq2
;
LibUtilities
::
PointsType
Qtype1
,
Qtype2
;
LibUtilities
::
BasisType
btype1
,
btype2
;
LibUtilities
::
PointsType
NodalType
;
LibUtilities
::
ShapeType
regionshape
;
LibUtilities
::
BasisType
btype1
=
LibUtilities
::
eOrtho_A
;
LibUtilities
::
BasisType
btype2
=
LibUtilities
::
eOrtho_B
;
LibUtilities
::
PointsType
NodalType
=
LibUtilities
::
eNodalTriElec
;
StdRegions
::
ExpansionType
regionshape
;
StdRegions
::
StdExpansion
*
E
;
Array
<
OneD
,
NekDouble
>
sol
,
dx
,
dy
,
x
,
y
;
...
...
library/Demos/StdRegions/StdProject_Diff3D.cpp
View file @
d6c31a69
...
...
@@ -57,8 +57,10 @@ int main(int argc, char *argv[]){
int
order1
,
order2
,
order3
,
nq1
,
nq2
,
nq3
;
LibUtilities
::
PointsType
Qtype1
,
Qtype2
,
Qtype3
;
LibUtilities
::
BasisType
btype1
,
btype2
,
btype3
;
LibUtilities
::
ShapeType
regionshape
;
LibUtilities
::
BasisType
btype1
=
LibUtilities
::
eOrtho_A
;
LibUtilities
::
BasisType
btype2
=
LibUtilities
::
eOrtho_B
;
LibUtilities
::
BasisType
btype3
=
LibUtilities
::
eOrtho_C
;
StdRegions
::
ExpansionType
regionshape
;
StdRegions
::
StdExpansion
*
E
;
Array
<
OneD
,
NekDouble
>
x
,
y
,
z
,
sol
,
dx
,
dy
,
dz
;
...
...
library/LibUtilities/Communication/CommMpi.cpp
View file @
d6c31a69
...
...
@@ -327,9 +327,10 @@ namespace Nektar
MPI_Op
vOp
;
switch
(
pOp
)
{
case
ReduceSum
:
vOp
=
MPI_SUM
;
break
;
case
ReduceMax
:
vOp
=
MPI_MAX
;
break
;
case
ReduceMin
:
vOp
=
MPI_MIN
;
break
;
case
ReduceSum
:
default:
vOp
=
MPI_SUM
;
break
;
}
int
retval
=
MPI_Allreduce
(
MPI_IN_PLACE
,
&
pData
,
...
...
@@ -356,9 +357,10 @@ namespace Nektar
MPI_Op
vOp
;
switch
(
pOp
)
{
case
ReduceSum
:
vOp
=
MPI_SUM
;
break
;
case
ReduceMax
:
vOp
=
MPI_MAX
;
break
;
case
ReduceMin
:
vOp
=
MPI_MIN
;
break
;
case
ReduceSum
:
default:
vOp
=
MPI_SUM
;
break
;
}
int
retval
=
MPI_Allreduce
(
MPI_IN_PLACE
,
&
pData
,
...
...
@@ -385,9 +387,10 @@ namespace Nektar
MPI_Op
vOp
;
switch
(
pOp
)
{
case
ReduceSum
:
vOp
=
MPI_SUM
;
break
;
case
ReduceMax
:
vOp
=
MPI_MAX
;
break
;
case
ReduceMin
:
vOp
=
MPI_MIN
;
break
;
case
ReduceSum
:
default:
vOp
=
MPI_SUM
;
break
;
}
int
retval
=
MPI_Allreduce
(
MPI_IN_PLACE
,
pData
.
get
(),
...
...
@@ -414,9 +417,10 @@ namespace Nektar
MPI_Op
vOp
;
switch
(
pOp
)
{
case
ReduceSum
:
vOp
=
MPI_SUM
;
break
;
case
ReduceMax
:
vOp
=
MPI_MAX
;
break
;
case
ReduceMin
:
vOp
=
MPI_MIN
;
break
;
case
ReduceSum
:
default:
vOp
=
MPI_SUM
;
break
;
}
int
retval
=
MPI_Allreduce
(
MPI_IN_PLACE
,
pData
.
get
(),
...
...
library/SpatialDomains/MeshGraph.cpp
View file @
d6c31a69
...
...
@@ -121,13 +121,12 @@ namespace Nektar
TiXmlElement
*
geometry_tag
=
pSession
->
GetElement
(
"NEKTAR/GEOMETRY"
);
TiXmlAttribute
*
attr
=
geometry_tag
->
FirstAttribute
();
int
meshDim
=
0
;
int
err
=
0
;
while
(
attr
)
{
std
::
string
attrName
(
attr
->
Name
());
if
(
attrName
==
"DIM"
)
{
err
=
attr
->
QueryIntValue
(
&
meshDim
);
int
err
=
attr
->
QueryIntValue
(
&
meshDim
);
ASSERTL1
(
err
==
TIXML_SUCCESS
,
"Unable to read mesh dimension."
);
break
;
}
...
...
@@ -817,8 +816,12 @@ namespace Nektar
CompositeMap
compositeVector
;
GetCompositeList
(
compositeListStr
,
compositeVector
);
ExpansionType
expansion_type_x
,
expansion_type_y
,
expansion_type_z
;
int
num_modes_x
,
num_modes_y
,
num_modes_z
;
ExpansionType
expansion_type_x
=
eNoExpansionType
;
ExpansionType
expansion_type_y
=
eNoExpansionType
;
ExpansionType
expansion_type_z
=
eNoExpansionType
;
int
num_modes_x
=
0
;
int
num_modes_y
=
0
;
int
num_modes_z
=
0
;
LibUtilities
::
BasisKeyVector
basiskeyvec
;
...
...
library/SpatialDomains/TriGeom.cpp
View file @
d6c31a69
...
...
@@ -386,7 +386,7 @@ namespace Nektar
const
TriGeom
&
face1
,
const
TriGeom
&
face2
)
{
StdRegions
::
Orientation
returnval
;
StdRegions
::
Orientation
returnval
=
StdRegions
::
eNoOrientation
;
int
i
,
j
,
map
[
3
]
=
{
-
1
,
-
1
,
-
1
};
NekDouble
x
,
y
,
z
,
x1
,
y1
,
z1
,
cx
=
0.0
,
cy
=
0.0
,
cz
=
0.0
;
...
...
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