Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
N
Nektar
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Container registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Mesh generation
Nektar
Commits
d8b9e252
Commit
d8b9e252
authored
9 months ago
by
Edward Erasmie-Jones
Committed by
Jacques Xing
9 months ago
Browse files
Options
Downloads
Patches
Plain Diff
Fixed discontinuities in the Modified Arnoldi driver
parent
93457d52
No related branches found
No related tags found
No related merge requests found
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
CHANGELOG.md
+2
-1
2 additions, 1 deletion
CHANGELOG.md
library/SolverUtils/DriverModifiedArnoldi.cpp
+17
-2
17 additions, 2 deletions
library/SolverUtils/DriverModifiedArnoldi.cpp
with
19 additions
and
3 deletions
CHANGELOG.md
+
2
−
1
View file @
d8b9e252
...
...
@@ -18,6 +18,7 @@ v5.8.0
-
Matrix free ops shape cleanup (!1735)
-
Fix NodalTri processing and static condensation matrix release (!1989)
-
Fix third-party Scotch patch (!1998)
-
Fixed Modified Arnoldi driver to remove discontinuities from random vectors (!2002)
**CI**
-
Fix CubeAllElements performance test tolerance (!1943)
...
...
@@ -55,7 +56,7 @@ v5.7.0
-
Fix variable p in tetrahedrons (!1881)
-
Fix BwdTrans for Pyr with var P (!1886)
-
Allow wrapper array around a existing raw pointer (!1848)
-
Tweaked some long tests to make them faster (!
!
1918)
-
Tweaked some long tests to make them faster (!1918)
**IncNavierStokesSolver**
-
Fix initial and boundary conditions in the moving reference frame (!1692, !1820)
...
...
This diff is collapsed.
Click to expand it.
library/SolverUtils/DriverModifiedArnoldi.cpp
+
17
−
2
View file @
d8b9e252
...
...
@@ -35,6 +35,7 @@
#include
<iomanip>
#include
<MultiRegions/ContField.h>
#include
<SolverUtils/DriverModifiedArnoldi.h>
using
namespace
std
;
...
...
@@ -92,8 +93,8 @@ void DriverModifiedArnoldi::v_Execute(ostream &out)
{
int
i
=
0
;
int
j
=
0
;
int
n
q
=
m_equ
[
0
]
->
UpdateFields
()[
0
]
->
GetNcoeffs
();
int
ntot
=
m_nfields
*
n
q
;
int
n
m
=
m_equ
[
0
]
->
UpdateFields
()[
0
]
->
GetNcoeffs
();
int
ntot
=
m_nfields
*
n
m
;
int
converged
=
0
;
NekDouble
resnorm
=
0.0
;
ofstream
evlout
;
...
...
@@ -150,6 +151,20 @@ void DriverModifiedArnoldi::v_Execute(ostream &out)
NekDouble
eps
=
0.0001
;
Vmath
::
FillWhiteNoise
(
ntot
,
eps
,
&
Kseq
[
1
][
0
],
1
);
auto
contfield
=
std
::
dynamic_pointer_cast
<
MultiRegions
::
ContField
>
(
m_equ
[
0
]
->
UpdateFields
()[
0
]);
if
(
contfield
)
{
int
nGlobal
=
contfield
->
GetLocalToGlobalMap
()
->
GetNumGlobalCoeffs
();
Array
<
OneD
,
NekDouble
>
global
(
nGlobal
),
tmp
;
for
(
int
n
=
0
;
n
<
m_nfields
;
++
n
)
{
contfield
->
LocalToGlobal
(
Kseq
[
1
]
+
n
*
nm
,
global
);
contfield
->
GlobalToLocal
(
global
,
tmp
=
Kseq
[
1
]
+
n
*
nm
);
}
}
if
(
m_useMask
)
{
Vmath
::
Vmul
(
ntot
,
Kseq
[
1
],
1
,
m_maskCoeffs
,
1
,
Kseq
[
1
],
1
);
...
...
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