32#ifndef _CMGRAPHS_PROCSAVE_H_
33#define _CMGRAPHS_PROCSAVE_H_
41#include "chomp/system/textfile.h"
42#include "chomp/struct/digraph.h"
56namespace saveMorseDec {
64template <
class CubSetType,
class MorseDecType,
class GraphType,
67 const CubSetType &X,
const GraphType &g,
68 const CubMapType &theCubMap,
const CubMapType &,
69 const std::string &cubesFilePrefix,
70 const std::string &procFilePrefix)
72 using chomp::homology::sout;
75 if (cubesFilePrefix. empty ())
81 sout <<
"Saving the phase space...\n";
82 std::ostringstream filename;
83 filename << cubesFilePrefix <<
".cub";
84 std::ofstream f (filename. str (). c_str ());
85 f <<
"; The phase space X: " << X. size () <<
" cubes.\n";
92 sout <<
"Saving the combinatorial map...\n";
93 std::ostringstream filename;
94 filename << cubesFilePrefix <<
".map";
95 std::ofstream f (filename. str (). c_str ());
96 f <<
"; The combinatorial map: " << X. size () <<
98 for (
int i = 0; i < X. size (); ++ i)
100 f << X [i] <<
" -> {";
102 theCubMap (X [i], &img, 0, 0, 0,
false);
103 for (
int j = 0; j < img. size (); ++ j)
116 sout <<
"Saving the graph...\n";
117 std::ostringstream filename;
118 filename << cubesFilePrefix <<
".grp";
119 std::ofstream f (filename. str (). c_str ());
120 f <<
"; The graph: " << g. countVertices () <<
121 " vertices, " << g. countEdges () <<
" edges.\n";
Choice of configuration settings.
Conley index computation routines.
void processMorseDec(const MorseDecType &morseDec, const CubSetType &X, const GraphType &g, const CubMapType &theCubMap, const CubMapType &, const std::string &cubesFilePrefix, const std::string &procFilePrefix)
Dummy function for post-processing Morse decompositions.
Customizable settings that are supposed to be modified and/or chosen by the user of the software.
Customizable data types for the Conley-Morse graphs computation program.
Data types for the dynamical systems data structures.
chomp::homology::hashedset< spcCube > spcCubes
The type of a set of cubes in the phase space.