Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Open sidebar
Nektar
Nektar
Commits
d046423f
Commit
d046423f
authored
Mar 30, 2013
by
Chris Cantwell
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix ADR2DManifoldSolver due to removal of SpatialData class.
parent
c4a0e6fd
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
38 deletions
+7
-38
solvers/ADR2DManifoldSolver/ADR2DManifold.cpp
solvers/ADR2DManifoldSolver/ADR2DManifold.cpp
+7
-38
No files found.
solvers/ADR2DManifoldSolver/ADR2DManifold.cpp
View file @
d046423f
...
@@ -712,30 +712,14 @@ namespace Nektar
...
@@ -712,30 +712,14 @@ namespace Nektar
// u3 = u*u*u
// u3 = u*u*u
Vmath
::
Vmul
(
npoints
,
&
physfieldu
[
0
],
1
,
&
u2
[
0
],
1
,
&
u3
[
0
],
1
);
Vmath
::
Vmul
(
npoints
,
&
physfieldu
[
0
],
1
,
&
u2
[
0
],
1
,
&
u3
[
0
],
1
);
if
(
m_spatialParameters
->
Exists
(
"a"
))
// Ru = au
{
Vmath
::
Smul
(
npoints
,
mA
,
&
physfieldu
[
0
],
1
,
&
Ru
[
0
],
1
);
Vmath
::
Vmul
(
npoints
,
&
m_spatialParameters
->
GetData
(
"a"
)
->
GetPhys
()[
0
],
1
,
&
physfieldu
[
0
],
1
,
&
Ru
[
0
],
1
);
// Ru = (-1-a)u*u + au
Vmath
::
Vvtvm
(
npoints
,
&
m_spatialParameters
->
GetData
(
"a"
)
->
GetPhys
()[
0
],
1
,
&
u2
[
0
],
1
,
&
Ru
[
0
],
1
,
&
Ru
[
0
],
1
);
Vmath
::
Svtvp
(
npoints
,
(
-
1.0
-
mA
),
&
u2
[
0
],
1
,
&
Ru
[
0
],
1
,
&
Ru
[
0
],
1
);
Vmath
::
Svtvm
(
npoints
,
-
1.0
,
&
u2
[
0
],
1
,
&
Ru
[
0
],
1
,
&
Ru
[
0
],
1
);
}
else
{
// Ru = au
Vmath
::
Smul
(
npoints
,
mA
,
&
physfieldu
[
0
],
1
,
&
Ru
[
0
],
1
);
// Ru = (-1-a)u*u + au
Vmath
::
Svtvp
(
npoints
,
(
-
1.0
-
mA
),
&
u2
[
0
],
1
,
&
Ru
[
0
],
1
,
&
Ru
[
0
],
1
);
}
// Ru = u*u*u - (1+a)u*u + au
// Ru = u*u*u - (1+a)u*u + au
Vmath
::
Vadd
(
npoints
,
&
u3
[
0
],
1
,
&
Ru
[
0
],
1
,
&
Ru
[
0
],
1
);
Vmath
::
Vadd
(
npoints
,
&
u3
[
0
],
1
,
&
Ru
[
0
],
1
,
&
Ru
[
0
],
1
);
// Ru = k(u*u*u - (1+a)u*u + au)
// Ru = k(u*u*u - (1+a)u*u + au)
if
(
m_spatialParameters
->
Exists
(
"k"
))
Vmath
::
Smul
(
npoints
,
mK
,
&
Ru
[
0
],
1
,
&
Ru
[
0
],
1
);
{
Vmath
::
Vmul
(
npoints
,
&
m_spatialParameters
->
GetData
(
"k"
)
->
GetPhys
()[
0
],
1
,
&
Ru
[
0
],
1
,
&
Ru
[
0
],
1
);
}
else
{
Vmath
::
Smul
(
npoints
,
mK
,
&
Ru
[
0
],
1
,
&
Ru
[
0
],
1
);
}
// Ru = k(u*u*u - (1+a)u*u + au) + uv
// Ru = k(u*u*u - (1+a)u*u + au) + uv
Vmath
::
Vvtvp
(
npoints
,
&
physfieldu
[
0
],
1
,
&
physfieldv
[
0
],
1
,
&
Ru
[
0
],
1
,
&
Ru
[
0
],
1
);
Vmath
::
Vvtvp
(
npoints
,
&
physfieldu
[
0
],
1
,
&
physfieldv
[
0
],
1
,
&
Ru
[
0
],
1
,
&
Ru
[
0
],
1
);
// Ru = -k(u*u*u - (1+a)u*u + au) - uv
// Ru = -k(u*u*u - (1+a)u*u + au) - uv
...
@@ -755,24 +739,9 @@ namespace Nektar
...
@@ -755,24 +739,9 @@ namespace Nektar
Vmath
::
Sadd
(
npoints
,
mEps
,
&
Rv
[
0
],
1
,
&
Rv
[
0
],
1
);
Vmath
::
Sadd
(
npoints
,
mEps
,
&
Rv
[
0
],
1
,
&
Rv
[
0
],
1
);
// Ru = (-a-1) + u
// Ru = (-a-1) + u
if
(
m_spatialParameters
->
Exists
(
"a"
))
Vmath
::
Sadd
(
npoints
,
(
-
mA
-
1
),
&
physfieldu
[
0
],
1
,
&
Ru
[
0
],
1
);
{
Vmath
::
Vsub
(
npoints
,
&
physfieldu
[
0
],
1
,
&
m_spatialParameters
->
GetData
(
"a"
)
->
GetPhys
()[
0
],
1
,
&
Ru
[
0
],
1
);
Vmath
::
Sadd
(
npoints
,
-
1.0
,
&
physfieldu
[
0
],
1
,
&
Ru
[
0
],
1
);
}
else
{
Vmath
::
Sadd
(
npoints
,
(
-
mA
-
1
),
&
physfieldu
[
0
],
1
,
&
Ru
[
0
],
1
);
}
// Ru = k(u-a-1)
// Ru = k(u-a-1)
if
(
m_spatialParameters
->
Exists
(
"k"
))
Vmath
::
Smul
(
npoints
,
mK
,
&
Ru
[
0
],
1
,
&
Ru
[
0
],
1
);
{
Vmath
::
Vmul
(
npoints
,
&
m_spatialParameters
->
GetData
(
"k"
)
->
GetPhys
()[
0
],
1
,
&
Ru
[
0
],
1
,
&
Ru
[
0
],
1
);
}
else
{
Vmath
::
Smul
(
npoints
,
mK
,
&
Ru
[
0
],
1
,
&
Ru
[
0
],
1
);
}
// Ru = ku(u-a-1) + v
// Ru = ku(u-a-1) + v
Vmath
::
Vvtvp
(
npoints
,
&
physfieldu
[
0
],
1
,
&
Ru
[
0
],
1
,
&
physfieldv
[
0
],
1
,
&
Ru
[
0
],
1
);
Vmath
::
Vvtvp
(
npoints
,
&
physfieldu
[
0
],
1
,
&
Ru
[
0
],
1
,
&
physfieldv
[
0
],
1
,
&
Ru
[
0
],
1
);
// Ru = -ku(u-a-1)-v
// Ru = -ku(u-a-1)-v
...
...
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