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
d54a155a
Commit
d54a155a
authored
Dec 23, 2019
by
Alvarez, Gonzalo
Browse files
ChemicalH: GaugeSpin runs
parent
825faf78
Changes
2
Hide whitespace changes
Inline
Side-by-side
src/Engine/SuperGeometry.h
View file @
d54a155a
...
...
@@ -21,7 +21,7 @@ public:
typedef
PsimagLite
::
Vector
<
PsimagLite
::
String
>::
Type
VectorStringType
;
SuperGeometry
(
InputType_
&
io
)
:
geometry_
(
io
),
dcaPtr_
(
0
)
:
geometry_
(
io
),
dcaPtr_
(
0
)
,
hollowOutRadius_
(
0
)
{
// add super terms as needed
const
SizeType
n
=
geometry_
.
terms
();
...
...
@@ -35,6 +35,7 @@ public:
"SuperPlaquette"
)
!=
superStrings_
.
end
())
continue
;
superStrings_
.
push_back
(
"SuperPlaquette"
);
hollowOutRadius_
=
4
;
}
}
}
...
...
@@ -64,7 +65,10 @@ public:
geometry_
.
write
(
label
,
ioSerializer
);
}
SizeType
maxConnections
()
const
{
return
geometry_
.
maxConnections
();
}
SizeType
hollowOutRadius
(
SizeType
maxLeft
)
const
{
return
std
::
max
(
maxLeft
*
geometry_
.
maxConnections
(),
hollowOutRadius_
);
}
SizeType
orbitals
(
SizeType
term
,
SizeType
site
)
const
{
...
...
@@ -181,6 +185,7 @@ private:
const
GeometryType
geometry_
;
mutable
GeometryDcaType
*
dcaPtr_
;
SizeType
hollowOutRadius_
;
VectorStringType
superStrings_
;
};
...
...
src/Engine/Truncation.h
View file @
d54a155a
...
...
@@ -288,7 +288,7 @@ private:
{
bool
expandSys
=
(
direction
==
ProgramGlobals
::
DirectionEnum
::
EXPAND_SYSTEM
);
const
BasisWithOperatorsType
&
basis
=
(
expandSys
)
?
lrs_
.
left
()
:
lrs_
.
right
();
size_t
mostRecent
=
maxOpsPerSiteLeft
()
*
superGeometry_
.
maxConnections
(
);
size_t
mostRecent
=
superGeometry_
.
hollowOutRadius
(
maxOpsPerSiteLeft
()
);
size_t
numOfOp
=
basis
.
numberOfOperators
();
PairSizeSizeType
startEnd
(
0
,
numOfOp
);
if
(
startEnd
.
second
>
mostRecent
)
{
...
...
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