OpenRadioss 2025.1.11
OpenRadioss project
Loading...
Searching...
No Matches
progale_c.c
Go to the documentation of this file.
1//Copyright> OpenRadioss
2//Copyright> Copyright (C) 1986-2025 Altair Engineering Inc.
3//Copyright>
4//Copyright> This program is free software: you can redistribute it and/or modify
5//Copyright> it under the terms of the GNU Affero General Public License as published by
6//Copyright> the Free Software Foundation, either version 3 of the License, or
7//Copyright> (at your option) any later version.
8//Copyright>
9//Copyright> This program is distributed in the hope that it will be useful,
10//Copyright> but WITHOUT ANY WARRANTY; without even the implied warranty of
11//Copyright> MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12//Copyright> GNU Affero General Public License for more details.
13//Copyright>
14//Copyright> You should have received a copy of the GNU Affero General Public License
15//Copyright> along with this program. If not, see <https://www.gnu.org/licenses/>.
16//Copyright>
17//Copyright>
18//Copyright> Commercial Alternative: Altair Radioss Software
19//Copyright>
20//Copyright> As an alternative to this open-source version, Altair also offers Altair Radioss
21//Copyright> software under a commercial license. Contact Altair to discuss further if the
22//Copyright> commercial version may interest you: https://www.altair.com/radioss/.
23#include "hardware.inc"
24#define _FCALL
25/*Cvf51e6 Nouvelle routine*/
26/*Routine pour afficher la progression de la domdec sur la sortie standard */
27#include <stdio.h>
28
29void progale_c(int *icur, int *imax, int *ityp)
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}
57
58void _FCALL PROGALE_C(int *icur, int *imax, int *ityp)
59{
60 progale_c(icur, imax, ityp) ;
61}
62void progale_c_(int *icur, int *imax, int *ityp)
63{
64 progale_c(icur, imax, ityp) ;
65}
66void progale_c__(int *icur, int *imax, int *ityp)
67{
68 progale_c(icur, imax, ityp) ;
69}
70
#define _FCALL
void _FCALL PROGALE_C(int *icur, int *imax, int *ityp)
Definition progale_c.c:58
void progale_c(int *icur, int *imax, int *ityp)
Definition progale_c.c:29
void progale_c_(int *icur, int *imax, int *ityp)
Definition progale_c.c:62
void progale_c__(int *icur, int *imax, int *ityp)
Definition progale_c.c:66