diff --git a/add_ons/paraview/Common/alberta2paraview.c b/add_ons/paraview/Common/alberta2paraview.c index 59287b157a80f6e06e8eda65700d0c6218bb6030..7260769622b485313547a996e5a0774ac8d9ae31 100644 --- a/add_ons/paraview/Common/alberta2paraview.c +++ b/add_ons/paraview/Common/alberta2paraview.c @@ -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]);