PPL Logo

libs/ck-libs/mblock/mblock.h File Reference

Go to the source code of this file.

Typedefs

typedef void(* MBLK_PupFn )(pup_er, void *)
typedef void(* MBLK_BcFn )(void *p1, void *p2, int *start, int *end)

Functions

void MBLK_Init (int comm)
int MBLK_Read (const char *prefix, int nDimensions)
int MBLK_Get_nblocks (int *n)
int MBLK_Get_myblock (int *m)
int MBLK_Get_blocksize (int *dims)
int MBLK_Get_nodelocs (const int *nodedim, double *nodeloc)
double MBLK_Timer (void)
void MBLK_Print (const char *str)
void MBLK_Print_block (void)
int MBLK_Create_field (int *dimensions, int isVoxel, const int base_type, const int vec_len, const int offset, const int dist, int *fid)
int MBLK_Update_field (const int fid, int ghostWidth, void *grid)
int MBLK_Iupdate_field (const int fid, int ghostWidth, void *ingrid, void *outgrid)
int MBLK_Test_update (int *status)
int MBLK_Wait_update (void)
int MBLK_Reduce_field (const int fid, void *grid, void *out, const int op)
int MBLK_Reduce (const int fid, void *in, void *out, const int op)
int MBLK_Register_bc (const int bcnum, int ghostWidth, const MBLK_BcFn bcfn)
int MBLK_Apply_bc (const int bcnum, void *p1, void *p2)
int MBLK_Apply_bc_all (void *p1, void *p2)
int MBLK_Register (void *userData, MBLK_PupFn _pup_ud, int *rid)
int MBLK_Migrate (void)
int MBLK_Get_registered (int rid, void **block)


Typedef Documentation

typedef void(* MBLK_PupFn)(pup_er, void *)

Definition at line 32 of file mblock.h.

typedef void(* MBLK_BcFn)(void *p1, void *p2, int *start, int *end)

Definition at line 33 of file mblock.h.


Function Documentation

void MBLK_Init ( int  comm  ) 

Definition at line 63 of file mblock.C.

References c, TCharm::get(), TCharm::semaGet(), TCHARM_Attach_start(), and TCHARM_Element().

int MBLK_Read ( const char *  prefix,
int  nDimensions 
)

Definition at line 483 of file mblock.C.

References getCurMBlockChunk(), and MBlockChunk::read().

Referenced by FTN_NAME().

int MBLK_Get_nblocks ( int n  ) 

Definition at line 489 of file mblock.C.

References TCHARM_Num_elements().

Referenced by FTN_NAME().

int MBLK_Get_myblock ( int m  ) 

Definition at line 496 of file mblock.C.

References TCHARM_Element().

Referenced by FTN_NAME().

int MBLK_Get_blocksize ( int dims  ) 

Definition at line 503 of file mblock.C.

References MBlockChunk::b, getCurMBlockChunk(), and block::getDim().

Referenced by FTN_NAME(), and MBlockChunk::reduce_field().

int MBLK_Get_nodelocs ( const int nodedim,
double nodeloc 
)

double MBLK_Timer ( void   ) 

Definition at line 538 of file mblock.C.

References TCHARM_Wall_timer().

Referenced by FTN_NAME().

void MBLK_Print ( const char *  str  ) 

Definition at line 544 of file mblock.C.

References TCHARM_Element().

Referenced by FTN_NAME().

void MBLK_Print_block ( void   ) 

Definition at line 656 of file mblock.C.

References getCurMBlockChunk(), and MBlockChunk::print().

Referenced by FTN_NAME().

int MBLK_Create_field ( int dimensions,
int  isVoxel,
const int  base_type,
const int  vec_len,
const int  offset,
const int  dist,
int fid 
)

Definition at line 573 of file mblock.C.

References MBlockChunk::add_field(), and getCurMBlockChunk().

Referenced by FTN_NAME().

int MBLK_Update_field ( const int  fid,
int  ghostWidth,
void *  grid 
)

Definition at line 586 of file mblock.C.

References MBLK_Iupdate_field(), and MBLK_Wait_update().

Referenced by FTN_NAME().

int MBLK_Iupdate_field ( const int  fid,
int  ghostWidth,
void *  ingrid,
void *  outgrid 
)

Definition at line 594 of file mblock.C.

References getCurMBlockChunk(), and MBlockChunk::start_update().

Referenced by FTN_NAME(), and MBLK_Update_field().

int MBLK_Test_update ( int status  ) 

Definition at line 602 of file mblock.C.

References getCurMBlockChunk(), and MBlockChunk::test_update().

Referenced by FTN_NAME().

int MBLK_Wait_update ( void   ) 

Definition at line 610 of file mblock.C.

References getCurMBlockChunk(), and MBlockChunk::wait_update().

Referenced by FTN_NAME(), and MBLK_Update_field().

int MBLK_Reduce_field ( const int  fid,
void *  grid,
void *  out,
const int  op 
)

Definition at line 617 of file mblock.C.

References getCurMBlockChunk(), and MBlockChunk::reduce_field().

Referenced by FTN_NAME().

int MBLK_Reduce ( const int  fid,
void *  in,
void *  out,
const int  op 
)

Definition at line 625 of file mblock.C.

References getCurMBlockChunk(), and MBlockChunk::reduce().

int MBLK_Register_bc ( const int  bcnum,
int  ghostWidth,
const MBLK_BcFn  bcfn 
)

Definition at line 633 of file mblock.C.

References getCurMBlockChunk(), and MBlockChunk::register_bc().

int MBLK_Apply_bc ( const int  bcnum,
void *  p1,
void *  p2 
)

Definition at line 640 of file mblock.C.

References MBlockChunk::apply_bc(), and getCurMBlockChunk().

Referenced by FTN_NAME().

int MBLK_Apply_bc_all ( void *  p1,
void *  p2 
)

Definition at line 648 of file mblock.C.

References MBlockChunk::apply_bc_all(), and getCurMBlockChunk().

Referenced by FTN_NAME().

int MBLK_Register ( void *  userData,
MBLK_PupFn  _pup_ud,
int rid 
)

Definition at line 551 of file mblock.C.

References TCHARM_Register().

Referenced by FTN_NAME().

int MBLK_Migrate ( void   ) 

Definition at line 565 of file mblock.C.

References TCharm::get(), and TCharm::migrate().

Referenced by FTN_NAME().

int MBLK_Get_registered ( int  rid,
void **  block 
)

Definition at line 558 of file mblock.C.

References TCHARM_Get_userdata().


Generated on Sat May 26 08:08:09 2012 for Charm++ by  doxygen 1.5.5