TRIQS/TRIQS
4.0.0
Researching Interacting Quantum Systems
Loading...
Searching...
No Matches
gf_tutorial_0.cpp
1
#include <
triqs/gfs.hpp
>
2
#include <
triqs/mesh.hpp
>
3
using namespace
triqs;
4
using namespace
triqs::gfs;
5
6
int
main() {
7
// Create a real-time mesh
8
double
tmin = 0, tmax = 10;
// the time interval
9
int
n_times = 101;
// number of time-points
10
auto
t_mesh =
mesh::retime
{tmin, tmax, n_times};
11
12
// Create a scalar-valued Green function on the t_mesh
13
auto
g =
gf<retime, scalar_valued>
{t_mesh};
14
}
triqs::gfs::gf
The owning Green's function container.
Definition
gf.hpp:194
triqs::mesh::retime
Real time mesh type.
Definition
retime.hpp:70
gfs.hpp
Umbrella header for the Green's function library.
mesh.hpp
Umbrella header for the TRIQS mesh types.
doc
doxygen
examples
gf_tutorial_0.cpp
Generated by
1.15.0