Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Laurell, Pontus Bengt Johan
dmrgpp
Commits
ab51d3b1
Commit
ab51d3b1
authored
Feb 22, 2021
by
Alvarez, Gonzalo
Browse files
TridiagOptions accepts printritz
parent
e952bf37
Changes
2
Hide whitespace changes
Inline
Side-by-side
TestSuite/inputs/input250.inp
View file @
ab51d3b1
...
...
@@ -18,9 +18,9 @@ Version=version
OutputFile=data250
InfiniteLoopKeptStates=100
FiniteLoops 3
7 100
8
-14 100
8
14 100
8
7 100
0
-14 100
0
14 100
0
NumberOfTargetQns=2
TargetElectronsUp0=8
TargetElectronsDown0=8
...
...
src/Engine/CorrectionVectorSkeleton.h
View file @
ab51d3b1
...
...
@@ -314,6 +314,10 @@ private:
xr
.
resize
(
n
);
psimag
::
BLAS
::
GEMV
(
'N'
,
n
,
n2
,
zone
,
&
(
V
(
0
,
0
)),
n
,
&
(
tmp
[
0
]),
1
,
zzero
,
&
(
xr
[
0
]),
1
);
typename
LanczosSolverType
::
ParametersSolverType
params
(
ioIn_
,
"Tridiag"
);
bool
b1
=
(
params
.
options
.
find
(
"printritz"
)
!=
PsimagLite
::
String
::
npos
);
if
(
b1
)
printRitz
(
eigs
,
i0
);
}
void
triDiag
(
const
VectorWithOffsetType
&
phi
,
...
...
@@ -347,6 +351,15 @@ private:
return
sum
;
}
static
void
printRitz
(
const
VectorRealType
&
eigs
,
SizeType
i0
)
{
std
::
cout
<<
"RitzEigenvalues: index="
<<
i0
<<
"|"
;
const
SizeType
n
=
eigs
.
size
();
for
(
SizeType
i
=
0
;
i
<
n
;
++
i
)
std
::
cout
<<
eigs
[
i
]
<<
" "
;
std
::
cout
<<
"
\n
"
;
}
InputValidatorType
&
ioIn_
;
const
TargetParamsType
&
tstStruct_
;
const
ModelType
&
model_
;
...
...
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