mdcore  0.1.5
Data Structures | Defines | Functions | Variables
/home/pedro/work/mdcore/src/part.h File Reference

Go to the source code of this file.

Data Structures

struct  part
struct  part_type

Defines

#define part_err_ok   0
#define part_err_null   -1
#define part_err_malloc   -2
#define part_flag_none   0
#define part_flag_frozen   1
#define part_flag_ghost   2

Functions

int part_init (struct part *p, int vid, int type, unsigned int flags)
 Initialize a part.

Variables

int part_err

Define Documentation

#define part_err_malloc   -2
#define part_err_null   -1
#define part_err_ok   0
#define part_flag_frozen   1
#define part_flag_ghost   2
#define part_flag_none   0

Function Documentation

int part_init ( struct part p,
int  vid,
int  type,
unsigned int  flags 
)

Initialize a part.

Parameters:
pThe part to be initialized.
vidThe virtual id of this part.
typeThe numerical id of the particle type.
flagsThe particle flags.
Returns:
part_err_ok or < 0 on error (see part_err).

Variable Documentation

int part_err

ID of the last error.

ID of the last error

 All Data Structures Files Functions Variables Typedefs Enumerator Defines