Go to the documentation of this file.
62 int main( int argc, char **arg)
64 FILE *fileIn,*fileOut;
67 unsigned int *map,*dimSin,*dimCos,nIn,nOut;
68 unsigned int k,l,t,na,nbox;
73 if ((argc<4)||((argc%2)==0))
75 fprintf(stderr, "Use:\n");
76 fprintf(stderr, " cuikatan2 <input_file> <dim_sin_1> <dim_cos_1> ... <dim_sin_n> <dim_cos_n> <output_file>\n");
77 fprintf(stderr, " <input_file> the input .sol file\n");
78 fprintf(stderr, " <dim_sin_i> <dim_cos_i> the sin/cos dimensions (numbered from 1)\n");
79 fprintf(stderr, " <output_file> the .sol file to be generated\n");
88 Error( "Input file can not be opened");
92 Error( "Output file can not be opened");
96 NEW(dimSin,na, unsigned int);
97 NEW(dimCos,na, unsigned int);
101 dimSin[k]=( unsigned int)atoi(arg[2+2*k])-1;
102 dimCos[k]=( unsigned int)atoi(arg[3+2*k])-1;
116 NEW(map,nOut-na, unsigned int);
122 while((!found)&&(t<na))
124 found=((k==dimSin[t])||(k==dimCos[t]));
136 for(k=0;k<nOut-na;k++)
155 } while (token!=EOF);
171 return(EXIT_SUCCESS);
|
Follow us!