OpenRadioss 2025.1.11
OpenRadioss project
Loading...
Searching...
No Matches
progcond_c.c File Reference
#include "hardware.inc"
#include "c_header.inc"
#include <stdio.h>

Go to the source code of this file.

Functions

void progcond_c (int *icur, int *imax, int *iproc, int *ilvl, int *id, int *istep)
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)
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 progcondp_c_ (int *icur, int *imax, int *iproc, int *id)
void progcondp_c__ (int *icur, int *imax, int *iproc, int *id)

Function Documentation

◆ PROGCOND_C()

void _FCALL PROGCOND_C ( int * icur,
int * imax,
int * iproc,
int * ilvl,
int * id,
int * istep )

Definition at line 45 of file progcond_c.c.

46{
47 progcond_c(icur, imax, iproc, ilvl, id, istep) ;
48}
void progcond_c(int *icur, int *imax, int *iproc, int *ilvl, int *id, int *istep)
Definition progcond_c.c:30

◆ progcond_c()

void progcond_c ( int * icur,
int * imax,
int * iproc,
int * ilvl,
int * id,
int * istep )

Definition at line 30 of file progcond_c.c.

31{
32 char outline[80];
33 double percent ;
34
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 ") ;}
42 fflush(stdout) ;
43}

◆ progcond_c_()

void progcond_c_ ( int * icur,
int * imax,
int * iproc,
int * ilvl,
int * id,
int * istep )

Definition at line 49 of file progcond_c.c.

50{
51 progcond_c(icur, imax, iproc, ilvl, id, istep) ;
52}

◆ progcond_c__()

void progcond_c__ ( int * icur,
int * imax,
int * iproc,
int * ilvl,
int * id,
int * istep )

Definition at line 53 of file progcond_c.c.

54{
55 progcond_c(icur, imax, iproc, ilvl, id, istep) ;
56}

◆ PROGCONDP_C()

void _FCALL PROGCONDP_C ( int * icur,
int * imax,
int * iproc,
int * id )

Definition at line 85 of file progcond_c.c.

86{
87 progcondp_c(icur, imax, iproc, id) ;
88}
void progcondp_c(int *icur, int *imax, int *iproc, int *id)
Definition progcond_c.c:61

◆ progcondp_c()

void progcondp_c ( int * icur,
int * imax,
int * iproc,
int * id )

Definition at line 61 of file progcond_c.c.

62{
63 char outline[11];
64 double percent ;
65 char ctab[80] ;
66 int i,j ;
67
68 percent=(double)(*icur) / *imax * 100 ;
69 ctab[0]='\r' ;
70 for (i=1;i<(*iproc);i++) {j=2*(i-1)+1 ;
71 ctab[j]='\t' ;
72 j=2*i ;
73 ctab[j]='\t';}
74 j=2 * (*iproc - 1) + 1 ;
75 ctab[j]='%' ;
76 j+=1 ;
77 ctab[j]='s' ;
78 j+=1 ;
79 ctab[j]='\0' ;
80 sprintf(outline,"%s%2d%s%3.0f%s","P ",*iproc," ",percent,"% ") ;
81 fprintf(stdout,ctab,outline) ;
82 fflush(stdout) ;
83}

◆ progcondp_c_()

void progcondp_c_ ( int * icur,
int * imax,
int * iproc,
int * id )

Definition at line 89 of file progcond_c.c.

90{
91 progcondp_c(icur, imax, iproc, id) ;
92}

◆ progcondp_c__()

void progcondp_c__ ( int * icur,
int * imax,
int * iproc,
int * id )

Definition at line 93 of file progcond_c.c.

94{
95 progcondp_c(icur, imax, iproc, id) ;
96}