CDT++
Causal Dynamical Triangulations in C++
Loading...
Searching...
No Matches
Typedefs | Functions | Variables
cdt.cpp File Reference

The main executable. More...

#include <CGAL/Real_timer.h>
#include <boost/program_options.hpp>
#include <Metropolis.hpp>
+ Include dependency graph for cdt.cpp:

Go to the source code of this file.

Typedefs

using Timer = CGAL::Real_timer
 

Functions

 catch (...)
 
 catch (domain_error const &DomainError)
 
 catch (invalid_argument const &InvalidArgument)
 
 catch (logic_error const &LogicError)
 
 catch (runtime_error const &RuntimeError)
 
auto main (int const argc, char *const argv[]) -> int try
 The main path of the CDT++ program.
 

Variables

static string_view constexpr USAGE
 Help message parsed by docopt into options.
 

Detailed Description

The main executable.

Author
Adam Getchell

A program that generates spacetime ensembles. Inspired by https://github.com/ucdavis/CDT.

Definition in file cdt.cpp.

Typedef Documentation

◆ Timer

using Timer = CGAL::Real_timer

Definition at line 18 of file cdt.cpp.

Function Documentation

◆ catch() [1/5]

catch (   ...)

Definition at line 258 of file cdt.cpp.

◆ catch() [2/5]

catch ( domain_error const &  DomainError)

Definition at line 235 of file cdt.cpp.

◆ catch() [3/5]

catch ( invalid_argument const &  InvalidArgument)

Definition at line 241 of file cdt.cpp.

◆ catch() [4/5]

catch ( logic_error const &  LogicError)

Definition at line 247 of file cdt.cpp.

◆ catch() [5/5]

catch ( runtime_error const &  RuntimeError)

Definition at line 253 of file cdt.cpp.

◆ main()

auto main ( int const  argc,
char *const  argv[] 
) -> int try

The main path of the CDT++ program.

Parameters
argcArgument count = 1 + number of arguments
argvArgument vector (array) to be passed to docopt
Returns
Integer value 0 if successful, 1 on failure

Definition at line 57 of file cdt.cpp.

References manifolds::Manifold< 3 >::print(), manifolds::Manifold< 3 >::print_details(), manifolds::Manifold< 3 >::print_volume_per_timeslice(), and USAGE.

Variable Documentation

◆ USAGE

string_view constexpr USAGE
staticconstexpr
Initial value:
{
R"(Causal Dynamical Triangulations in C++ using CGAL.
Copyright (c) 2013 Adam Getchell
A program that generates d-dimensional triangulated spacetimes
with a defined causal structure and evolves them according
to the Metropolis algorithm. Specify the number of passes to control
how much evolution is desired. Each pass attempts a number of ergodic
moves equal to the number of simplices in the simulation.
Usage:./cdt (--spherical | --toroidal) -n SIMPLICES -t TIMESLICES
[-d DIM]
[--init INITIAL RADIUS]
[--foliate FOLIATION SPACING]
-k K
--alpha ALPHA
--lambda LAMBDA
[-p PASSES]
[-c CHECKPOINT]
Optional arguments are in square brackets.
Examples:
./cdt --spherical -n 32000 -t 11 --alpha 0.6 -k 1.1 --lambda 0.1 --passes 1000
./cdt -s -n32000 -t11 -a.6 -k1.1 -l.1 -p1000
Options)"}

Help message parsed by docopt into options.

Definition at line 24 of file cdt.cpp.

Referenced by main().