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

Go to the source code of this file.

Macros

#define _FCALL

Functions

void progale_c (int *icur, int *imax, int *ityp)
void _FCALL PROGALE_C (int *icur, int *imax, int *ityp)
void progale_c_ (int *icur, int *imax, int *ityp)
void progale_c__ (int *icur, int *imax, int *ityp)

Macro Definition Documentation

◆ _FCALL

#define _FCALL

Definition at line 24 of file progale_c.c.

Function Documentation

◆ PROGALE_C()

void _FCALL PROGALE_C ( int * icur,
int * imax,
int * ityp )

Definition at line 58 of file progale_c.c.

59{
60 progale_c(icur, imax, ityp) ;
61}
void progale_c(int *icur, int *imax, int *ityp)
Definition progale_c.c:29

◆ progale_c()

void progale_c ( int * icur,
int * imax,
int * ityp )

Definition at line 29 of file progale_c.c.

30{
31 char outline[80] ;
32 double percent ;
33
34 percent=(double)(*icur) / *imax * 100 ;
35 if (*ityp == 1) {
36 sprintf(outline,"%s%5.1f%s"," BUILDING POLYGONS: ",percent,"%") ;
37 fprintf(stdout,"\r%s",outline) ;
38 if (*icur == *imax) {fprintf(stdout,"\r%s\n"," BUILDING POLYGONS - COMPLETE ") ;}
39 }
40 else if (*ityp == 2) {
41 sprintf(outline,"%s%5.1f%s"," BUILDING POLYHEDRA: ",percent,"%") ;
42 fprintf(stdout,"\r%s",outline) ;
43 if (*icur == *imax) {fprintf(stdout,"\r%s\n"," BUILDING POLYHEDRA - COMPLETE ") ;}
44 }
45 else if (*ityp == 3) {
46 sprintf(outline,"%s%5.1f%s"," MERGING COINCIDENT NODES FOR ANIM: ",percent,"%") ;
47 fprintf(stdout,"\r%s",outline) ;
48 if (*icur == *imax) {fprintf(stdout,"\r%s\n"," MERGING COINCIDENT NODES FOR ANIM - COMPLETE ") ;}
49 }
50 else if (*ityp == 4) {
51 sprintf(outline,"%s%5.1f%s"," BUILDING ELEMENT CONNECTIVITY: ",percent,"%") ;
52 fprintf(stdout,"\r%s",outline) ;
53 if (*icur == *imax) {fprintf(stdout,"\r%s\n"," BUILDING ELEMENT CONNECTIVITY - COMPLETE ") ;}
54 }
55 fflush(stdout) ;
56}

◆ progale_c_()

void progale_c_ ( int * icur,
int * imax,
int * ityp )

Definition at line 62 of file progale_c.c.

63{
64 progale_c(icur, imax, ityp) ;
65}

◆ progale_c__()

void progale_c__ ( int * icur,
int * imax,
int * ityp )

Definition at line 66 of file progale_c.c.

67{
68 progale_c(icur, imax, ityp) ;
69}