Go to the documentation of this file.
71 int main( int argc, char **arg)
77 unsigned int nx,ny,nz;
78 unsigned int xID,yID,zID;
80 unsigned int i,s,nv,nvs;
89 if ((argc==5)||(argc==6))
94 fprintf(stderr, "Reading parameters from : %s\n", GetFileFullName(&fparam));
102 LoadAtlas(¶meters,&fatlas,&world,&atlas);
110 Error( "Can not open the cost file");
124 fprintf(stderr, "Projecting on variables : ");
137 if (nx==nvs) {xID=i; s++;}
138 if (ny==nvs) {yID=i; s++;}
139 if (nz==nvs) {zID=i; s++;}
145 Error( "Projection dimensions are beyond the ambient space dimensionality");
148 fprintf(stderr, "Generating atlas plot to : %s\n", GetFileFullName(&fplot));
169 fprintf(stderr, " Wrong number of parameters.\n");
170 fprintf(stderr, " Use:\n");
171 fprintf(stderr, " cuikplotatlas <problem filename> <cost file> <xID> <yID> <zID>\n");
172 fprintf(stderr, " where <problem filename> is the atlas to plot.\n");
173 fprintf(stderr, " <cost file> [optional] file with associated costs for each chart.\n");
174 fprintf(stderr, " <xID> <yID> <zID> are the 3 projection dimensions.\n");
175 fprintf(stderr, " (indices of system variables as those in the _path.sol file from 0)\n");
178 return(EXIT_SUCCESS);
void LoadAtlas(Tparameters *pr, Tfilename *fname, TAtlasBase *w, Tatlas *a) Defines an atlas from the information on a file.
Data structure to hold the information about the name of a file.
Definition of the Tfilename type and the associated functions.
#define COST_EXT File extension for arrays of costs.
void DeleteAtlas(Tatlas *a) Destructor.
void Error(const char *s) General error function.
#define PARAM_EXT File extension for parameter files.
#define CS_WD_DELETE(wcs) Destructor of the equation structure.
Definition of the Tworld type and the associated functions.
Error and warning functions.
void DeleteFileName(Tfilename *fn) Destructor.
#define ATLAS_EXT File extension for files storing atlas.
#define PRINT_VARIABLE_NAME(f, name) Prints a variable name into a file.
Definitions of constants and macros used in several parts of the cuik library.
void CreateFileName(char *path, char *name, char *suffix, char *ext, Tfilename *fn) Constructor.
void InitParametersFromFile(char *file, Tparameters *p) Constructor from a file.
Type defining the equations on which the atlas is defined.
Definition of an atlas on a manifold.
#define CS_WD_GET_SYSTEM_VARS(sv, wcs) Gets the system variables.
char * GetFileFullName(Tfilename *fn) Gets the file full name (paht+name+extension).
void DeleteParameters(Tparameters *p) Destructor.
int main(int argc, char **arg) Main body of the cuikplotatlas application.
#define CS_WD_INIT(pr, name, wcs) Initializes the equations from a file.
#define PLOT3D_EXT File extension for 3D plot files.
#define CS_WD_GET_SYSTEM_VAR_NAME(id, wcs) Name of a particular system variables.
Auxiliary functions to deal with sets of samples.
Definition of the Tparameters type and the associated functions.
void PlotAtlas(char *fname, int argc, char **arg, Tparameters *pr, FILE *fcost, unsigned int xID, unsigned int yID, unsigned int zID, Tatlas *a) Pots a projection of an atlas.
|
Follow us!