23#include "hardware.inc"
24#include "c_header.inc"
30void progcond_c(
int *icur,
int *imax,
int *iproc,
int *ilvl,
int *
id,
int *istep)
35 percent=(double)(*icur) / *imax * 100 ;
36 if (*istep == 0) {sprintf(outline,
"%s%4d%s%4d%s%4d%s%5.1f%s",
" SUBGRAPH: ",*iproc,
" LEVEL: ",*ilvl,
" SUP-ELEM: ",*
id,
" - ",percent,
"% ") ;}
37 else if (*istep == 1) {sprintf(outline,
"%s%4d%s%4d%s%4d%s%5.1f%s",
" SUBGRAPH: ",*iproc,
" LEVEL: ",*ilvl,
" SUP-ELEM: ",*
id,
" - ",percent,
"% - EXTRACTION ") ;}
38 else if (*istep == 2) {sprintf(outline,
"%s%4d%s%4d%s%4d%s%5.1f%s",
" SUBGRAPH: ",*iproc,
" LEVEL: ",*ilvl,
" SUP-ELEM: ",*
id,
" - ",percent,
"% - RESOLUTION ") ;}
39 else if (*istep == 3) {sprintf(outline,
"%s%4d%s%4d%s%4d%s%5.1f%s",
" SUBGRAPH: ",*iproc,
" LEVEL: ",*ilvl,
" SUP-ELEM: ",*
id,
" - ",percent,
"% - CONDENSATION") ;}
40 fprintf(stdout,
"\r%s",outline) ;
41 if (*icur == *imax && (*istep == 0 || *istep == 3)) {fprintf(stdout,
"\r%s%4d%s\n",
" SUBGRAPH: ",*iproc,
" - COMPLETE ") ;}
45void _FCALL PROGCOND_C(
int *icur,
int *imax,
int *iproc,
int *ilvl,
int *
id,
int *istep)
47 progcond_c(icur, imax, iproc, ilvl,
id, istep) ;
49void progcond_c_(
int *icur,
int *imax,
int *iproc,
int *ilvl,
int *
id,
int *istep)
51 progcond_c(icur, imax, iproc, ilvl,
id, istep) ;
53void progcond_c__(
int *icur,
int *imax,
int *iproc,
int *ilvl,
int *
id,
int *istep)
55 progcond_c(icur, imax, iproc, ilvl,
id, istep) ;
68 percent=(double)(*icur) / *imax * 100 ;
70 for (i=1;i<(*iproc);i++) {j=2*(i-1)+1 ;
74 j=2 * (*iproc - 1) + 1 ;
80 sprintf(outline,
"%s%2d%s%3.0f%s",
"P ",*iproc,
" ",percent,
"% ") ;
81 fprintf(stdout,ctab,outline) ;
void progcondp_c__(int *icur, int *imax, int *iproc, int *id)
void progcondp_c_(int *icur, int *imax, int *iproc, int *id)
void progcond_c__(int *icur, int *imax, int *iproc, int *ilvl, int *id, int *istep)
void progcond_c(int *icur, int *imax, int *iproc, int *ilvl, int *id, int *istep)
void progcondp_c(int *icur, int *imax, int *iproc, int *id)
void _FCALL PROGCONDP_C(int *icur, int *imax, int *iproc, int *id)
void _FCALL PROGCOND_C(int *icur, int *imax, int *iproc, int *ilvl, int *id, int *istep)
void progcond_c_(int *icur, int *imax, int *iproc, int *ilvl, int *id, int *istep)