The ChainCon Software (Release 0.03)
ssqsim.cpp
Go to the documentation of this file.
1 /////////////////////////////////////////////////////////////////////////////
2 ///
3 /// \file
4 ///
5 /// A program for the computation of the Steenrod squares,
6 /// using algebraic minimal models for simplicial complexes.
7 ///
8 /////////////////////////////////////////////////////////////////////////////
9 
10 // Copyright (C) 2009-2016 by Pawel Pilarczyk.
11 //
12 // This file is part of my research software package. This is free software:
13 // you can redistribute it and/or modify it under the terms of the GNU
14 // General Public License as published by the Free Software Foundation,
15 // either version 3 of the License, or (at your option) any later version.
16 //
17 // This software is distributed in the hope that it will be useful,
18 // but WITHOUT ANY WARRANTY; without even the implied warranty of
19 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
20 // GNU General Public License for more details.
21 //
22 // You should have received a copy of the GNU General Public License
23 // along with this software; see the file "license.txt". If not,
24 // please, see <http://www.gnu.org/licenses/>.
25 
26 // Started on July 4, 2013. Last revision: December 28, 2015.
27 
28 
29 // the choice of cubes or simplices
30 #ifndef CUBES_NOT_SIMPLICES
31 #define CUBES_NOT_SIMPLICES 0
32 #endif
33 
34 // include some standard C++ header files
35 #include <istream>
36 #include <ostream>
37 #include <string>
38 
39 // include the string hashing definitions (before including "hashsets.h")
40 #include "chaincon/stringhash.h"
41 
42 // include selected header files from the CHomP library
43 #include "chomp/system/config.h"
44 #include "chomp/struct/hashsets.h"
45 
46 // include relevant local header files
47 #include "chaincon/ssquaressim.h"
48 #include "ssqmain.h"
49 
50 
51 // --------------------------------------------------
52 // -------------------- OVERTURE --------------------
53 // --------------------------------------------------
54 
55 /// The title of the program and licensing information.
56 const char *title = "\
57 Computation of Steenrod squares using an Algebraic Minimal Model.\n\
58 Version 0.01 (Dec 28, 2015). Copyright (C) 1997-2016 by Pawel Pilarczyk.\n\
59 This is free software. No warranty. Consult 'license.txt' for details.";
60 
61 /// Brief help information on the program's usage.
62 const char *helpinfo = "\
63 This program computes and displays all the non-zero Steenrod squares\n\
64 of a simplicial complex, using the direct formula by P. Real and co-authors.\n\
65 Note that the ring of coefficients is fixed to Z_2.\n\
66 Call with:\n\
67 filename - the name of a file that contains a list of cells for the test,\n\
68 Switches and additional arguments:\n\
69 filename2 - the name of an additional file for relative (co)homology;\n\
70 -r - compute reduced homology (with the empty set as a cell of dim -1),\n\
71 -b - don't add boundary cells (use -bx and -ba for X and A selectively),\n\
72 --log filename - save the output to a file (without progress indicators),\n\
73 --quiet - suppress data output to the screen (whcih can be still logged),\n\
74 --help - display this brief help information only and exit.\n\
75 For more information please consult the accompanying documentation\n\
76 or ask the program's author at http://www.PawelPilarczyk.com/.";
77 
78 
79 // --------------------------------------------------
80 // ---------------------- main ----------------------
81 // --------------------------------------------------
82 
83 /// The main procedure of the program.
84 /// Returns: 0 = Ok, -1 = Error, 1 = Help displayed, 2 = Wrong arguments.
85 int main (int argc, char *argv [])
86 {
87  return steenrodSquaresMain (argc, argv, title, helpinfo);
88 } /* main */
89 
int main(int argc, char *argv [])
The main procedure of the program.
Definition: ssqsim.cpp:85
const char * helpinfo
Brief help information on the program&#39;s usage.
Definition: ssqsim.cpp:62
const char * title
The title of the program and licensing information.
Definition: ssqsim.cpp:56
Hashing keys for std::string.
The main function of a program for computing the Steenrod squares of a simplicial complex or a cubica...
Computation of the Steenrod squares for simplicial cells.
int steenrodSquaresMain(int argc, char *argv [], const char *title, const char *helpinfo)
The main procedure of the program.
Definition: ssqmain.h:267