46 void write_vec(
const char *filename,
int n_equations,
double *x)
56 if ( (out_file = fopen( filename,
"w")) == NULL ) {
57 fprintf(stderr,
"Error: Cannot open file: %s\n",filename);
61 for (i=0; i< n_equations; i++)
62 fprintf(out_file,
"%20.15e\n", x[i]) ;
void write_vec(const char *filename, int n_equations, double *x)