Skip to content
Snippets Groups Projects
Commit 8af078db authored by Claus-Justus Heine's avatar Claus-Justus Heine
Browse files

Indentation and cosmetics.

parent c536f299
Branches
Tags
No related merge requests found
......@@ -165,7 +165,9 @@ static int print_help(const char *funcName, FILE *f, int status)
"`-m MESH' specifies a new mesh for all following DRVs and DRDVs (see below)\n"
"`-b|-x' alters the expected data-format for all following files\n"
" (see below)\n"
"\n"
"\n",
funcName, funcName, funcName);
fprintf(f,
"Options:\n"
" -t, --transient FIRST LAST\n"
" Convert a sequence of mesh- and data-files. The file-names\n"
......@@ -231,8 +233,8 @@ static int print_help(const char *funcName, FILE *f, int status)
" directory containing all data-files specified by the following\n"
" `-m', `-s' and `-v' options.\n"
" -h, --help\n"
" Print this help.\n",
funcName, funcName, funcName);
" Print this help.\n");
return status;
}
......@@ -1259,7 +1261,7 @@ void write_mesh_paraview(MESH *mesh, const char *outname,
fprintf(paraview_file, ">\n");
if (ascii) {
if (have_drv_cd) {
/* dump scalar cell-data */
/* dump scalar cell-data */
for (val_num = 0; val_num < n_drv; val_num++) {
if (!drv_cell[val_num]) {
continue;
......@@ -1311,13 +1313,13 @@ void write_mesh_paraview(MESH *mesh, const char *outname,
for (i = 0; i < n_sub; i++) {
eval_uh_dow(result, sub_center[i],
uh_loc_d, drdv[val_num]->fe_space->bas_fcts);
}
fprintf(paraview_file, " ");
for (j = 0; j < DIM_OF_WORLD; j++) {
fprintf(paraview_file, "%.15e%s", result[j], j < 2 ? " " : "\n");
}
for (; j < 3; j++) {
fprintf(paraview_file, " 0%s", j < 2 ? " " : "\n");
fprintf(paraview_file, " ");
for (j = 0; j < DIM_OF_WORLD; j++) {
fprintf(paraview_file, "%.15e%s", result[j], j < 2 ? " " : "\n");
}
for (; j < 3; j++) {
fprintf(paraview_file, " 0%s", j < 2 ? " " : "\n");
}
}
} TRAVERSE_NEXT();
fprintf(paraview_file, " </%s>\n", keys[KEY_DA]);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment