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().

Here is the call graph for this function:

int MBLK_Read ( const char *  prefix,
int  nDimensions 
)

Definition at line 478 of file mblock.C.

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

Referenced by FTN_NAME().

Here is the call graph for this function:

Here is the caller graph for this function:

int MBLK_Get_nblocks ( int n  ) 

Definition at line 484 of file mblock.C.

References TCHARM_Num_elements().

Referenced by FTN_NAME().

Here is the call graph for this function:

Here is the caller graph for this function:

int MBLK_Get_myblock ( int m  ) 

Definition at line 491 of file mblock.C.

References TCHARM_Element().

Referenced by FTN_NAME().

Here is the call graph for this function:

Here is the caller graph for this function:

int MBLK_Get_blocksize ( int dims  ) 

Definition at line 498 of file mblock.C.

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

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

Here is the call graph for this function:

Here is the caller graph for this function:

int MBLK_Get_nodelocs ( const int nodedim,
double *  nodeloc 
)

Definition at line 509 of file mblock.C.

References MBlockChunk::b, PUP::d, getCurMBlockChunk(), block::getDim(), block::getLoc(), idx, CkVector3dT< real >::x, CkVector3dT< real >::y, and CkVector3dT< real >::z.

Referenced by FTN_NAME().

Here is the call graph for this function:

Here is the caller graph for this function:

double MBLK_Timer ( void   ) 

Definition at line 533 of file mblock.C.

References TCHARM_Wall_timer().

Referenced by FTN_NAME().

Here is the call graph for this function:

Here is the caller graph for this function:

void MBLK_Print ( const char *  str  ) 

Definition at line 539 of file mblock.C.

References TCHARM_Element().

Referenced by FTN_NAME().

Here is the call graph for this function:

Here is the caller graph for this function:

void MBLK_Print_block ( void   ) 

Definition at line 651 of file mblock.C.

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

Referenced by FTN_NAME().

Here is the call graph for this function:

Here is the caller graph for this function:

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 568 of file mblock.C.

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

Referenced by FTN_NAME().

Here is the call graph for this function:

Here is the caller graph for this function:

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

Definition at line 581 of file mblock.C.

References MBLK_Iupdate_field(), and MBLK_Wait_update().

Referenced by FTN_NAME().

Here is the call graph for this function:

Here is the caller graph for this function:

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

Definition at line 589 of file mblock.C.

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

Referenced by FTN_NAME(), and MBLK_Update_field().

Here is the call graph for this function:

Here is the caller graph for this function:

int MBLK_Test_update ( int status  ) 

Definition at line 597 of file mblock.C.

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

Referenced by FTN_NAME().

Here is the call graph for this function:

Here is the caller graph for this function:

int MBLK_Wait_update ( void   ) 

Definition at line 605 of file mblock.C.

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

Referenced by FTN_NAME(), and MBLK_Update_field().

Here is the call graph for this function:

Here is the caller graph for this function:

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

Definition at line 612 of file mblock.C.

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

Referenced by FTN_NAME().

Here is the call graph for this function:

Here is the caller graph for this function:

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

Definition at line 620 of file mblock.C.

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

Here is the call graph for this function:

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

Definition at line 628 of file mblock.C.

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

Here is the call graph for this function:

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

Definition at line 635 of file mblock.C.

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

Referenced by FTN_NAME().

Here is the call graph for this function:

Here is the caller graph for this function:

int MBLK_Apply_bc_all ( void *  p1,
void *  p2 
)

Definition at line 643 of file mblock.C.

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

Referenced by FTN_NAME().

Here is the call graph for this function:

Here is the caller graph for this function:

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

Definition at line 546 of file mblock.C.

References TCHARM_Register().

Referenced by FTN_NAME().

Here is the call graph for this function:

Here is the caller graph for this function:

int MBLK_Migrate ( void   ) 

Definition at line 560 of file mblock.C.

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

Referenced by FTN_NAME().

Here is the call graph for this function:

Here is the caller graph for this function:

int MBLK_Get_registered ( int  rid,
void **  block 
)

Definition at line 553 of file mblock.C.

References TCHARM_Get_userdata().

Here is the call graph for this function:


Generated on Mon Sep 21 08:07:56 2020 for Charm++ by  doxygen 1.5.5