⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 slog_rdef_addextrarecdef.3

📁 MPICH是MPI的重要研究,提供了一系列的接口函数,为并行计算的实现提供了编程环境.
💻 3
字号:
.TH SLOG_RDEF_AddExtraRecDef 3 "1/18/2000" " " "SLOG_API".SH NAMESLOG_RDEF_AddExtraRecDef \-  Add one extra definition to the reserved space of SLOG Record Definition table. .SH SYNOPSIS.nfint SLOG_RDEF_AddExtraRecDef(       SLOG_STREAM          *slog,                              const SLOG_intvltype_t      intvltype,                              const SLOG_bebit_t          bebit_0,                              const SLOG_bebit_t          bebit_1,                              const SLOG_N_assocs_t       Nassocs,                              const SLOG_N_args_t         Nargs ).fi.SH MODIFIED INPUT VARIABLES .PD 0.TP.B slog - pointer to the SLOG_STREAM where SLOG Record Definition Table islocated..PD 1.SH UNMODIFIED INPUT VARIABLES .PD 0.TP.B intvltype - label to the interval type..PD 1.PD 0.TP.B bebit_0 - the 1st bebit..PD 1.PD 0.TP.B bebit_1 - the 2nd bebit..PD 1.PD 0.TP.B Nassocs - Number of assocications for this interval record type..PD 1.PD 0.TP.B Nargs - Number of MPI call argument for this interval record type..PD 1.SH MODIFIED OUTPUT VARIABLES .PD 0.TP.B returned value - integer return status..PD 1.SH USAGE NOTES ON THIS SUBROUTINE Notes on the Addition of Extra Record DefinitionsThis note is to clarify the usage of SLOG_RDEF_XXX() routinesespecially while the user wants to add extra record definitionsto the logfile when the process of addition of interval recordsto the logfile has been started, for instance if one needs toadd user marker interval records.Under normal circumstances, the record definition table is createdby first opening the section of the logfile for storing the tableusing SLOG_RDEF_Open().  Then add the record definition usingSLOG_RDEF_AddRecDef() and close the table section bySLOG_RDEF_Close().In the case that the logfile involves interval records whoseinterval type are NOT known until the process of insertingof the interval records to the logfile has been started, oneshould open the SLOG_RDEF_Open().  Then add the known recorddefinitions using SLOG_RDEF_AddRecDef().  However, one shouldNOT call SLOG_RDEF_Close() to close the table section.  Instead,SLOG_RDEF_SetExtraNumOfRecDefs() should be called to setthe extra number of record definition entries needed( thenumber can be greater than what one actually needs ).  Thenwhen user encounters a new interval record type,SLOG_RDEF_AddExtraRecDef() can then be called to add the newinterval record type to the record definition table.  Thishas to be done before adding the interval record to the logfileusing SLOG_Irec_ToOutputStream() which does NOT allow intervalrecord of with unknown interval type to the record definitiontable..br.SH INCLUDE FILE NEEDED slog_recdefs.h.SH NOTES ON SLOG RETURN STATUS CODE There are 5 allowed SLOG returned status codes.  They includeSLOG_SUCCESS, SLOG_FAIL and SLOG_EOF.  Their actual valuesare defined in slog.hSLOG_SUCCESS is returned when no error is encountered.SLOG_FAIL is returned when error is encounted.SLOG_EOF is returned when End of file is encounted.There are also SLOG_TRUE and SLOG_FALSE which are sued as booleanvalues, in particular they are used in boolean functions whichare usually named as IsXXXXX(), AreXXXXX() and HasXXXXX()..br.SH LOCATION../src/slog_recdefs.c

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -