32#ifndef _CMGRAPHS_PROCEXIT_H_
33#define _CMGRAPHS_PROCEXIT_H_
41#include "chomp/system/textfile.h"
42#include "chomp/struct/digraph.h"
43#include "chomp/struct/flatmatr.h"
44#include "chomp/struct/multitab.h"
58namespace procMorseDecExit {
67template <
class CubSetType,
class MorseDecType,
class GraphType,
70 const CubSetType &allCubes,
const GraphType &g,
71 const CubMapType &theCubMap,
const CubMapType &,
72 const std::string &cubesFilePrefix,
73 const std::string &procFilePrefix)
75 using namespace chomp::homology;
77 sout <<
"Computing and saving exit sets of the Morse sets.\n";
80 int nSets = morseDec. count ();
81 for (
int n = 0; n < nSets; ++ n)
83 const CubSetType &morseCubes = morseDec [n];
84 int_t morseCount = morseCubes. size ();
87 sbug <<
"Morse set no. " << n <<
": " <<
88 morseCount <<
" cubes. Exit set: ";
92 for (
int i = 0; i < morseCount; ++ i)
93 theCubMap (morseCubes [i], &img, 0, 0,
false);
94 img. remove (morseCubes);
95 sbug << img. size () <<
" cubes.\n";
98 std::ostringstream exitFileName;
99 exitFileName << cubesFilePrefix << n <<
"e.cub";
102 std::ofstream f (exitFileName. str (). c_str ());
103 f <<
"; The exit set for the corresponding Morse set (" <<
104 img. size () <<
" cubes).\n";
Choice of configuration settings.
Conley index computation routines.
void processMorseDec(const MorseDecType &morseDec, const CubSetType &allCubes, const GraphType &g, const CubMapType &theCubMap, const CubMapType &, const std::string &cubesFilePrefix, const std::string &procFilePrefix)
Post-processes a Morse decomposition by computing a decomposition of each Morse set into cycle sets a...
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.
Utilites and helper functions.