Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
L
LanczosPlusPlus
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Alvarez, Gonzalo
LanczosPlusPlus
Commits
914deb44
Commit
914deb44
authored
5 years ago
by
Alvarez, Gonzalo
Browse files
Options
Downloads
Patches
Plain Diff
ComputeDensityOfStates=
parent
94517353
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/Engine/LanczosDriver1.h
+40
-17
40 additions, 17 deletions
src/Engine/LanczosDriver1.h
src/Version.h
+1
-1
1 addition, 1 deletion
src/Version.h
with
41 additions
and
18 deletions
src/Engine/LanczosDriver1.h
+
40
−
17
View file @
914deb44
...
...
@@ -78,21 +78,44 @@ void mainLoop3(const ModelType& model,
}
}
for
(
SizeType
gfi
=
0
;
gfi
<
lanczosOptions
.
gf
.
size
();
gfi
++
)
{
bool
needsDos
=
false
;
try
{
int
tmp
=
0
;
io
.
readline
(
tmp
,
"ComputeDensityOfStates="
);
needsDos
=
(
tmp
>
0
);
}
catch
(
std
::
exception
&
)
{}
typedef
std
::
pair
<
SizeType
,
SizeType
>
PairSizeType
;
PsimagLite
::
Vector
<
PairSizeType
>::
Type
pairOfSites
;
if
(
needsDos
)
{
lanczosOptions
.
gf
.
push_back
(
LanczosPlusPlus
::
LabeledOperator
(
"c"
));
const
SizeType
n
=
geometry
.
numberOfSites
();
for
(
SizeType
i
=
0
;
i
<
n
;
++
i
)
pairOfSites
.
push_back
(
PairSizeType
(
i
,
i
));
}
try
{
io
.
read
(
lanczosOptions
.
sites
,
"TSPSites"
);
if
(
lanczosOptions
.
sites
.
size
()
==
0
)
err
(
"TSPSites must have at least one site
\n
"
);
if
(
lanczosOptions
.
sites
.
size
()
==
1
)
lanczosOptions
.
sites
.
push_back
(
lanczosOptions
.
sites
[
0
]);
pairOfSites
.
push_back
(
PairSizeType
(
lanczosOptions
.
sites
[
0
],
lanczosOptions
.
sites
[
1
]));
}
catch
(
std
::
exception
&
)
{}
for
(
SizeType
gfi
=
0
;
gfi
<
lanczosOptions
.
gf
.
size
();
++
gfi
)
{
SizeType
counter
=
0
;
while
(
true
)
{
try
{
io
.
read
(
lanczosOptions
.
sites
,
"TSPSites"
);
}
catch
(
std
::
exception
&
)
{
break
;
}
if
(
lanczosOptions
.
sites
.
size
()
==
0
)
throw
std
::
runtime_error
(
"No sites in input file!
\n
"
);
if
(
lanczosOptions
.
sites
.
size
()
==
1
)
lanczosOptions
.
sites
.
push_back
(
lanczosOptions
.
sites
[
0
]);
const
SizeType
nIndices
=
pairOfSites
.
size
();
for
(
SizeType
sIndex
=
0
;
sIndex
<
nIndices
;
++
sIndex
)
{
const
SizeType
site0
=
pairOfSites
[
sIndex
].
first
;
const
SizeType
site1
=
pairOfSites
[
sIndex
].
second
;
std
::
cout
<<
"#gf(i="
<<
lanczosOptions
.
sites
[
0
]
<<
",j="
;
std
::
cout
<<
lanczosOptions
.
sites
[
1
]
<<
")
\n
"
;
std
::
cout
<<
"#gf(i="
<<
site0
<<
", j="
<<
site1
<<
")
\n
"
;
typedef
PsimagLite
::
ContinuedFraction
<
TridiagonalMatrixType
>
ContinuedFractionType
;
typedef
PsimagLite
::
ContinuedFractionCollection
<
ContinuedFractionType
>
...
...
@@ -107,10 +130,10 @@ void mainLoop3(const ModelType& model,
engine
.
spectralFunction
(
cfCollection
,
vstr
,
lanczosOptions
.
gf
[
gfi
],
lanczosOptions
.
sites
[
0
]
,
lanczosOptions
.
sites
[
1
]
,
lanczosOptions
.
spins
,
std
::
pair
<
SizeType
,
SizeType
>
(
orb1
,
orb2
));
site0
,
site1
,
lanczosOptions
.
spins
,
std
::
pair
<
SizeType
,
SizeType
>
(
orb1
,
orb2
));
}
}
...
...
This diff is collapsed.
Click to expand it.
src/Version.h
+
1
−
1
View file @
914deb44
#ifndef LANCZOSPP_VERSION
#define LANCZOSPP_VERSION "1.7
8
"
#define LANCZOSPP_VERSION "1.7
9
"
#endif
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