The Conley-Morse Graphs Software
Functions | Variables
cmsingle.cpp File Reference

Computing a single Conley-Morse graph. More...

#include <exception>
#include <sstream>
#include <fstream>
#include <algorithm>
#include <new>
#include "chomp/system/config.h"
#include "chomp/system/textfile.h"
#include "chomp/system/timeused.h"
#include "chomp/system/arg.h"
#include "config.h"
#include "confinfo.h"
#include "typedefs.h"
#include "typedyns.h"
#include "utils.h"
#include "compmdec.h"
#include "plotmdec.h"
#include "eigenval.h"
#include "dotgraph.h"
#include "mapopt.h"

Go to the source code of this file.

Functions

int runSingleComp (const char *boxCoordinates, const char *mapOptFileName, const char *mapOptFileLocal, const char *graphName, const char *shareName, const char *phaseSpaceName, bool fullPhaseSpace, const char *cubesFilePrefix, const char *morseDecName, const char *procFilePrefix, bool connOrbits, int skipIndices)
 
int main (int argc, char *argv[])
 The main procedure of the program. More...
 

Variables

const char * title
 The title of the program which is displayed every time the program is launcued. More...
 
const char * helpinfo
 The help information about the program which is displayed if the program is launched without command-line arguments or with incorrect arguments. More...
 

Detailed Description

Computing a single Conley-Morse graph.

This program constitutes an interface to computing a Conley-Morse graph for a single parameter box the same way it would be computed by the program "cmgraphs". Its purpose is to extract specific data for a single parameter box after having located it with the aid of the results obtained by the program "cmgraphs", in particular, by having analyzed the continuation diagram. Please, use the program "cmgraphs" to run computations for a range of parameters and to do continuation matching between the Morse decompositions.

Author
Pawel Pilarczyk

Definition in file cmsingle.cpp.

Function Documentation

◆ main()

int main ( int  argc,
char *  argv[] 
)

The main procedure of the program.

Returns: 0 = Ok, -1 = Error, 1 = Help displayed, 2 = Wrong arguments.

Definition at line 351 of file cmsingle.cpp.

References helpinfo, runSingleComp(), and title.

◆ runSingleComp()

int runSingleComp ( const char *  boxCoordinates,
const char *  mapOptFileName,
const char *  mapOptFileLocal,
const char *  graphName,
const char *  shareName,
const char *  phaseSpaceName,
bool  fullPhaseSpace,
const char *  cubesFilePrefix,
const char *  morseDecName,
const char *  procFilePrefix,
bool  connOrbits,
int  skipIndices 
)

Variable Documentation

◆ helpinfo

const char* helpinfo
Initial value:
= "\
This is the front-end program for the computation of a Conley-Morse graph\n\
for a single parameter box. It is a supplementary program to 'cmgraphs',\n\
and is capable of saving the results of all its computations to files.\n\
The parameter box is identified by the integer coordinates of its minimal\n\
vertex and corresponds to a box in the subdivision of the parameter area,\n\
for example, if the entire parameter range [-1,1]x[-1,1] is divided into\n\
20x20 boxes then '-b 0,19' corresponds to [-1.0,-0.9]x[0.9,1.0].\n\
Command line arguments (the argument '-b' is mandatory):\n\
-b x1,x2,...,xN - the integer coordinates of a parameter box to process,\n\
-g file.txt - file name to save the text code for the Conley-Morse graph,\n\
-s file.ind - file name to save/load cached Conley index information,\n\
-p file.png - file name to save a PNG picture of the Morse decomposition,\n\
-q prefix - prefix for file names to save Morse sets to as lists of cubes,\n\
-o prefix - file name prefix for post-processing Morse sets information,\n\
-t filename - file name with optimization information (read & append),\n\
-u prefix - file name prefix for ODE integration optimization information,\n\
-z file.bz2 - name of a temporary file with Morse decomposition cache,\n\
--conn - compute connecting orbits between Morse sets (memory-consuming),\n\
--full - use the full range of the phase space to plot Morse sets,\n\
--log filename - file name to save all the text output of the program to,\n\
--quiet - suppress any output written to the terminal,\n\
--debug - display additional information useful for debugging,\n\
--help - make the program show this brief help information and exit.\n\
For more information ask the author at http://www.pawelpilarczyk.com/."

The help information about the program which is displayed if the program is launched without command-line arguments or with incorrect arguments.

Definition at line 79 of file cmsingle.cpp.

Referenced by main().

◆ title

const char* title
Initial value:
= "\
This is a program which computes a single Conley-Morse graph.\n\
Ver. 0.06, August 22, 2014. Copyright (C) 2005-2014 by Pawel Pilarczyk.\n\
This is free software. No warranty. Consult 'license.txt' for details."

The title of the program which is displayed every time the program is launcued.

Definition at line 71 of file cmsingle.cpp.

Referenced by main().