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

Go to the source code of this file.

Macros

#define _FCALL

Functions

void analyse_part_scan (int *tab_id)
void apartscan (int *itab)
void apartscan_ (int *itab)
void apartscan__ (int *itab)
void _FCALL APARTSCAN (int *itab)
void analyse_part_set (int part_id, int type)
void apartset (int *id, int *type)
void apartset_ (int *id, int *type)
void apartset__ (int *id, int *type)
void _FCALL APARTSET (int *id, int *type)
static void analyse_part_tab_init (int nb)
void apartin (int *nb)
void apartin_ (int *nb)
void apartin__ (int *nb)
void _FCALL APARTIN (int *nb)

Variables

static int NB_PART
static int * TAB_PART

Macro Definition Documentation

◆ _FCALL

#define _FCALL

Definition at line 34 of file analyse_part.c.

Function Documentation

◆ analyse_part_scan()

void analyse_part_scan ( int * tab_id)

Definition at line 50 of file analyse_part.c.

51{
52 int i;
53 int nbthick;
54 int thick_shell_part = 0;
55
56 for(i=0; i<NB_PART; i++)
57 {
58 /* Shell */
59 nbthick = (TAB_PART[i] >> 0) & 0x1;
60
61 if (nbthick == 1)
62 {
63 analyse_stack_int(*(tab_id + i*50 + (4-1)));
64 analyse_call_error(AN_INFO, 461, ANINFO_BLIND_2);
65
66 thick_shell_part++;
67 }
68 }
69
70 analyse_stack_int(thick_shell_part);
72}
void analyse_stack_int(int i)
Definition analyse.c:334
void analyse_call_check(int id)
Definition analyse.c:802
void analyse_call_error(int type, int id, int mode)
Definition analyse.c:580
static int * TAB_PART
static int NB_PART

◆ analyse_part_set()

void analyse_part_set ( int part_id,
int type )

Definition at line 96 of file analyse_part.c.

97{
98 /*
99 WARNING : START OF TAB IN FORTRAN AND C IS SHIFTED BY 1 :
100 part_id = 1, is the first elt in model, this means tab_part[0]
101 */
102 part_id = part_id - 1;
103
104 switch(type)
105 {
106 case CHECK_THICK_SHELL:
107 TAB_PART[part_id] = TAB_PART[part_id] | 0x1;
108 break;
109 }
110}

◆ analyse_part_tab_init()

void analyse_part_tab_init ( int nb)
static

Definition at line 135 of file analyse_part.c.

136{
137 int i;
138
139 TAB_PART = (int *) malloc(sizeof(int)*nb);
140 NB_PART = nb;
141
142 for(i=0; i<NB_PART; i++)
143 {
144 TAB_PART[i] = 0;
145 }
146}

◆ APARTIN()

void _FCALL APARTIN ( int * nb)

Definition at line 164 of file analyse_part.c.

165{
167}
static void analyse_part_tab_init(int nb)

◆ apartin()

void apartin ( int * nb)

Definition at line 148 of file analyse_part.c.

149{
151}

◆ apartin_()

void apartin_ ( int * nb)

Definition at line 153 of file analyse_part.c.

154{
156}

◆ apartin__()

void apartin__ ( int * nb)

Definition at line 158 of file analyse_part.c.

159{
161}

◆ APARTSCAN()

void _FCALL APARTSCAN ( int * itab)

Definition at line 90 of file analyse_part.c.

91{
93}
void analyse_part_scan(int *tab_id)

◆ apartscan()

void apartscan ( int * itab)

Definition at line 74 of file analyse_part.c.

75{
77}

◆ apartscan_()

void apartscan_ ( int * itab)

Definition at line 79 of file analyse_part.c.

80{
82}

◆ apartscan__()

void apartscan__ ( int * itab)

Definition at line 84 of file analyse_part.c.

85{
87}

◆ APARTSET()

void _FCALL APARTSET ( int * id,
int * type )

Definition at line 128 of file analyse_part.c.

129{
130 analyse_part_set(*id, *type);
131}
void analyse_part_set(int part_id, int type)

◆ apartset()

void apartset ( int * id,
int * type )

Definition at line 112 of file analyse_part.c.

113{
114 analyse_part_set(*id, *type);
115}

◆ apartset_()

void apartset_ ( int * id,
int * type )

Definition at line 117 of file analyse_part.c.

118{
119 analyse_part_set(*id, *type);
120}

◆ apartset__()

void apartset__ ( int * id,
int * type )

Definition at line 122 of file analyse_part.c.

123{
124 analyse_part_set(*id, *type);
125}

Variable Documentation

◆ NB_PART

int NB_PART
static

Definition at line 47 of file analyse_part.c.

◆ TAB_PART

int* TAB_PART
static

Definition at line 48 of file analyse_part.c.