PPL Logo

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

Go to the source code of this file.

Typedefs

typedef void(* combineFn_BYTE )(const int len, unsigned char *lhs, const unsigned char *rhs)
typedef void(* combineFn_INT )(const int len, int *lhs, const int *rhs)
typedef void(* combineFn_REAL )(const int len, float *lhs, const float *rhs)
typedef void(* combineFn_DOUBLE )(const int len, double *lhs, const double *rhs)

Functions

 CtvStaticDeclare (MBlockChunk *, _mblkptr)
CLINKAGE void driver (void)
FLINKAGE void FTN_NAME (DRIVER, driver)
void MBlockNodeInit (void)
static void MBlockFallbackSetup (void)
void MBlockProcInit (void)
CLINKAGE void MBLK_Init (int comm)
 FORTRAN_AS_C (MBLK_INIT, MBLK_Init, mblk_init,(int *comm),(*comm)) template< class d > void sum(const int len
static combineFn combine (const DType &dt, int op)
static MBlockChunkgetCurMBlockChunk (void)
CLINKAGE int MBLK_Read (const char *prefix, int nDim)
CLINKAGE int MBLK_Get_nblocks (int *n)
CLINKAGE int MBLK_Get_myblock (int *m)
CLINKAGE int MBLK_Get_blocksize (int *dim)
CLINKAGE int MBLK_Get_nodelocs (const int *nodedim, double *nodeloc)
CLINKAGE double MBLK_Timer (void)
CLINKAGE void MBLK_Print (const char *str)
CLINKAGE int MBLK_Register (void *_ud, MBLK_PupFn _pup_ud, int *rid)
CLINKAGE int MBLK_Get_registered (int n, void **b)
CLINKAGE int MBLK_Migrate (void)
CLINKAGE int MBLK_Create_field (int *dims, int isVoxel, int base_type, int vec_len, int init_offset, int distance, int *fid)
CLINKAGE int MBLK_Update_field (int fid, int ghostWidth, void *grid)
CLINKAGE int MBLK_Iupdate_field (int fid, int ghostWidth, void *ingrid, void *outgrid)
CLINKAGE int MBLK_Test_update (int *status)
CLINKAGE int MBLK_Wait_update (void)
CLINKAGE int MBLK_Reduce_field (int fid, void *ingrid, void *outbuf, int op)
CLINKAGE int MBLK_Reduce (int fid, void *inbuf, void *outbuf, int op)
CLINKAGE int MBLK_Register_bc (const int bcnum, int ghostWidth, const MBLK_BcFn bcfn)
CLINKAGE int MBLK_Apply_bc (const int bcnum, void *p1, void *p2)
CLINKAGE int MBLK_Apply_bc_all (void *p1, void *p2)
CLINKAGE void MBLK_Print_block (void)
FLINKAGE int FTN_NAME (FOFFSETOF, foffsetof)
FLINKAGE void FTN_NAME (MBLK_READ, mblk_read) const
FLINKAGE void FTN_NAME (MBLK_GET_NBLOCKS, mblk_get_nblocks)
FLINKAGE void FTN_NAME (MBLK_GET_MYBLOCK, mblk_get_myblock)
static void c2f_index3d (int *idx)
FLINKAGE void FTN_NAME (MBLK_GET_BLOCKSIZE, mblk_get_blocksize)
FLINKAGE void FTN_NAME (MBLK_GET_NODELOCS, mblk_get_nodelocs) const
FLINKAGE double FTN_NAME (MBLK_TIMER, mblk_timer)
FLINKAGE void FTN_NAME (MBLK_PRINT, mblk_print)
FLINKAGE void FTN_NAME (MBLK_PRINT_BLOCK, mblk_print_block)
FLINKAGE void FTN_NAME (MBLK_CREATE_FIELD, mblk_create_field)
FLINKAGE void FTN_NAME (MBLK_UPDATE_FIELD, mblk_update_field)
FLINKAGE void FTN_NAME (MBLK_IUPDATE_FIELD, mblk_iupdate_field)
FLINKAGE void FTN_NAME (MBLK_TEST_UPDATE, mblk_test_update)
FLINKAGE void FTN_NAME (MBLK_WAIT_UPDATE, mblk_wait_update)
FLINKAGE void FTN_NAME (MBLK_REDUCE_FIELD, mblk_reduce_field)
FLINKAGE void FTN_NAME (MBLK_REDUCE, mblk_reduce)
FLINKAGE void FTN_NAME (MBLK_REGISTER_BC, mblk_register_bc)
FLINKAGE void FTN_NAME (MBLK_APPLY_BC, mblk_apply_bc)
FLINKAGE void FTN_NAME (MBLK_APPLY_BC_ALL, mblk_apply_bc_all)
FLINKAGE void FTN_NAME (MBLK_REGISTER, mblk_register)
FLINKAGE void FTN_NAME (MBLK_MIGRATE, mblk_migrate)
static void cmm_pup_mblock_message (pup_er p, void **msg)

Variables

static int callDrivers_idx = -1
d * lhs


Typedef Documentation

typedef void(* combineFn_BYTE)(const int len, unsigned char *lhs, const unsigned char *rhs)

Definition at line 152 of file mblock.C.

typedef void(* combineFn_INT)(const int len, int *lhs, const int *rhs)

Definition at line 153 of file mblock.C.

typedef void(* combineFn_REAL)(const int len, float *lhs, const float *rhs)

Definition at line 154 of file mblock.C.

typedef void(* combineFn_DOUBLE)(const int len, double *lhs, const double *rhs)

Definition at line 155 of file mblock.C.


Function Documentation

CtvStaticDeclare ( MBlockChunk ,
_mblkptr   
)

CLINKAGE void driver ( void   ) 

Definition at line 2 of file compat_driver.c.

FLINKAGE void FTN_NAME ( DRIVER  ,
driver   
)

Definition at line 36 of file mblock.C.

References driver(), and FTN_NAME().

Here is the call graph for this function:

void MBlockNodeInit ( void   ) 

Definition at line 45 of file mblock.C.

References callDrivers_idx, and TCHARM_Register_thread_function().

Here is the call graph for this function:

static void MBlockFallbackSetup ( void   )  [static]

Definition at line 52 of file mblock.C.

References callDrivers_idx, TCHARM_Create(), and TCHARM_Get_num_chunks().

Referenced by MBlockProcInit().

Here is the call graph for this function:

Here is the caller graph for this function:

void MBlockProcInit ( void   ) 

Definition at line 57 of file mblock.C.

References MBlockFallbackSetup(), and TCHARM_Set_fallback_setup().

Here is the call graph for this function:

CLINKAGE 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:

FORTRAN_AS_C ( MBLK_INIT  ,
MBLK_Init  ,
mblk_init  ,
(int *comm ,
comm 
) const

static combineFn combine ( const DType dt,
int  op 
) [static]

Definition at line 159 of file mblock.C.

References max(), and min().

Referenced by liveVizDeposit(), MSA_PageArray< ENTRY_TYPE, ENTRY_OPS_CLASS, ENTRIES_PER_PAGE >::PAReceivePage(), MSA_PageArray< ENTRY_TYPE, ENTRY_OPS_CLASS, ENTRIES_PER_PAGE >::PAReceiveRLEPage(), and MBlockChunk::reduce_field().

Here is the call graph for this function:

Here is the caller graph for this function:

static MBlockChunk* getCurMBlockChunk ( void   )  [static]

CLINKAGE int MBLK_Read ( const char *  prefix,
int  nDim 
)

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:

CLINKAGE 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:

CLINKAGE 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:

CLINKAGE int MBLK_Get_blocksize ( int dim  ) 

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:

CLINKAGE 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:

CLINKAGE 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:

CLINKAGE 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:

CLINKAGE int MBLK_Register ( void *  _ud,
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:

CLINKAGE int MBLK_Get_registered ( int  n,
void **  b 
)

Definition at line 553 of file mblock.C.

References TCHARM_Get_userdata().

Here is the call graph for this function:

CLINKAGE 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:

CLINKAGE int MBLK_Create_field ( int dims,
int  isVoxel,
int  base_type,
int  vec_len,
int  init_offset,
int  distance,
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:

CLINKAGE int MBLK_Update_field ( 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:

CLINKAGE int MBLK_Iupdate_field ( 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:

CLINKAGE 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:

CLINKAGE 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:

CLINKAGE int MBLK_Reduce_field ( int  fid,
void *  ingrid,
void *  outbuf,
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:

CLINKAGE int MBLK_Reduce ( int  fid,
void *  inbuf,
void *  outbuf,
int  op 
)

Definition at line 620 of file mblock.C.

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

Here is the call graph for this function:

CLINKAGE 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:

CLINKAGE 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:

CLINKAGE 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:

CLINKAGE 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:

FLINKAGE int FTN_NAME ( FOFFSETOF  ,
foffsetof   
)

Definition at line 661 of file mblock.C.

FLINKAGE void FTN_NAME ( MBLK_READ  ,
mblk_read   
) const

Definition at line 667 of file mblock.C.

References MBLK_Read().

Here is the call graph for this function:

FLINKAGE void FTN_NAME ( MBLK_GET_NBLOCKS  ,
mblk_get_nblocks   
)

Definition at line 679 of file mblock.C.

References MBLK_Get_nblocks().

Here is the call graph for this function:

FLINKAGE void FTN_NAME ( MBLK_GET_MYBLOCK  ,
mblk_get_myblock   
)

Definition at line 685 of file mblock.C.

References MBLK_Get_myblock().

Here is the call graph for this function:

static void c2f_index3d ( int idx  )  [static]

Definition at line 690 of file mblock.C.

FLINKAGE void FTN_NAME ( MBLK_GET_BLOCKSIZE  ,
mblk_get_blocksize   
)

Definition at line 693 of file mblock.C.

References MBLK_Get_blocksize().

Here is the call graph for this function:

FLINKAGE void FTN_NAME ( MBLK_GET_NODELOCS  ,
mblk_get_nodelocs   
) const

Definition at line 699 of file mblock.C.

References MBLK_Get_nodelocs().

Here is the call graph for this function:

FLINKAGE double FTN_NAME ( MBLK_TIMER  ,
mblk_timer   
)

Definition at line 705 of file mblock.C.

References MBLK_Timer().

Here is the call graph for this function:

FLINKAGE void FTN_NAME ( MBLK_PRINT  ,
mblk_print   
)

Definition at line 711 of file mblock.C.

References MBLK_Print().

Here is the call graph for this function:

FLINKAGE void FTN_NAME ( MBLK_PRINT_BLOCK  ,
mblk_print_block   
)

Definition at line 721 of file mblock.C.

References MBLK_Print_block().

Here is the call graph for this function:

FLINKAGE void FTN_NAME ( MBLK_CREATE_FIELD  ,
mblk_create_field   
)

Definition at line 727 of file mblock.C.

References MBLK_Create_field().

Here is the call graph for this function:

FLINKAGE void FTN_NAME ( MBLK_UPDATE_FIELD  ,
mblk_update_field   
)

Definition at line 733 of file mblock.C.

References MBLK_Update_field().

Here is the call graph for this function:

FLINKAGE void FTN_NAME ( MBLK_IUPDATE_FIELD  ,
mblk_iupdate_field   
)

Definition at line 739 of file mblock.C.

References MBLK_Iupdate_field().

Here is the call graph for this function:

FLINKAGE void FTN_NAME ( MBLK_TEST_UPDATE  ,
mblk_test_update   
)

Definition at line 745 of file mblock.C.

References MBLK_Test_update().

Here is the call graph for this function:

FLINKAGE void FTN_NAME ( MBLK_WAIT_UPDATE  ,
mblk_wait_update   
)

Definition at line 751 of file mblock.C.

References MBLK_Wait_update().

Here is the call graph for this function:

FLINKAGE void FTN_NAME ( MBLK_REDUCE_FIELD  ,
mblk_reduce_field   
)

Definition at line 757 of file mblock.C.

References MBLK_Reduce_field().

Here is the call graph for this function:

FLINKAGE void FTN_NAME ( MBLK_REDUCE  ,
mblk_reduce   
)

Definition at line 763 of file mblock.C.

References MBLK_Reduce_field().

Here is the call graph for this function:

FLINKAGE void FTN_NAME ( MBLK_REGISTER_BC  ,
mblk_register_bc   
)

Definition at line 769 of file mblock.C.

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

Here is the call graph for this function:

FLINKAGE void FTN_NAME ( MBLK_APPLY_BC  ,
mblk_apply_bc   
)

Definition at line 776 of file mblock.C.

References MBLK_Apply_bc().

Here is the call graph for this function:

FLINKAGE void FTN_NAME ( MBLK_APPLY_BC_ALL  ,
mblk_apply_bc_all   
)

Definition at line 782 of file mblock.C.

References MBLK_Apply_bc_all().

Here is the call graph for this function:

FLINKAGE void FTN_NAME ( MBLK_REGISTER  ,
mblk_register   
)

Definition at line 788 of file mblock.C.

References MBLK_Register().

Here is the call graph for this function:

FLINKAGE void FTN_NAME ( MBLK_MIGRATE  ,
mblk_migrate   
)

Definition at line 794 of file mblock.C.

References MBLK_Migrate().

Here is the call graph for this function:

static void cmm_pup_mblock_message ( pup_er  p,
void **  msg 
) [static]

Definition at line 809 of file mblock.C.

References CkPupMessage(), and pup_isDeleting().

Referenced by MBlockChunk::pup().

Here is the call graph for this function:

Here is the caller graph for this function:


Variable Documentation

int callDrivers_idx = -1 [static]

Definition at line 43 of file mblock.C.

Referenced by MBlockFallbackSetup(), and MBlockNodeInit().

d* lhs

Definition at line 76 of file mblock.C.

Referenced by PUPbytes().


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