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
82bf85bc
Commit
82bf85bc
authored
Jan 10, 2020
by
Alvarez, Gonzalo
Browse files
CorrectionVectorAction: marking Matsubara and Complex Correction Vector cases
parent
0dc8c87e
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/Engine/CorrectionVectorAction.h
View file @
82bf85bc
...
...
@@ -2,6 +2,7 @@
#define CORRECTIONVECTORACTION_H
#include "Vector.h"
#include "FreqEnum.h"
#include "AnsiColors.h"
namespace
Dmrg
{
...
...
@@ -21,12 +22,15 @@ public:
RealType
E0
,
const
VectorRealType
&
eigs
)
:
tstStruct_
(
tstStruct
),
E0_
(
E0
),
eigs_
(
eigs
)
{}
ComplexOrRealType
operator
()(
SizeType
k
)
const
{
return
(
tstStruct_
.
omega
().
first
==
PsimagLite
::
FREQ_REAL
)
?
actionWhenFreqReal
(
k
)
:
actionWhenMatsubara
(
k
);
if
(
tstStruct_
.
omega
().
first
==
PsimagLite
::
FREQ_REAL
)
return
;
// <--- EARLY EXIT
std
::
cout
<<
PsimagLite
::
AnsiColor
::
red
;
std
::
cerr
<<
PsimagLite
::
AnsiColor
::
red
;
std
::
cout
<<
"CorrectionVectorActionBase:: Running matsubara
\n
"
;
std
::
cerr
<<
"CorrectionVectorActionBase:: Running matsubara
\n
"
;
std
::
cout
<<
PsimagLite
::
AnsiColor
::
reset
;
std
::
cerr
<<
PsimagLite
::
AnsiColor
::
reset
;
}
void
setReal
()
const
;
...
...
@@ -37,8 +41,6 @@ public:
protected:
ComplexOrRealType
actionWhenFreqReal
(
SizeType
k
)
const
;
RealType
actionWhenMatsubara
(
SizeType
k
)
const
{
RealType
sign
=
(
tstStruct_
.
type
()
==
0
)
?
-
1.0
:
1.0
;
...
...
@@ -109,7 +111,15 @@ public:
CorrectionVectorAction
(
const
TargetParamsType
&
tstStruct
,
RealType
E0
,
const
typename
BaseType
::
VectorRealType
&
eigs
)
:
BaseType
(
tstStruct
,
E0
,
eigs
)
{}
:
BaseType
(
tstStruct
,
E0
,
eigs
)
{
std
::
cout
<<
PsimagLite
::
AnsiColor
::
red
;
std
::
cerr
<<
PsimagLite
::
AnsiColor
::
red
;
std
::
cout
<<
"CorrectionVectorAction:: Complex mode
\n
"
;
std
::
cerr
<<
"CorrectionVectorAction:: Complex mode
\n
"
;
std
::
cout
<<
PsimagLite
::
AnsiColor
::
reset
;
std
::
cerr
<<
PsimagLite
::
AnsiColor
::
reset
;
}
ComplexOrRealType
operator
()(
SizeType
k
)
const
{
...
...
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