00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027
00028
00029
00030
00031
00032
00033
00034 #ifndef _CMGRAPHS_CONFINFO_H_
00035 #define _CMGRAPHS_CONFINFO_H_
00036
00037
00038
00039 #include <ostream>
00040
00041
00042 #include "config.h"
00043
00044
00045
00046
00047
00048
00049
00050
00051
00052
00053 inline void showConfigInfo (std::ostream &f, const char *prefix,
00054 const parCoord *maxIter)
00055 {
00056 if (!prefix)
00057 prefix = "";
00058
00059 f << prefix << "=================================\n";
00060 f << prefix << "Configuration of the computations\n";
00061 f << prefix << "=================================\n";
00062 f << prefix << "\n";
00063
00064 f << prefix << "THE PHASE SPACE:\n";
00065 f << prefix << "dim = " << spaceDim << "\n";
00066 f << prefix << "depth: from " << initialDepth << " to " <<
00067 finalDepth << "\n";
00068
00069 f << prefix << "offset:";
00070 for (int i = 0; i < spaceDim; ++ i)
00071 f << (i ? ", " : " ") << spaceOffset [i];
00072 f << "\n";
00073
00074 f << prefix << "width:";
00075 for (int i = 0; i < spaceDim; ++ i)
00076 f << (i ? " x " : " ") << spaceWidth [i];
00077 f << "\n";
00078
00079 f << prefix << "size in cubes:";
00080 for (int i = 0; i < spaceDim; ++ i)
00081 f << (i ? " x " : " ") << (1 << finalDepth);
00082 f << "\n";
00083 f << prefix << "\n";
00084
00085 f << prefix << "THE PARAMETER SPACE:\n";
00086 f << prefix << "dim = " << paramDim << "\n";
00087
00088 f << prefix << "subdivisions:";
00089 for (int i = 0; i < paramDim; ++ i)
00090 f << (i ? " x " : " ") << paramSubdiv [i];
00091 f << "\n";
00092
00093 if (maxIter)
00094 {
00095 f << prefix << "no. of tasks:";
00096 int nTasks = 1;
00097 for (int i = 0; i < paramDim; ++ i)
00098 {
00099 f << (i ? " x " : " ") << maxIter [i];
00100 nTasks *= maxIter [i];
00101 }
00102 f << " = " << nTasks << "\n";
00103 }
00104
00105 f << prefix << "selected parameters (see below):";
00106 for (int i = 0; i < paramDim; ++ i)
00107 f << (i ? ", " : " ") << paramSelect [i];
00108 f << "\n";
00109
00110 f << prefix << "total number of parameters: " <<
00111 paramCount << "\n";
00112
00113 f << prefix << "ranges:";
00114 for (int i = 0; i < paramCount; ++ i)
00115 f << (i ? " x " : " ") << "[" << paramLeft [i] << "," <<
00116 paramRight [i] << "]";
00117 f << "\n";
00118 f << prefix << "\n";
00119
00120 f << prefix << "LIMITATIONS:\n";
00121 f << prefix << "max refine depth = " << refineDepth << "\n";
00122 f << prefix << "max refine size 0 = " << maxRefineSize0 << "\n";
00123 f << prefix << "max refine size 1 = " << maxRefineSize1 << "\n";
00124 f << prefix << "max image diameter = " << maxImageDiameter << "\n";
00125 f << prefix << "max image volume = " << maxImageVolume << "\n";
00126 f << prefix << "max index pair size = " << maxIndexPairSize << "\n";
00127 f << prefix << "\n";
00128
00129 f << prefix << "OTHER PARAMETERS:\n";
00130 f << prefix << "max join size = " << maxJoinSize << "\n";
00131 f << prefix << "max join connection = " << maxJoinConnection << "\n";
00132 f << prefix << "max join distance = " << maxJoinDistance << "\n";
00133 f << prefix << "compare Morse ordering = " <<
00134 compareMorseOrdering << "\n";
00135 f << prefix << "ignore isol. for cont. = " <<
00136 ignoreIsolationForContinuation << "\n";
00137 f << prefix << "\n";
00138
00139 f << prefix << "=================================\n";
00140 return;
00141 }
00142
00143
00144 #endif // _CMGRAPHS_CONFINFO_H_
00145