#include "hardware.inc"#include <stdio.h>#include <string.h>#include <stdlib.h>#include <math.h>#include <fcntl.h>#include <zlib.h>#include <sys/resource.h>#include <sys/types.h>#include <time.h>#include <sys/stat.h>#include <unistd.h>Go to the source code of this file.
Macros | |
| #define | _FCALL |
| #define | BUFLEN 256 |
| #define | ZSUFFIX 0 |
| #define | GZSUFFIX 1 |
| #define | COMP_BUFFER_SIZE 10240 |
Functions | |
| void | integer_to_IEEE_ASCII (int entier, unsigned char octet[4]) |
| void | IEEE_ASCII_to_integer (int *entier, unsigned char octet[4]) |
| void | real_to_IEEE_ASCII (float reel, unsigned char octet[4]) |
| void | IEEE_ASCII_to_real (float *reel, unsigned char octet[4]) |
| void | double_to_IEEE_ASCII (double *reel, unsigned char octet[1000][8], int len) |
| void | IEEE_ASCII_to_double (double *reel, unsigned char octet[1000][8], int len) |
| void | file_init_ () |
| void | open_c (int *ifil, int *len, int *mod) |
| void | close_c () |
| void | fseek_c_rd (int *lseek) |
| void | fseek_end_c (int *lseek) |
| void | file_size (int *filesize) |
| void | filelen_sys (char *ffilnam, int *len, int *size) |
| void | cur_fil_c (int *nf) |
| void | eor_c (int *len) |
| void | write_r_c (float *w, int *len) |
| void | write_db_c (double *w, int *len) |
| void | write_db_array_c (double *w, int *len) |
| void | write_c_c (int *w, int *len) |
| void | write_c_c_txt (char *w, int *len) |
| void | write_i_c (int *w, int *len) |
| void | write_i_array_c (int *w, int *len) |
| void | write_s_c (int *w, int *len) |
| void | read_db_c (double *w, int *len) |
| void | read_db_array_c (double *w, int *len) |
| void | read_r_c (float *w, int *len) |
| void | read_i_c (int *w, int *len) |
| void | read_i_array_c (int *w, int *len) |
| void | read_c_c (int *w, int *len) |
| void | flu_fil_c () |
| void | arret_ (int *n) |
| void | ARRET (int *n) |
| void | arret_c (int n) |
| int | Compress_Buffer (unsigned char *input, int inputSize, unsigned char *output, int outputSize) |
| void | write_buffer (unsigned char *buf, int type_size, int length) |
| void | close_buffer () |
| void | delete_tmpfile_ (char *name, int *size) |
| void | file_init () |
| void _FCALL | FILE_INIT () |
| void _FCALL | OPEN_C (int *ifil, int *len, int *mod) |
| void | open_c_ (int *ifil, int *len, int *mod) |
| void | open_c__ (int *ifil, int *len, int *mod) |
| void _FCALL | CLOSE_C () |
| void | close_c_ () |
| void | close_c__ () |
| void | fseek_c_rd_ (int *lseek) |
| void | fseek_c_rd__ (int *lseek) |
| void _FCALL | FSEEK_C_RD (int *lseek) |
| void | fseek_end_c_ (int *lseek) |
| void _FCALL | FSEEK_END_C (int *lseek) |
| void | file_size_ (int *filesize) |
| void | file_size__ (int *filesize) |
| void _FCALL | FILE_SIZE (int *filesize) |
| void | file_size_c_ (long *size) |
| void _FCALL | FILE_SIZE_C (long *size) |
| void | filelen_sys_ (char *ffilnam, int *len, int *size) |
| void | filelen_sys__ (char *ffilnam, int *len, int *size) |
| void _FCALL | FILELEN_SYS (char *ffilnam, int *len, int *size) |
| void _FCALL | CUR_FIL_C (int *nf) |
| void | cur_fil_c_ (int *nf) |
| void | cur_fil_c__ (int *nf) |
| void _FCALL | EOR_C (int *len) |
| void | eor_c_ (int *len) |
| void _FCALL | WRITE_R_C (float *w, int *len) |
| void | write_r_c_ (float *w, int *len) |
| void _FCALL | WRITE_DB_C (double *w, int *len) |
| void | write_db_c_ (double *w, int *len) |
| void | write_db_c__ (double *w, int *len) |
| void _FCALL | WRITE_DB_ARRAY_C (double *w, int *len) |
| void | write_db_array_c_ (double *w, int *len) |
| void | write_db_array_c__ (double *w, int *len) |
| void _FCALL | WRITE_C_C (int *w, int *len) |
| void | write_c_c_ (int *w, int *len) |
| void | write_c_c__ (int *w, int *len) |
| void _FCALL | WRITE_C_C_TXT (char *w, int *len) |
| void | write_c_c_txt_ (char *w, int *len) |
| void | write_c_c_txt__ (char *w, int *len) |
| void _FCALL | WRITE_I_C (int *w, int *len) |
| void | write_i_c_ (int *w, int *len) |
| void | write_i_c__ (int *w, int *len) |
| void _FCALL | WRITE_I_ARRAY_C (int *w, int *len) |
| void | write_i_array_c_ (int *w, int *len) |
| void | write_i_array_c__ (int *w, int *len) |
| void _FCALL | WRITE_S_C (int *w, int *len) |
| void | write_s_c_ (int *w, int *len) |
| void _FCALL | READ_DB_C (double *w, int *len) |
| void | read_db_c_ (double *w, int *len) |
| void _FCALL | READ_DB_ARRAY_C (double *w, int *len) |
| void | read_db_array_c_ (double *w, int *len) |
| void _FCALL | READ_R_C (float *w, int *len) |
| void | read_r_c_ (float *w, int *len) |
| void _FCALL | READ_I_C (int *w, int *len) |
| void | read_i_c_ (int *w, int *len) |
| void _FCALL | READ_I_ARRAY_C (int *w, int *len) |
| void | read_i_array_c_ (int *w, int *len) |
| void _FCALL | READ_C_C (int *w, int *len) |
| void | read_c_c_ (int *w, int *len) |
| void | read_c_c__ (int *w, int *len) |
| void _FCALL | FLU_FIL_C () |
| void | flu_fil_c_ () |
| void | flu_fil_c__ () |
| void _FCALL | DELETE_TMPFILE (char *name, int *size) |
| void | delete_tmpfile__ (char *name, int *size) |
| void | delete_tmpfile (char *name, int *size) |
Variables | |
| FILE * | outfile [100] |
| int | outfile_mod [100] |
| unsigned char * | compress_write_buffer [100] |
| gzFile | compress_read_buffer [100] |
| int | compress_buffer_length [100] |
| FILE * | curfile |
| int | cur_nf |
| #define _FCALL |
Definition at line 50 of file write_routtines.c.
| #define BUFLEN 256 |
Definition at line 105 of file write_routtines.c.
| #define COMP_BUFFER_SIZE 10240 |
Definition at line 109 of file write_routtines.c.
| #define GZSUFFIX 1 |
Definition at line 107 of file write_routtines.c.
| #define ZSUFFIX 0 |
Definition at line 106 of file write_routtines.c.
| void ARRET | ( | int * | n | ) |
| void arret_ | ( | int * | n | ) |
| void arret_c | ( | int | n | ) |
n is the error termination
Definition at line 132 of file write_routtines.c.
| void close_buffer | ( | ) |
Close the file in uncompressed mode
Definition at line 1000 of file write_routtines.c.
| void _FCALL CLOSE_C | ( | ) |
Definition at line 312 of file write_routtines.c.
| void close_c | ( | ) |
Definition at line 298 of file write_routtines.c.
| void close_c_ | ( | ) |
Definition at line 315 of file write_routtines.c.
| void close_c__ | ( | ) |
Definition at line 318 of file write_routtines.c.
| int Compress_Buffer | ( | unsigned char * | input, |
| int | inputSize, | ||
| unsigned char * | output, | ||
| int | outputSize ) |
input : input character array inputSize : length of this array output : gzipped array
Definition at line 921 of file write_routtines.c.
| void _FCALL CUR_FIL_C | ( | int * | nf | ) |
Definition at line 487 of file write_routtines.c.
| void cur_fil_c | ( | int * | nf | ) |
Definition at line 477 of file write_routtines.c.
| void cur_fil_c_ | ( | int * | nf | ) |
Definition at line 490 of file write_routtines.c.
| void cur_fil_c__ | ( | int * | nf | ) |
Definition at line 493 of file write_routtines.c.
| void _FCALL DELETE_TMPFILE | ( | char * | name, |
| int * | size ) |
Definition at line 1046 of file write_routtines.c.
| void delete_tmpfile | ( | char * | name, |
| int * | size ) |
Definition at line 1052 of file write_routtines.c.
| void delete_tmpfile_ | ( | char * | name, |
| int * | size ) |
Delete a temp file from Radioss Routine can be used from Fortran, it copies name in an another string
char * name : string containing filename to delete
Definition at line 1024 of file write_routtines.c.
| void delete_tmpfile__ | ( | char * | name, |
| int * | size ) |
Definition at line 1049 of file write_routtines.c.
| void double_to_IEEE_ASCII | ( | double * | reel, |
| unsigned char | octet[1000][8], | ||
| int | len ) |
Definition at line 168 of file ieee.cpp.
| void _FCALL EOR_C | ( | int * | len | ) |
Definition at line 510 of file write_routtines.c.
| void eor_c | ( | int * | len | ) |
Definition at line 498 of file write_routtines.c.
| void eor_c_ | ( | int * | len | ) |
Definition at line 513 of file write_routtines.c.
| void _FCALL FILE_INIT | ( | ) |
Definition at line 169 of file write_routtines.c.
| void file_init | ( | ) |
Definition at line 161 of file write_routtines.c.
| void file_init_ | ( | ) |
Initialize the file pointers to NULL
Definition at line 148 of file write_routtines.c.
| void _FCALL FILE_SIZE | ( | int * | filesize | ) |
Definition at line 379 of file write_routtines.c.
| void file_size | ( | int * | filesize | ) |
Definition at line 371 of file write_routtines.c.
| void file_size_ | ( | int * | filesize | ) |
Definition at line 360 of file write_routtines.c.
| void file_size__ | ( | int * | filesize | ) |
Definition at line 375 of file write_routtines.c.
| void _FCALL FILE_SIZE_C | ( | long * | size | ) |
Definition at line 393 of file write_routtines.c.
| void file_size_c_ | ( | long * | size | ) |
Definition at line 384 of file write_routtines.c.
| void _FCALL FILELEN_SYS | ( | char * | ffilnam, |
| int * | len, | ||
| int * | size ) |
Definition at line 472 of file write_routtines.c.
| void filelen_sys | ( | char * | ffilnam, |
| int * | len, | ||
| int * | size ) |
Definition at line 464 of file write_routtines.c.
| void filelen_sys_ | ( | char * | ffilnam, |
| int * | len, | ||
| int * | size ) |
char * ffilnam : filename can come from Fortran int *len : length of filename
Definition at line 435 of file write_routtines.c.
| void filelen_sys__ | ( | char * | ffilnam, |
| int * | len, | ||
| int * | size ) |
Definition at line 468 of file write_routtines.c.
| void _FCALL FLU_FIL_C | ( | ) |
Definition at line 908 of file write_routtines.c.
| void flu_fil_c | ( | ) |
flush the current file to disc
Definition at line 901 of file write_routtines.c.
| void flu_fil_c_ | ( | ) |
Definition at line 912 of file write_routtines.c.
| void flu_fil_c__ | ( | ) |
Definition at line 917 of file write_routtines.c.
| void _FCALL FSEEK_C_RD | ( | int * | lseek | ) |
Definition at line 339 of file write_routtines.c.
| void fseek_c_rd | ( | int * | lseek | ) |
Definition at line 323 of file write_routtines.c.
| void fseek_c_rd_ | ( | int * | lseek | ) |
Definition at line 331 of file write_routtines.c.
| void fseek_c_rd__ | ( | int * | lseek | ) |
Definition at line 335 of file write_routtines.c.
| void _FCALL FSEEK_END_C | ( | int * | lseek | ) |
Definition at line 355 of file write_routtines.c.
| void fseek_end_c | ( | int * | lseek | ) |
Definition at line 343 of file write_routtines.c.
| void fseek_end_c_ | ( | int * | lseek | ) |
Definition at line 351 of file write_routtines.c.
| void IEEE_ASCII_to_double | ( | double * | reel, |
| unsigned char | octet[1000][8], | ||
| int | len ) |
Definition at line 256 of file ieee.cpp.
| void IEEE_ASCII_to_integer | ( | int * | entier, |
| unsigned char | octet[4] ) |
Definition at line 47 of file ieee.cpp.
| void IEEE_ASCII_to_real | ( | float * | reel, |
| unsigned char | octet[4] ) |
Definition at line 126 of file ieee.cpp.
| void integer_to_IEEE_ASCII | ( | int | entier, |
| unsigned char | octet[4] ) |
| void _FCALL OPEN_C | ( | int * | ifil, |
| int * | len, | ||
| int * | mod ) |
Definition at line 288 of file write_routtines.c.
| void open_c | ( | int * | ifil, |
| int * | len, | ||
| int * | mod ) |
Opens a file according to mod. ifil : filename stored as integer Ascii values len : size of ifil mod= Read : 1 (unzipped), 4, 7 (zipped) Write : 0 (unzipped), 3, 6 (gzipped)
Definition at line 180 of file write_routtines.c.
| void open_c_ | ( | int * | ifil, |
| int * | len, | ||
| int * | mod ) |
Definition at line 291 of file write_routtines.c.
| void open_c__ | ( | int * | ifil, |
| int * | len, | ||
| int * | mod ) |
Definition at line 294 of file write_routtines.c.
| void _FCALL READ_C_C | ( | int * | w, |
| int * | len ) |
Definition at line 889 of file write_routtines.c.
| void read_c_c | ( | int * | w, |
| int * | len ) |
w, input : integer array to read
Definition at line 857 of file write_routtines.c.
| void read_c_c_ | ( | int * | w, |
| int * | len ) |
Definition at line 893 of file write_routtines.c.
| void read_c_c__ | ( | int * | w, |
| int * | len ) |
Definition at line 897 of file write_routtines.c.
| void _FCALL READ_DB_ARRAY_C | ( | double * | w, |
| int * | len ) |
Definition at line 749 of file write_routtines.c.
| void read_db_array_c | ( | double * | w, |
| int * | len ) |
| void read_db_array_c_ | ( | double * | w, |
| int * | len ) |
Definition at line 752 of file write_routtines.c.
| void _FCALL READ_DB_C | ( | double * | w, |
| int * | len ) |
Definition at line 742 of file write_routtines.c.
| void read_db_c | ( | double * | w, |
| int * | len ) |
w, input : double array to read
Definition at line 711 of file write_routtines.c.
| void read_db_c_ | ( | double * | w, |
| int * | len ) |
Definition at line 745 of file write_routtines.c.
| void _FCALL READ_I_ARRAY_C | ( | int * | w, |
| int * | len ) |
Definition at line 849 of file write_routtines.c.
| void read_i_array_c | ( | int * | w, |
| int * | len ) |
| void read_i_array_c_ | ( | int * | w, |
| int * | len ) |
Definition at line 852 of file write_routtines.c.
| void _FCALL READ_I_C | ( | int * | w, |
| int * | len ) |
Definition at line 842 of file write_routtines.c.
| void read_i_c | ( | int * | w, |
| int * | len ) |
w, input : integer array to read
Definition at line 805 of file write_routtines.c.
| void read_i_c_ | ( | int * | w, |
| int * | len ) |
Definition at line 845 of file write_routtines.c.
| void _FCALL READ_R_C | ( | float * | w, |
| int * | len ) |
Definition at line 798 of file write_routtines.c.
| void read_r_c | ( | float * | w, |
| int * | len ) |
w, input : real array to read
Definition at line 756 of file write_routtines.c.
| void read_r_c_ | ( | float * | w, |
| int * | len ) |
Definition at line 801 of file write_routtines.c.
| void real_to_IEEE_ASCII | ( | float | reel, |
| unsigned char | octet[4] ) |
Definition at line 65 of file ieee.cpp.
| void write_buffer | ( | unsigned char * | buf, |
| int | type_size, | ||
| int | length ) |
write Buffer : writes a buffer either direct or gzipped. When Gzip : stores it in a buffer of COMP_BUFFER_SIZE
buf : unsigned char, array to write. type_size : the buf array is an array of a type : gives the size of type
Definition at line 950 of file write_routtines.c.
| void _FCALL WRITE_C_C | ( | int * | w, |
| int * | len ) |
Definition at line 602 of file write_routtines.c.
| void write_c_c | ( | int * | w, |
| int * | len ) |
w, input : integer array to write
Definition at line 591 of file write_routtines.c.
| void write_c_c_ | ( | int * | w, |
| int * | len ) |
Definition at line 604 of file write_routtines.c.
| void write_c_c__ | ( | int * | w, |
| int * | len ) |
Definition at line 607 of file write_routtines.c.
| void _FCALL WRITE_C_C_TXT | ( | char * | w, |
| int * | len ) |
Definition at line 633 of file write_routtines.c.
| void write_c_c_txt | ( | char * | w, |
| int * | len ) |
w, input : integer array to write
Definition at line 612 of file write_routtines.c.
| void write_c_c_txt_ | ( | char * | w, |
| int * | len ) |
Definition at line 636 of file write_routtines.c.
| void write_c_c_txt__ | ( | char * | w, |
| int * | len ) |
Definition at line 640 of file write_routtines.c.
| void _FCALL WRITE_DB_ARRAY_C | ( | double * | w, |
| int * | len ) |
Definition at line 581 of file write_routtines.c.
| void write_db_array_c | ( | double * | w, |
| int * | len ) |
| void write_db_array_c_ | ( | double * | w, |
| int * | len ) |
Definition at line 584 of file write_routtines.c.
| void write_db_array_c__ | ( | double * | w, |
| int * | len ) |
Definition at line 587 of file write_routtines.c.
| void _FCALL WRITE_DB_C | ( | double * | w, |
| int * | len ) |
Definition at line 572 of file write_routtines.c.
| void write_db_c | ( | double * | w, |
| int * | len ) |
w, input : double array to write
Definition at line 553 of file write_routtines.c.
| void write_db_c_ | ( | double * | w, |
| int * | len ) |
Definition at line 575 of file write_routtines.c.
| void write_db_c__ | ( | double * | w, |
| int * | len ) |
Definition at line 578 of file write_routtines.c.
| void _FCALL WRITE_I_ARRAY_C | ( | int * | w, |
| int * | len ) |
Definition at line 675 of file write_routtines.c.
| void write_i_array_c | ( | int * | w, |
| int * | len ) |
| void write_i_array_c_ | ( | int * | w, |
| int * | len ) |
Definition at line 678 of file write_routtines.c.
| void write_i_array_c__ | ( | int * | w, |
| int * | len ) |
Definition at line 682 of file write_routtines.c.
| void _FCALL WRITE_I_C | ( | int * | w, |
| int * | len ) |
Definition at line 664 of file write_routtines.c.
| void write_i_c | ( | int * | w, |
| int * | len ) |
w, input : integer array to write
Definition at line 645 of file write_routtines.c.
| void write_i_c_ | ( | int * | w, |
| int * | len ) |
Definition at line 667 of file write_routtines.c.
| void write_i_c__ | ( | int * | w, |
| int * | len ) |
Definition at line 671 of file write_routtines.c.
| void _FCALL WRITE_R_C | ( | float * | w, |
| int * | len ) |
Definition at line 541 of file write_routtines.c.
| void write_r_c | ( | float * | w, |
| int * | len ) |
w, input : float array to write
Definition at line 519 of file write_routtines.c.
| void write_r_c_ | ( | float * | w, |
| int * | len ) |
Definition at line 546 of file write_routtines.c.
| void _FCALL WRITE_S_C | ( | int * | w, |
| int * | len ) |
Definition at line 703 of file write_routtines.c.
| void write_s_c | ( | int * | w, |
| int * | len ) |
w, input : integer array to write
Definition at line 687 of file write_routtines.c.
| void write_s_c_ | ( | int * | w, |
| int * | len ) |
Definition at line 706 of file write_routtines.c.
| int compress_buffer_length[100] |
Definition at line 124 of file write_routtines.c.
| gzFile compress_read_buffer[100] |
Definition at line 123 of file write_routtines.c.
| unsigned char* compress_write_buffer[100] |
Definition at line 122 of file write_routtines.c.
| int cur_nf |
Definition at line 126 of file write_routtines.c.
| FILE* curfile |
Definition at line 125 of file write_routtines.c.
| FILE* outfile[100] |
Definition at line 120 of file write_routtines.c.
| int outfile_mod[100] |
Definition at line 121 of file write_routtines.c.