From 8af078db212ce1ba0fe7a929873fd252bc2c0892 Mon Sep 17 00:00:00 2001 From: Claus-Justus Heine <Claus-Justus.Heine@IANS.Uni-Stuttgart.DE> Date: Fri, 22 Jul 2016 09:56:10 +0000 Subject: [PATCH] Indentation and cosmetics. --- add_ons/paraview/Common/alberta2paraview.c | 24 ++++++++++++---------- 1 file changed, 13 insertions(+), 11 deletions(-) diff --git a/add_ons/paraview/Common/alberta2paraview.c b/add_ons/paraview/Common/alberta2paraview.c index 59287b1..7260769 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]); -- GitLab