Go to the documentation of this file.
73 int main( int argc, char **arg)
110 Error( "Can not open the input file with the atom positions");
118 fprintf(stderr, "Writing samples to : %s\n", GetFileFullName(&fsamples));
122 Error( "Could not open the file to write the samples");
126 NEW(atoms,3*na, double);
132 for(i=0;((!end)&&(i<na));i++)
134 for(j=0;((!end)&&(j<3));j++,k++)
136 token=fscanf(fin, "%lf",&(atoms[k]));
137 if ((token==EOF)||(token==0))
149 fprintf(fout, "%.16f ",sample[i]);
173 fprintf(stderr, " Wrong number of parameters.\n");
174 fprintf(stderr, " Use:\n");
175 fprintf(stderr, " cuikatoms2samples <problem_name>.pdb\n");
176 fprintf(stderr, " where <problem_name>.pdb contains the molecular information\n");
177 fprintf(stderr, " The '.pab' extension is required\n");
178 fprintf(stderr, " All the extensions managed by OpenBabel can be used\n");
181 return(EXIT_SUCCESS);
|
Follow us!