Serialbox  2.2.0
Data serialization library and tools for C/C++, Python and Fortran
Fortran wrapper methods

Functions

void serialboxFortranSerializerRegisterField (void *serializer, const char *name, int type, int bytesPerElement, int iSize, int jSize, int kSize, int lSize, int iMinusHalo, int iPlusHalo, int jMinusHalo, int jPlusHalo, int kMinusHalo, int kPlusHalo, int lMinusHalo, int lPlusHalo)
 Register field within the serializer. More...
 
void serialboxFortranSerializerWrite (void *serializer, const void *savepoint, const char *name, void *originPtr, int istride, int jstride, int kstride, int lstride)
 Wrapper for serialboxSerializerWrite.
 
void serialboxFortranSerializerRead (void *serializer, const void *savepoint, const char *name, void *originPtr, int istride, int jstride, int kstride, int lstride)
 Wrapper for serialboxSerializerRead.
 
void serialboxFortranSerializerPrintDebugInfo (void *serializer)
 Print debug information (i.e convert serializer to string)
 
void serialboxFortranSerializerCheckField (const void *serializer, const char *name, int *type, int *isize, int *jsize, int *ksize, int *lsize)
 Perform consistency checks concerning dimensions and type of the field name
 
void serialboxFortranComputeStrides (void *serializer, const char *fieldname, const void *basePtr, const void *iplus1, const void *jplus1, const void *kplus1, const void *lplus1, int *istride, int *jstride, int *kstride, int *lstride)
 Compute unit-strides of registered field fieldname
 
void serialboxFortranSerializerGetFieldDimensions (const void *serializer, const char *name, int *isize, int *jsize, int *ksize, int *lsize)
 Returns the dimensions of the field name
 
void serialboxFortranSerializerGetFieldHalos (const void *serializer, const char *name, int *iMinusHalo, int *iPlusHalo, int *jMinusHalo, int *jPlusHalo, int *kMinusHalo, int *kPlusHalo, int *lMinusHalo, int *lPlusHalo)
 Returns the halos of the field name
 
void serialboxFortranSerializerAddMetainfoBoolean (void *serializer, const char *key, int value)
 Add a global meta-information key=value pair to the Serializer. More...
 
void serialboxFortranSerializerAddMetainfoInt32 (void *serializer, const char *key, int value)
 
void serialboxFortranSerializerAddMetainfoFloat32 (void *serializer, const char *key, float value)
 
void serialboxFortranSerializerAddMetainfoFloat64 (void *serializer, const char *key, double value)
 
void serialboxFortranSerializerAddMetainfoString (void *serializer, const char *key, const char *value)
 
void serialboxFortranSerializerAddFieldMetainfoBoolean (void *serializer, const char *field, const char *key, int value)
 Add a meta-information key=value pair to field of the serializer. More...
 
void serialboxFortranSerializerAddFieldMetainfoInt32 (void *serializer, const char *field, const char *key, int value)
 
void serialboxFortranSerializerAddFieldMetainfoFloat32 (void *serializer, const char *field, const char *key, float value)
 
void serialboxFortranSerializerAddFieldMetainfoFloat64 (void *serializer, const char *field, const char *key, double value)
 
void serialboxFortranSerializerAddFieldMetainfoString (void *serializer, const char *field, const char *key, const char *value)
 
void serialboxFortranSavepointAddMetainfoBoolean (void *savepoint, const char *key, int value)
 Add a meta-information key=value pair to the savepoint More...
 
void serialboxFortranSavepointAddMetainfoInt32 (void *savepoint, const char *key, int value)
 
void serialboxFortranSavepointAddMetainfoFloat32 (void *savepoint, const char *key, float value)
 
void serialboxFortranSavepointAddMetainfoFloat64 (void *savepoint, const char *key, double value)
 
void serialboxFortranSavepointAddMetainfoString (void *savepoint, const char *key, const char *value)
 

Detailed Description

Function Documentation

◆ serialboxFortranSavepointAddMetainfoBoolean()

void serialboxFortranSavepointAddMetainfoBoolean ( void *  savepoint,
const char *  key,
int  value 
)

Add a meta-information key=value pair to the savepoint

This function corresponds to fs_add_savepoint_metainfo_f

Parameters
savepointSavepoint to use
keyKey of the new element
valueObject to be copied to the value of the new element

Definition at line 330 of file FortranWrapper.cpp.

◆ serialboxFortranSerializerAddFieldMetainfoBoolean()

void serialboxFortranSerializerAddFieldMetainfoBoolean ( void *  serializer,
const char *  field,
const char *  key,
int  value 
)

Add a meta-information key=value pair to field of the serializer.

This function corresponds to fs_add_field_metainfo_i

Parameters
serializerSerializer to use
fieldName of the field
keyKey of the new element
valueObject to be copied to the value of the new element

Definition at line 261 of file FortranWrapper.cpp.

◆ serialboxFortranSerializerAddMetainfoBoolean()

void serialboxFortranSerializerAddMetainfoBoolean ( void *  serializer,
const char *  key,
int  value 
)

Add a global meta-information key=value pair to the Serializer.

This function corresponds to fs_add_serializer_metainfo_X

Parameters
serializerSerializer to use
keyKey of the new element
valueObject to be copied to the value of the new element

Definition at line 201 of file FortranWrapper.cpp.

◆ serialboxFortranSerializerRegisterField()

void serialboxFortranSerializerRegisterField ( void *  serializer,
const char *  name,
int  type,
int  bytesPerElement,
int  iSize,
int  jSize,
int  kSize,
int  lSize,
int  iMinusHalo,
int  iPlusHalo,
int  jMinusHalo,
int  jPlusHalo,
int  kMinusHalo,
int  kPlusHalo,
int  lMinusHalo,
int  lPlusHalo 
)

Register field within the serializer.

This function corresponds to fs_register_field

Parameters
serializerSerializer to use
nameThe name of the field
typeTypeID of the field (serialboxTypeID)
bytesPerElementThe size in bytes of a scalar value (e.g. 8 for doubles)
iSizeThe size of the first dimension
jSizeThe size of the second dimension
kSizeThe size of the third dimension
lsizeThe size of the fourth dimension
iMinusHaloThe dimension of the halo in negative i-direction
iPlusHaloThe dimension of the halo in positive i-direction
jMinusHaloThe dimension of the halo in negative j-direction
jPlusHaloThe dimension of the halo in positive j-direction
kMinusHaloThe dimension of the halo in negative k-direction
kPlusHaloThe dimension of the halo in positive k-direction
lMinusHaloThe dimension of the halo in negative l-direction
lPlusHaloThe dimension of the halo in positive l-direction

Definition at line 247 of file FortranWrapper.cpp.