Commit d215ed80 authored by Thomas Jahns's avatar Thomas Jahns 🤸
Browse files

Save on fprintf calls.

* Also remove unused function taxisPrint.
parent 1f5621b1
...@@ -1414,38 +1414,40 @@ taxisPrintKernel(taxis_t * taxisptr, FILE * fp) ...@@ -1414,38 +1414,40 @@ taxisPrintKernel(taxis_t * taxisptr, FILE * fp)
taxisInqVdateBounds ( taxisptr->self, &vdate_lb, &vdate_ub); taxisInqVdateBounds ( taxisptr->self, &vdate_lb, &vdate_ub);
taxisInqVtimeBounds ( taxisptr->self, &vtime_lb, &vtime_ub); taxisInqVtimeBounds ( taxisptr->self, &vtime_lb, &vtime_ub);
fprintf ( fp, "#\n"); fprintf(fp,
fprintf ( fp, "# taxisID %d\n", taxisptr->self); "#\n"
fprintf ( fp, "#\n"); "# taxisID %d\n"
fprintf ( fp, "self = %d\n", taxisptr->self ); "#\n"
fprintf ( fp, "used = %d\n", taxisptr->used ); "self = %d\n"
fprintf ( fp, "type = %d\n", taxisptr->type ); "used = %d\n"
fprintf ( fp, "vdate = %d\n", taxisptr->vdate ); "type = %d\n"
fprintf ( fp, "vtime = %d\n", taxisptr->vtime ); "vdate = %d\n"
fprintf ( fp, "rdate = %d\n", taxisptr->rdate ); "vtime = %d\n"
fprintf ( fp, "rtime = %d\n", taxisptr->rtime ); "rdate = %d\n"
fprintf ( fp, "fdate = %d\n", taxisptr->fdate ); "rtime = %d\n"
fprintf ( fp, "ftime = %d\n", taxisptr->ftime ); "fdate = %d\n"
fprintf ( fp, "calendar = %d\n", taxisptr->calendar ); "ftime = %d\n"
fprintf ( fp, "unit = %d\n", taxisptr->unit ); "calendar = %d\n"
fprintf ( fp, "numavg = %d\n", taxisptr->numavg ); "unit = %d\n"
fprintf ( fp, "climatology = %d\n", taxisptr->climatology ); "numavg = %d\n"
fprintf ( fp, "has_bounds = %d\n", taxisptr->has_bounds ); "climatology = %d\n"
fprintf ( fp, "vdate_lb = %d\n", vdate_lb ); "has_bounds = %d\n"
fprintf ( fp, "vtime_lb = %d\n", vtime_lb ); "vdate_lb = %d\n"
fprintf ( fp, "vdate_ub = %d\n", vdate_ub ); "vtime_lb = %d\n"
fprintf ( fp, "vtime_ub = %d\n", vtime_ub ); "vdate_ub = %d\n"
fprintf ( fp, "fc_unit = %d\n", taxisptr->fc_unit ); "vtime_ub = %d\n"
fprintf ( fp, "fc_period = %g\n", taxisptr->fc_period ); "fc_unit = %d\n"
fprintf ( fp, "\n"); "fc_period = %g\n"
} "\n", taxisptr->self, taxisptr->self,
taxisptr->used, taxisptr->type,
static void taxisPrint ( int taxisID ) taxisptr->vdate, taxisptr->vtime,
{ taxisptr->rdate, taxisptr->rtime,
taxis_t * taxisptr; taxisptr->fdate, taxisptr->ftime,
taxisptr->calendar, taxisptr->unit,
taxisptr = ( taxis_t * ) reshGetVal ( taxisID, &taxisOps ); taxisptr->numavg, taxisptr->climatology,
taxisPrintKernel ( taxisptr, stdout ); taxisptr->has_bounds,
vdate_lb, vtime_lb, vdate_ub, vtime_ub,
taxisptr->fc_unit, taxisptr->fc_period );
} }
static int static int
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment