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
383612e5
Commit
383612e5
authored
Mar 02, 2021
by
Alvarez, Gonzalo
Browse files
SU(3) model: parameters for model added
parent
270ebc40
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/Models/Su3/ParametersSu3.h
0 → 100644
View file @
383612e5
/*
Copyright (c) 2009-2012-2021, UT-Battelle, LLC
All rights reserved
[DMRG++, Version 5.]
[by G.A., Oak Ridge National Laboratory]
UT Battelle Open Source Software License 11242008
OPEN SOURCE LICENSE
Subject to the conditions of this License, each
contributor to this software hereby grants, free of
charge, to any person obtaining a copy of this software
and associated documentation files (the "Software"), a
perpetual, worldwide, non-exclusive, no-charge,
royalty-free, irrevocable copyright license to use, copy,
modify, merge, publish, distribute, and/or sublicense
copies of the Software.
1. Redistributions of Software must retain the above
copyright and license notices, this list of conditions,
and the following disclaimer. Changes or modifications
to, or derivative works of, the Software should be noted
with comments and the contributor and organization's
name.
2. Neither the names of UT-Battelle, LLC or the
Department of Energy nor the names of the Software
contributors may be used to endorse or promote products
derived from this software without specific prior written
permission of UT-Battelle.
3. The software and the end-user documentation included
with the redistribution, with or without modification,
must include the following acknowledgment:
"This product includes software produced by UT-Battelle,
LLC under Contract No. DE-AC05-00OR22725 with the
Department of Energy."
*********************************************************
DISCLAIMER
THE SOFTWARE IS SUPPLIED BY THE COPYRIGHT HOLDERS AND
CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED
WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A
PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
COPYRIGHT OWNER, CONTRIBUTORS, UNITED STATES GOVERNMENT,
OR THE UNITED STATES DEPARTMENT OF ENERGY BE LIABLE FOR
ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE
OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH
DAMAGE.
NEITHER THE UNITED STATES GOVERNMENT, NOR THE UNITED
STATES DEPARTMENT OF ENERGY, NOR THE COPYRIGHT OWNER, NOR
ANY OF THEIR EMPLOYEES, REPRESENTS THAT THE USE OF ANY
INFORMATION, DATA, APPARATUS, PRODUCT, OR PROCESS
DISCLOSED WOULD NOT INFRINGE PRIVATELY OWNED RIGHTS.
*********************************************************
*/
/** \ingroup DMRG */
/*@{*/
/*! \file ParametersSu3.h
*
* Contains the parameters for the Heisenberg model and function
* to read them from a file
*
*/
#ifndef DMRG_PARAMS_SU3_H
#define DMRG_PARAMS_SU3_H
#include "Vector.h"
#include "../../Engine/ParametersModelBase.h"
namespace
Dmrg
{
template
<
typename
RealType
,
typename
QnType
>
struct
ParametersSu3
:
public
ParametersModelBase
<
RealType
,
QnType
>
{
typedef
ParametersModelBase
<
RealType
,
QnType
>
BaseType
;
typedef
typename
PsimagLite
::
Vector
<
RealType
>::
Type
VectorRealType
;
// no connectors here, connectors are handled by the geometry
template
<
typename
IoInputType
>
ParametersSu3
(
IoInputType
&
io
)
:
BaseType
(
io
,
false
)
{
io
.
readline
(
mass
,
"Mass="
);
}
void
write
(
PsimagLite
::
String
label1
,
PsimagLite
::
IoNg
::
Out
::
Serializer
&
io
)
const
{
PsimagLite
::
String
label
=
label1
+
"/ParametersSu3"
;
io
.
createGroup
(
label
);
BaseType
::
write
(
label
,
io
);
io
.
write
(
label
+
"/mass"
,
mass
);
}
RealType
mass
;
};
}
// namespace Dmrg
/*@}*/
#endif
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