GADGET-4
io.h File Reference

declarations of I/O enumerations and a base class for I/O in Gadget More...

#include <hdf5.h>
#include "../data/simparticles.h"
#include "../fof/fof.h"
#include "../io/io_streamcount.h"
#include "../mpi_utils/setcomm.h"

Go to the source code of this file.

Classes

class  IO_Def
 

Macros

#define LABEL_LEN   4
 
#define DATASETNAME_LEN   256
 
#define NTYPES_HEADER   NTYPES
 
#define FLAG_ZELDOVICH_ICS   1
 
#define FLAG_SECOND_ORDER_ICS   2
 

Enumerations

enum  arrays {
  A_NONE , A_SPHP , A_P , A_PS ,
  A_G , A_S , A_ID , A_DESC ,
  A_PROG , A_MTRP , A_H , A_TT ,
  A_CT , A_TL , A_LC , A_MM ,
  A_IDS , A_TID
}
 
enum  file_contents {
  FILE_IS_SNAPSHOT , FILE_IS_GROUPCAT , FILE_IS_DESCCAT , FILE_IS_PROGCAT ,
  FILE_IS_TREECAT , FILE_IS_TREELINK , FILE_IS_LIGHTCONE , FILE_IS_MASSMAP ,
  FILE_IS_GALSNAP
}
 
enum  types_in_file {
  FILE_NONE , FILE_INT , FILE_INT64 , FILE_MY_IO_FLOAT ,
  FILE_HALF , FILE_MY_ID_TYPE , FILE_MY_INTPOS_TYPE , FILE_DOUBLE ,
  FILE_FLOAT
}
 
enum  types_in_memory {
  MEM_INT , MEM_INT64 , MEM_MY_ID_TYPE , MEM_MY_INTPOS_TYPE ,
  MEM_FLOAT , MEM_DOUBLE , MEM_MY_FLOAT , MEM_MY_DOUBLE ,
  MEM_MY_FILEOFFSET
}
 
enum  e_typelist {
  GAS_ONLY = 1 , STARS_ONLY = 16 , GAS_AND_STARS = 17 , ALL_TYPES = ((1 << NTYPES) - 1) ,
  MASS_BLOCK = -1 , AGE_BLOCK = -2 , Z_BLOCK = -3 , GROUPS = -4 ,
  SUBGROUPS = -5 , ID_BLOCK = -6 , PREVSUBS = -7 , CURRSUBS = -8 ,
  TREELENGTH = -9 , TREEHALOS = -10 , TREELINK = -11 , MASSMAPS = -12 ,
  TREETABLE = -13 , TREETIMES = -14 , GALSNAPS = -16 , HEALPIXTAB = -17
}
 
enum  read_flags { READ_IF_PRESENT , SKIP_ON_READ }
 

Variables

const types_in_memory mem_len_type = MEM_INT
 
const types_in_file file_len_type = FILE_INT
 

Detailed Description

declarations of I/O enumerations and a base class for I/O in Gadget

Definition in file io.h.

Macro Definition Documentation

◆ DATASETNAME_LEN

#define DATASETNAME_LEN   256

Definition at line 27 of file io.h.

◆ FLAG_SECOND_ORDER_ICS

#define FLAG_SECOND_ORDER_ICS   2

Definition at line 272 of file io.h.

◆ FLAG_ZELDOVICH_ICS

#define FLAG_ZELDOVICH_ICS   1

Definition at line 271 of file io.h.

◆ LABEL_LEN

#define LABEL_LEN   4

Definition at line 26 of file io.h.

◆ NTYPES_HEADER

#define NTYPES_HEADER   NTYPES

Definition at line 268 of file io.h.

Enumeration Type Documentation

◆ arrays

enum arrays
Enumerator
A_NONE 
A_SPHP 
A_P 
A_PS 
A_G 
A_S 
A_ID 
A_DESC 
A_PROG 
A_MTRP 
A_H 
A_TT 
A_CT 
A_TL 
A_LC 
A_MM 
A_IDS 
A_TID 

Definition at line 29 of file io.h.

◆ e_typelist

enum e_typelist
Enumerator
GAS_ONLY 
STARS_ONLY 
GAS_AND_STARS 
ALL_TYPES 
MASS_BLOCK 
AGE_BLOCK 
Z_BLOCK 
GROUPS 
SUBGROUPS 
ID_BLOCK 
PREVSUBS 
CURRSUBS 
TREELENGTH 
TREEHALOS 
TREELINK 
MASSMAPS 
TREETABLE 
TREETIMES 
GALSNAPS 
HEALPIXTAB 

Definition at line 98 of file io.h.

◆ file_contents

Enumerator
FILE_IS_SNAPSHOT 
FILE_IS_GROUPCAT 
FILE_IS_DESCCAT 
FILE_IS_PROGCAT 
FILE_IS_TREECAT 
FILE_IS_TREELINK 
FILE_IS_LIGHTCONE 
FILE_IS_MASSMAP 
FILE_IS_GALSNAP 

Definition at line 51 of file io.h.

◆ read_flags

enum read_flags
Enumerator
READ_IF_PRESENT 
SKIP_ON_READ 

Definition at line 122 of file io.h.

◆ types_in_file

Enumerator
FILE_NONE 
FILE_INT 
FILE_INT64 
FILE_MY_IO_FLOAT 
FILE_HALF 
FILE_MY_ID_TYPE 
FILE_MY_INTPOS_TYPE 
FILE_DOUBLE 
FILE_FLOAT 

Definition at line 64 of file io.h.

◆ types_in_memory

Enumerator
MEM_INT 
MEM_INT64 
MEM_MY_ID_TYPE 
MEM_MY_INTPOS_TYPE 
MEM_FLOAT 
MEM_DOUBLE 
MEM_MY_FLOAT 
MEM_MY_DOUBLE 
MEM_MY_FILEOFFSET 

Definition at line 77 of file io.h.

Variable Documentation

◆ file_len_type

const types_in_file file_len_type = FILE_INT

Definition at line 95 of file io.h.

◆ mem_len_type

const types_in_memory mem_len_type = MEM_INT

Definition at line 94 of file io.h.