KTH framework for Nek5000 toolboxes; testing version  0.0.1
byte.c File Reference
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <ctype.h>
#include <float.h>
#include <math.h>
#include <time.h>
#include <sys/stat.h>
#include <sys/types.h>
+ Include dependency graph for byte.c:

Go to the source code of this file.

Macros

#define FNAME_H
 
#define FORTRAN_NAME(low, up)   low
 
#define byte_reverse   FORTRAN_NAME(byte_reverse, BYTE_REVERSE )
 
#define byte_reverse8   FORTRAN_NAME(byte_reverse8, BYTE_REVERSE8 )
 
#define byte_open   FORTRAN_NAME(byte_open, BYTE_OPEN )
 
#define byte_close   FORTRAN_NAME(byte_close, BYTE_CLOSE )
 
#define byte_rewind   FORTRAN_NAME(byte_rewind, BYTE_REWIND )
 
#define byte_read   FORTRAN_NAME(byte_read, BYTE_READ )
 
#define byte_write   FORTRAN_NAME(byte_write, BYTE_WRITE )
 
#define get_bytesw_write   FORTRAN_NAME(get_bytesw_write, GET_BYTESW_WRITE)
 
#define set_bytesw_write   FORTRAN_NAME(set_bytesw_write, SET_BYTESW_WRITE)
 
#define READ   1
 
#define WRITE   2
 
#define MAX_NAME   132
 
#define SWAP(a, b)   temp=(a); (a)=(b); (b)=temp;
 

Functions

void exitt ()
 
void byte_reverse (float *buf, int *nn, int *ierr)
 
void byte_reverse8 (float *buf, int *nn, int *ierr)
 
void byte_open (char *n, int *ierr, int nlen)
 
void byte_close (int *ierr)
 
void byte_write (float *buf, int *n, int *ierr)
 
void byte_read (float *buf, int *n, int *ierr)
 
void set_bytesw_write (int *pa)
 
void set_bytesw_read (int *pa)
 
void get_bytesw_write (int *pa)
 
void get_bytesw_read (int *pa)
 

Variables

int bytesw_write =0
 
int bytesw_read =0
 

Macro Definition Documentation

◆ byte_close

#define byte_close   FORTRAN_NAME(byte_close, BYTE_CLOSE )

Definition at line 36 of file byte.c.

◆ byte_open

#define byte_open   FORTRAN_NAME(byte_open, BYTE_OPEN )

Definition at line 35 of file byte.c.

◆ byte_read

#define byte_read   FORTRAN_NAME(byte_read, BYTE_READ )

Definition at line 38 of file byte.c.

◆ byte_reverse

#define byte_reverse   FORTRAN_NAME(byte_reverse, BYTE_REVERSE )

Definition at line 33 of file byte.c.

◆ byte_reverse8

#define byte_reverse8   FORTRAN_NAME(byte_reverse8, BYTE_REVERSE8 )

Definition at line 34 of file byte.c.

◆ byte_rewind

void byte_rewind   FORTRAN_NAME(byte_rewind, BYTE_REWIND )

Definition at line 37 of file byte.c.

◆ byte_write

#define byte_write   FORTRAN_NAME(byte_write, BYTE_WRITE )

Definition at line 39 of file byte.c.

◆ FNAME_H

#define FNAME_H

Definition at line 12 of file byte.c.

◆ FORTRAN_NAME

#define FORTRAN_NAME (   low,
  up 
)    low

Definition at line 27 of file byte.c.

◆ get_bytesw_write

#define get_bytesw_write   FORTRAN_NAME(get_bytesw_write, GET_BYTESW_WRITE)

Definition at line 40 of file byte.c.

◆ MAX_NAME

#define MAX_NAME   132

Definition at line 45 of file byte.c.

◆ READ

#define READ   1

Definition at line 43 of file byte.c.

◆ set_bytesw_write

#define set_bytesw_write   FORTRAN_NAME(set_bytesw_write, SET_BYTESW_WRITE)

Definition at line 41 of file byte.c.

◆ SWAP

#define SWAP (   a,
 
)    temp=(a); (a)=(b); (b)=temp;

Definition at line 47 of file byte.c.

◆ WRITE

#define WRITE   2

Definition at line 44 of file byte.c.

Function Documentation

◆ byte_close()

void byte_close ( int *  ierr)

Definition at line 139 of file byte.c.

◆ byte_open()

void byte_open ( char *  n,
int *  ierr,
int  nlen 
)

Definition at line 113 of file byte.c.

References MAX_NAME.

◆ byte_read()

void byte_read ( float *  buf,
int *  n,
int *  ierr 
)

Definition at line 201 of file byte.c.

◆ byte_reverse()

void byte_reverse ( float *  buf,
int *  nn,
int *  ierr 
)

Definition at line 64 of file byte.c.

References SWAP.

◆ byte_reverse8()

void byte_reverse8 ( float *  buf,
int *  nn,
int *  ierr 
)

Definition at line 84 of file byte.c.

References SWAP.

◆ byte_write()

void byte_write ( float *  buf,
int *  n,
int *  ierr 
)

Definition at line 162 of file byte.c.

◆ exitt()

void exitt ( )

Definition at line 603 of file comm_mpi.f.

References nek_die().

+ Here is the call graph for this function:

◆ get_bytesw_read()

void get_bytesw_read ( int *  pa)

Definition at line 270 of file byte.c.

References bytesw_read.

◆ get_bytesw_write()

void get_bytesw_write ( int *  pa)

Definition at line 265 of file byte.c.

References bytesw_write.

◆ set_bytesw_read()

void set_bytesw_read ( int *  pa)

Definition at line 257 of file byte.c.

References bytesw_read.

◆ set_bytesw_write()

void set_bytesw_write ( int *  pa)

Definition at line 249 of file byte.c.

References bytesw_write.

Variable Documentation

◆ bytesw_read

int bytesw_read =0

Definition at line 54 of file byte.c.

◆ bytesw_write

int bytesw_write =0

Definition at line 53 of file byte.c.