@@ -46,7 +46,6 @@ including the foundations and recent results, please see the [wiki](https://gith
46
46
[ Causal Dynamical Triangulations] [ CDT ] in [ C++] uses the
47
47
[ Computational Geometry Algorithms Library] [ CGAL ] , [ Boost] , [ TBB] , and [ Eigen] .
48
48
Arbitrary-precision numbers and functions are by [ MPFR] and [ GMP] .
49
- [ docopt] provides a beautiful command-line interface.
50
49
[ Melissa E. O'Neill's Permuted Congruential Generators] [ PCG ] library provides high-quality RNGs that pass L'Ecuyer's
51
50
[ TestU01] statistical tests.
52
51
[ doctest] provides [ BDD] /[ TDD] .
@@ -71,7 +70,6 @@ Arbitrary-precision numbers and functions are by [MPFR] and [GMP].
71
70
- [x] 3D Simplex
72
71
- [x] 3D Spherical triangulation
73
72
- [x] 2+1 foliation
74
- - [x] Integrate [ docopt] CLI
75
73
- [x] S3 Bulk action
76
74
- [x] 3D Ergodic moves
77
75
- [x] High-quality Random Number Generation with M.E. O'Neill's [ PCG] library
@@ -211,13 +209,12 @@ along with several others.
211
209
212
210
## Usage
213
211
214
- CDT-plusplus uses [ docopt ] to parse options from the help message, and so
212
+ CDT-plusplus uses [ program_options ] to parse options from the help message, and so
215
213
understands long or short argument formats, provided the short argument given
216
214
is an unambiguous match to a longer one. The help message should be instructive:
217
215
218
216
~~~ text
219
217
./build/src/cdt --help
220
- cdt started at 2023-01-03.14:44:22PST
221
218
Causal Dynamical Triangulations in C++ using CGAL.
222
219
223
220
Copyright (c) 2013 Adam Getchell
@@ -228,28 +225,38 @@ to the Metropolis algorithm. Specify the number of passes to control
228
225
how much evolution is desired. Each pass attempts a number of ergodic
229
226
moves equal to the number of simplices in the simulation.
230
227
231
- Usage:./cdt (--spherical | --toroidal) -n SIMPLICES -t TIMESLICES [-d DIM]
232
- [--init INITIAL] [--foliate FOLIATION] -k K --alpha ALPHA
233
- --lambda LAMBDA [-p PASSES] [-c CHECKPOINT]
228
+ Usage:./cdt (--spherical | --toroidal) -n SIMPLICES -t TIMESLICES
229
+ [-d DIM]
230
+ [--init INITIAL RADIUS]
231
+ [--foliate FOLIATION SPACING]
232
+ -k K
233
+ --alpha ALPHA
234
+ --lambda LAMBDA
235
+ [-p PASSES]
236
+ [-c CHECKPOINT]
237
+
238
+ Optional arguments are in square brackets.
234
239
235
240
Examples:
236
241
./cdt --spherical -n 32000 -t 11 --alpha 0.6 -k 1.1 --lambda 0.1 --passes 1000
237
- ./cdt -- s -n32000 -t11 -a.6 -k1.1 -l.1 -p1000
242
+ ./cdt -s -n32000 -t11 -a.6 -k1.1 -l.1 -p1000
238
243
239
244
Options:
240
- -h --help Show this message
241
- --version Show program version
242
- -n SIMPLICES Approximate number of simplices
243
- -t TIMESLICES Number of timeslices
244
- -d DIM Dimensionality [default: 3]
245
- -i --init INITIAL Initial radius [default: 1]
246
- --foliate FOLIATION Foliation spacing between timeslices [default: 1]
247
- -a --alpha ALPHA Negative squared geodesic length of 1-d
248
- timelike edges
249
- -k K K = 1/(8*pi*G_newton)
250
- -l --lambda LAMBDA K * Cosmological constant
251
- -p --passes PASSES Number of passes [default: 100]
252
- -c --checkpoint CHECKPOINT Checkpoint every n passes [default: 10]
245
+ -h [ --help ] Show this message
246
+ -v [ --version ] Show program version
247
+ -s [ --spherical ] Spherical topology
248
+ -e [ --toroidal ] Toroidal topology
249
+ -n [ --simplices ] arg Approximate number of simplices
250
+ -t [ --timeslices ] arg Number of timeslices
251
+ -d [ --dimensions ] arg (=3) Dimensionality
252
+ -i [ --init ] arg (=1) Initial radius
253
+ -f [ --foliate ] arg (=1) Foliation spacing
254
+ -a [ --alpha ] arg Negative squared geodesic length of 1-d
255
+ timelike edges
256
+ -k [ --k ] arg K = 1/(8*pi*G_newton)
257
+ -l [ --lambda ] arg K * Cosmological constant
258
+ -p [ --passes ] arg (=100) Number of passes
259
+ -c [ --checkpoint ] arg (=10) Checkpoint every n passes
253
260
~~~
254
261
255
262
The dimensionality of the spacetime is such that each slice of spacetime is
@@ -262,8 +269,7 @@ links (in 2+1 spacetime), and the timelike faces (in 3+1 spacetime).
262
269
263
270
## Documentation
264
271
265
- Online documentation is at < https://adamgetchell.org/CDT-plusplus/ > automatically
266
- generated by [ Travis-CI] .
272
+ Online documentation is at < https://adamgetchell.org/CDT-plusplus/ > .
267
273
268
274
If you have [ Doxygen] installed you can generate the same information
269
275
locally using the configuration file in ` docs\Doxyfile ` by simply typing at the top
@@ -407,10 +413,8 @@ Optional:
407
413
408
414
- [ vcpkg] 's version of [ date] has an unfixed bug [ #23637 ] which produces ` use-of-uninitialized-value ` in [ MemorySanitizer] .
409
415
410
- - [ docopt] also has a ` use-of-uninitialized-value ` bug ([ #149 ] ).
411
416
412
417
[ #23637 ] : https://github.com/microsoft/vcpkg/issues/23637
413
- [ #149 ] : https://github.com/docopt/docopt.cpp/issues/149
414
418
[ CDT ] : https://arxiv.org/abs/hep-th/0105267
415
419
[ CGAL ] : https://www.cgal.org
416
420
[ CMake ] : https://www.cmake.org
@@ -425,7 +429,7 @@ Optional:
425
429
[ Doxygen ] : http://www.doxygen.org
426
430
[ Homebrew ] : https://brew.sh
427
431
[ Ninja ] : https://ninja-build.org
428
- [ docopt ] : https://github.com/docopt/docopt.cpp
432
+ [ program_options ] : https://www.boost.org/doc/libs/1_85_0/doc/html/program_options/tutorial.html
429
433
[ Mathjax ] : https://www.mathjax.org
430
434
[ GraphViz ] : https://www.graphviz.org
431
435
[ Eigen ] : http://eigen.tuxfamily.org/index.php?title=Main_Page
0 commit comments