|
PICurv 0.1.0
A Parallel Particle-In-Cell Solver for Curvilinear LES
|
Go to the source code of this file.
Data Structures | |
| struct | ProfiledFunction |
Macros | |
| #define | TMP_BUF_SIZE 128 |
| #define | __FUNCT__ "DualKSPMonitor" |
| A custom KSP monitor that logs the true residual to a file and optionally to the console. | |
| #define | __FUNCT__ "LOG_CONTINUITY_METRICS" |
| A custom KSP monitor that logs the true residual to a file and optionally to the console. | |
| #define | __FUNCT__ "LOG_FIELD_MIN_MAX" |
| A custom KSP monitor that logs the true residual to a file and optionally to the console. | |
| #define | __FUNCT__ "LOG_FIELD_ANATOMY" |
| A custom KSP monitor that logs the true residual to a file and optionally to the console. | |
| #define | __FUNCT__ "LOG_INTERPOLATION_ERROR" |
| A custom KSP monitor that logs the true residual to a file and optionally to the console. | |
| #define | __FUNCT__ "LOG_SCATTER_METRICS" |
| A custom KSP monitor that logs the true residual to a file and optionally to the console. | |
| #define | __FUNCT__ "ResetSearchMetrics" |
| A custom KSP monitor that logs the true residual to a file and optionally to the console. | |
| #define | __FUNCT__ "LOG_SEARCH_METRICS" |
| A custom KSP monitor that logs the true residual to a file and optionally to the console. | |
| #define | __FUNCT__ "CalculateAdvancedParticleMetrics" |
| A custom KSP monitor that logs the true residual to a file and optionally to the console. | |
| #define | __FUNCT__ "LOG_PARTICLE_METRICS" |
| A custom KSP monitor that logs the true residual to a file and optionally to the console. | |
Functions | |
| static void | SearchMetricsReduceOp (void *invec, void *inoutvec, int *len, MPI_Datatype *datatype) |
| Internal reduction callback for packed search metrics. | |
| LogLevel | get_log_level () |
| Implementation of get_log_level(). | |
| PetscErrorCode | print_log_level (void) |
Internal helper implementation: print_log_level(). | |
| void | set_allowed_functions (const char **functionList, int count) |
| Implementation of set_allowed_functions(). | |
| PetscBool | is_function_allowed (const char *functionName) |
| Implementation of is_function_allowed(). | |
| PetscErrorCode | LOG_CELL_VERTICES (const Cell *cell, PetscMPIInt rank) |
| Implementation of LOG_CELL_VERTICES(). | |
| PetscErrorCode | LOG_FACE_DISTANCES (PetscReal *d) |
| Implementation of LOG_FACE_DISTANCES(). | |
| static void | IntToStr (int value, char *buf, size_t bufsize) |
| static void | Int64ToStr (PetscInt64 value, char *buf, size_t bufsize) |
| static void | CellToStr (const PetscInt *cell, char *buf, size_t bufsize) |
| static void | TripleRealToStr (const PetscReal *arr, char *buf, size_t bufsize) |
| static PetscErrorCode | ComputeMaxColumnWidths (PetscInt nParticles, const PetscMPIInt *ranks, const PetscInt64 *pids, const PetscInt *cellIDs, const PetscReal *positions, const PetscReal *velocities, const PetscReal *weights, int *wRank, int *wPID, int *wCell, int *wPos, int *wVel, int *wWt) |
| static void | BuildRowFormatString (PetscMPIInt wRank, PetscInt wPID, PetscInt wCell, PetscInt wPos, PetscInt wVel, PetscInt wWt, char *fmtStr, size_t bufSize) |
| static void | BuildHeaderString (char *headerStr, size_t bufSize, PetscMPIInt wRank, PetscInt wPID, PetscInt wCell, PetscInt wPos, PetscInt wVel, PetscInt wWt) |
| PetscErrorCode | LOG_PARTICLE_FIELDS (UserCtx *user, PetscInt printInterval) |
| Implementation of LOG_PARTICLE_FIELDS(). | |
| PetscBool | IsParticleConsoleSnapshotEnabled (const SimCtx *simCtx) |
| Implementation of IsParticleConsoleSnapshotEnabled(). | |
| PetscBool | ShouldEmitPeriodicParticleConsoleSnapshot (const SimCtx *simCtx, PetscInt completed_step) |
| Implementation of ShouldEmitPeriodicParticleConsoleSnapshot(). | |
| PetscErrorCode | EmitParticleConsoleSnapshot (UserCtx *user, SimCtx *simCtx, PetscInt step) |
| Implementation of EmitParticleConsoleSnapshot(). | |
| static void | trim (char *s) |
Internal helper implementation: trim(). | |
| PetscErrorCode | LoadAllowedFunctionsFromFile (const char filename[], char ***funcsOut, PetscInt *nOut) |
| Implementation of LoadAllowedFunctionsFromFile(). | |
| PetscErrorCode | FreeAllowedFunctions (char **funcs, PetscInt n) |
Internal helper implementation: FreeAllowedFunctions(). | |
| const char * | BCFaceToString (BCFace face) |
| Implementation of BCFaceToString(). | |
| const char * | FieldInitializationToString (PetscInt FieldInitialization) |
| Implementation of FieldInitializationToString(). | |
| const char * | ParticleInitializationToString (ParticleInitializationType ParticleInitialization) |
| Implementation of ParticleInitializationToString(). | |
| const char * | LESModelToString (LESModelType LESFlag) |
| Implementation of LESModelToString(). | |
| const char * | MomentumSolverTypeToString (MomentumSolverType SolverFlag) |
| Implementation of MomentumSolverTypeToString(). | |
| const char * | BCTypeToString (BCType type) |
| Implementation of BCTypeToString(). | |
| const char * | BCHandlerTypeToString (BCHandlerType handler_type) |
Internal helper implementation: BCHandlerTypeToString(). | |
| PetscErrorCode | DualMonitorDestroy (void **ctx) |
| Implementation of DualMonitorDestroy(). | |
| PetscErrorCode | DualKSPMonitor (KSP ksp, PetscInt it, PetscReal rnorm, void *ctx) |
| Implementation of DualKSPMonitor(). | |
| PetscErrorCode | LOG_CONTINUITY_METRICS (UserCtx *user) |
| Implementation of LOG_CONTINUITY_METRICS(). | |
| const char * | ParticleLocationStatusToString (ParticleLocationStatus level) |
| Implementation of ParticleLocationStatusToString(). | |
| static PetscErrorCode | _FindOrCreateEntry (const char *func_name, PetscInt *idx) |
Internal helper implementation: _FindOrCreateEntry(). | |
| PetscErrorCode | ProfilingInitialize (SimCtx *simCtx) |
Internal helper implementation: ProfilingInitialize(). | |
| void | _ProfilingStart (const char *func_name) |
| Implementation of _ProfilingStart(). | |
| void | _ProfilingEnd (const char *func_name) |
| Implementation of _ProfilingEnd(). | |
| PetscErrorCode | ProfilingResetTimestepCounters (void) |
| Implementation of ProfilingResetTimestepCounters(). | |
| PetscErrorCode | ProfilingLogTimestepSummary (SimCtx *simCtx, PetscInt step) |
| Implementation of ProfilingLogTimestepSummary(). | |
| static int | _CompareProfiledFunctions (const void *a, const void *b) |
Internal helper implementation: _CompareProfiledFunctions(). | |
| PetscErrorCode | ProfilingFinalize (SimCtx *simCtx) |
| Implementation of ProfilingFinalize(). | |
| void | PrintProgressBar (PetscInt step, PetscInt startStep, PetscInt totalSteps, PetscReal currentTime) |
Internal helper implementation: PrintProgressBar(). | |
| PetscErrorCode | LOG_FIELD_MIN_MAX (UserCtx *user, const char *fieldName) |
| Implementation of LOG_FIELD_MIN_MAX(). | |
| PetscErrorCode | LOG_FIELD_ANATOMY (UserCtx *user, const char *field_name, const char *stage_name) |
| Implementation of LOG_FIELD_ANATOMY(). | |
| PetscErrorCode | LOG_INTERPOLATION_ERROR (UserCtx *user) |
| Implementation of LOG_INTERPOLATION_ERROR(). | |
| PetscErrorCode | LOG_SCATTER_METRICS (UserCtx *user) |
| Implementation of LOG_SCATTER_METRICS(). | |
| PetscErrorCode | ResetSearchMetrics (SimCtx *simCtx) |
| Implementation of ResetSearchMetrics(). | |
| PetscErrorCode | LOG_SEARCH_METRICS (UserCtx *user) |
| Implementation of LOG_SEARCH_METRICS(). | |
| PetscErrorCode | CalculateAdvancedParticleMetrics (UserCtx *user) |
Internal helper implementation: CalculateAdvancedParticleMetrics(). | |
| PetscErrorCode | LOG_PARTICLE_METRICS (UserCtx *user, const char *stageName) |
| Implementation of LOG_PARTICLE_METRICS(). | |
Variables | |
| static LogLevel | current_log_level = -1 |
| Static variable to cache the current logging level. | |
| static char ** | gAllowedFunctions = NULL |
| Global/static array of function names allowed to log. | |
| static int | gNumAllowed = 0 |
| Number of entries in the gAllowedFunctions array. | |
| static ProfiledFunction * | g_profiler_registry = NULL |
| static PetscInt | g_profiler_count = 0 |
| static PetscInt | g_profiler_capacity = 0 |
| struct ProfiledFunction |
| #define __FUNCT__ "DualKSPMonitor" |
A custom KSP monitor that logs the true residual to a file and optionally to the console.
Logs continuity metrics for a single block to a file.
This function replicates the behavior of KSPMonitorTrueResidualNorm by calculating the true residual norm ||b - Ax|| itself. It unconditionally logs to a file viewer and conditionally logs to the console based on a flag in the context.
| ksp | The Krylov subspace context. |
| it | The current iteration number. |
| rnorm | The preconditioned residual norm (ignored, we compute our own). |
| ctx | A pointer to the DualMonitorCtx structure. |
This function should be called for each block, once per timestep. It opens a central log file in append mode. To ensure the header is written only once, it checks if it is processing block 0 on the simulation's start step.
| user | A pointer to the UserCtx for the specific block whose metrics are to be logged. The function accesses both global (SimCtx) and local (user->...) data. |
| #define __FUNCT__ "LOG_CONTINUITY_METRICS" |
A custom KSP monitor that logs the true residual to a file and optionally to the console.
Logs continuity metrics for a single block to a file.
This function replicates the behavior of KSPMonitorTrueResidualNorm by calculating the true residual norm ||b - Ax|| itself. It unconditionally logs to a file viewer and conditionally logs to the console based on a flag in the context.
| ksp | The Krylov subspace context. |
| it | The current iteration number. |
| rnorm | The preconditioned residual norm (ignored, we compute our own). |
| ctx | A pointer to the DualMonitorCtx structure. |
This function should be called for each block, once per timestep. It opens a central log file in append mode. To ensure the header is written only once, it checks if it is processing block 0 on the simulation's start step.
| user | A pointer to the UserCtx for the specific block whose metrics are to be logged. The function accesses both global (SimCtx) and local (user->...) data. |
| #define __FUNCT__ "LOG_FIELD_MIN_MAX" |
A custom KSP monitor that logs the true residual to a file and optionally to the console.
Logs continuity metrics for a single block to a file.
This function replicates the behavior of KSPMonitorTrueResidualNorm by calculating the true residual norm ||b - Ax|| itself. It unconditionally logs to a file viewer and conditionally logs to the console based on a flag in the context.
| ksp | The Krylov subspace context. |
| it | The current iteration number. |
| rnorm | The preconditioned residual norm (ignored, we compute our own). |
| ctx | A pointer to the DualMonitorCtx structure. |
This function should be called for each block, once per timestep. It opens a central log file in append mode. To ensure the header is written only once, it checks if it is processing block 0 on the simulation's start step.
| user | A pointer to the UserCtx for the specific block whose metrics are to be logged. The function accesses both global (SimCtx) and local (user->...) data. |
| #define __FUNCT__ "LOG_FIELD_ANATOMY" |
A custom KSP monitor that logs the true residual to a file and optionally to the console.
Logs continuity metrics for a single block to a file.
This function replicates the behavior of KSPMonitorTrueResidualNorm by calculating the true residual norm ||b - Ax|| itself. It unconditionally logs to a file viewer and conditionally logs to the console based on a flag in the context.
| ksp | The Krylov subspace context. |
| it | The current iteration number. |
| rnorm | The preconditioned residual norm (ignored, we compute our own). |
| ctx | A pointer to the DualMonitorCtx structure. |
This function should be called for each block, once per timestep. It opens a central log file in append mode. To ensure the header is written only once, it checks if it is processing block 0 on the simulation's start step.
| user | A pointer to the UserCtx for the specific block whose metrics are to be logged. The function accesses both global (SimCtx) and local (user->...) data. |
| #define __FUNCT__ "LOG_INTERPOLATION_ERROR" |
A custom KSP monitor that logs the true residual to a file and optionally to the console.
Logs continuity metrics for a single block to a file.
This function replicates the behavior of KSPMonitorTrueResidualNorm by calculating the true residual norm ||b - Ax|| itself. It unconditionally logs to a file viewer and conditionally logs to the console based on a flag in the context.
| ksp | The Krylov subspace context. |
| it | The current iteration number. |
| rnorm | The preconditioned residual norm (ignored, we compute our own). |
| ctx | A pointer to the DualMonitorCtx structure. |
This function should be called for each block, once per timestep. It opens a central log file in append mode. To ensure the header is written only once, it checks if it is processing block 0 on the simulation's start step.
| user | A pointer to the UserCtx for the specific block whose metrics are to be logged. The function accesses both global (SimCtx) and local (user->...) data. |
| #define __FUNCT__ "LOG_SCATTER_METRICS" |
A custom KSP monitor that logs the true residual to a file and optionally to the console.
Logs continuity metrics for a single block to a file.
This function replicates the behavior of KSPMonitorTrueResidualNorm by calculating the true residual norm ||b - Ax|| itself. It unconditionally logs to a file viewer and conditionally logs to the console based on a flag in the context.
| ksp | The Krylov subspace context. |
| it | The current iteration number. |
| rnorm | The preconditioned residual norm (ignored, we compute our own). |
| ctx | A pointer to the DualMonitorCtx structure. |
This function should be called for each block, once per timestep. It opens a central log file in append mode. To ensure the header is written only once, it checks if it is processing block 0 on the simulation's start step.
| user | A pointer to the UserCtx for the specific block whose metrics are to be logged. The function accesses both global (SimCtx) and local (user->...) data. |
| #define __FUNCT__ "ResetSearchMetrics" |
A custom KSP monitor that logs the true residual to a file and optionally to the console.
Logs continuity metrics for a single block to a file.
This function replicates the behavior of KSPMonitorTrueResidualNorm by calculating the true residual norm ||b - Ax|| itself. It unconditionally logs to a file viewer and conditionally logs to the console based on a flag in the context.
| ksp | The Krylov subspace context. |
| it | The current iteration number. |
| rnorm | The preconditioned residual norm (ignored, we compute our own). |
| ctx | A pointer to the DualMonitorCtx structure. |
This function should be called for each block, once per timestep. It opens a central log file in append mode. To ensure the header is written only once, it checks if it is processing block 0 on the simulation's start step.
| user | A pointer to the UserCtx for the specific block whose metrics are to be logged. The function accesses both global (SimCtx) and local (user->...) data. |
| #define __FUNCT__ "LOG_SEARCH_METRICS" |
A custom KSP monitor that logs the true residual to a file and optionally to the console.
Logs continuity metrics for a single block to a file.
This function replicates the behavior of KSPMonitorTrueResidualNorm by calculating the true residual norm ||b - Ax|| itself. It unconditionally logs to a file viewer and conditionally logs to the console based on a flag in the context.
| ksp | The Krylov subspace context. |
| it | The current iteration number. |
| rnorm | The preconditioned residual norm (ignored, we compute our own). |
| ctx | A pointer to the DualMonitorCtx structure. |
This function should be called for each block, once per timestep. It opens a central log file in append mode. To ensure the header is written only once, it checks if it is processing block 0 on the simulation's start step.
| user | A pointer to the UserCtx for the specific block whose metrics are to be logged. The function accesses both global (SimCtx) and local (user->...) data. |
| #define __FUNCT__ "CalculateAdvancedParticleMetrics" |
A custom KSP monitor that logs the true residual to a file and optionally to the console.
Logs continuity metrics for a single block to a file.
This function replicates the behavior of KSPMonitorTrueResidualNorm by calculating the true residual norm ||b - Ax|| itself. It unconditionally logs to a file viewer and conditionally logs to the console based on a flag in the context.
| ksp | The Krylov subspace context. |
| it | The current iteration number. |
| rnorm | The preconditioned residual norm (ignored, we compute our own). |
| ctx | A pointer to the DualMonitorCtx structure. |
This function should be called for each block, once per timestep. It opens a central log file in append mode. To ensure the header is written only once, it checks if it is processing block 0 on the simulation's start step.
| user | A pointer to the UserCtx for the specific block whose metrics are to be logged. The function accesses both global (SimCtx) and local (user->...) data. |
| #define __FUNCT__ "LOG_PARTICLE_METRICS" |
A custom KSP monitor that logs the true residual to a file and optionally to the console.
Logs continuity metrics for a single block to a file.
This function replicates the behavior of KSPMonitorTrueResidualNorm by calculating the true residual norm ||b - Ax|| itself. It unconditionally logs to a file viewer and conditionally logs to the console based on a flag in the context.
| ksp | The Krylov subspace context. |
| it | The current iteration number. |
| rnorm | The preconditioned residual norm (ignored, we compute our own). |
| ctx | A pointer to the DualMonitorCtx structure. |
This function should be called for each block, once per timestep. It opens a central log file in append mode. To ensure the header is written only once, it checks if it is processing block 0 on the simulation's start step.
| user | A pointer to the UserCtx for the specific block whose metrics are to be logged. The function accesses both global (SimCtx) and local (user->...) data. |
| anonymous enum |
Definition at line 30 of file logging.c.
|
static |
Internal reduction callback for packed search metrics.
Local to this translation unit.
Definition at line 51 of file logging.c.
| LogLevel get_log_level | ( | ) |
Implementation of get_log_level().
Retrieves the current logging level from the environment variable LOG_LEVEL.
Full API contract (arguments, ownership, side effects) is documented with the header declaration in include/logging.h.
Definition at line 84 of file logging.c.
| PetscErrorCode print_log_level | ( | void | ) |
Internal helper implementation: print_log_level().
Prints the current logging level to the console.
Local to this translation unit.
Definition at line 116 of file logging.c.
| void set_allowed_functions | ( | const char ** | functionList, |
| int | count | ||
| ) |
Implementation of set_allowed_functions().
Sets the global list of function names that are allowed to log.
Full API contract (arguments, ownership, side effects) is documented with the header declaration in include/logging.h.
Definition at line 152 of file logging.c.
| PetscBool is_function_allowed | ( | const char * | functionName | ) |
Implementation of is_function_allowed().
Checks if a given function is in the allow-list.
Full API contract (arguments, ownership, side effects) is documented with the header declaration in include/logging.h.
Definition at line 183 of file logging.c.
| PetscErrorCode LOG_CELL_VERTICES | ( | const Cell * | cell, |
| PetscMPIInt | rank | ||
| ) |
Implementation of LOG_CELL_VERTICES().
Prints the coordinates of a cell's vertices.
Full API contract (arguments, ownership, side effects) is documented with the header declaration in include/logging.h.
Definition at line 205 of file logging.c.
| PetscErrorCode LOG_FACE_DISTANCES | ( | PetscReal * | d | ) |
Implementation of LOG_FACE_DISTANCES().
Prints the signed distances to each face of the cell.
Full API contract (arguments, ownership, side effects) is documented with the header declaration in include/logging.h.
Definition at line 230 of file logging.c.
|
static |
|
static |
|
static |
|
static |
|
static |
Definition at line 302 of file logging.c.
|
static |
Definition at line 366 of file logging.c.
|
static |
Definition at line 379 of file logging.c.
| PetscErrorCode LOG_PARTICLE_FIELDS | ( | UserCtx * | user, |
| PetscInt | printInterval | ||
| ) |
Implementation of LOG_PARTICLE_FIELDS().
Prints particle fields in a table that automatically adjusts its column widths.
Full API contract (arguments, ownership, side effects) is documented with the header declaration in include/logging.h.
Definition at line 397 of file logging.c.
| PetscBool IsParticleConsoleSnapshotEnabled | ( | const SimCtx * | simCtx | ) |
Implementation of IsParticleConsoleSnapshotEnabled().
Returns whether periodic particle console snapshots are enabled.
Full API contract (arguments, ownership, side effects) is documented with the header declaration in include/logging.h.
Definition at line 525 of file logging.c.
| PetscBool ShouldEmitPeriodicParticleConsoleSnapshot | ( | const SimCtx * | simCtx, |
| PetscInt | completed_step | ||
| ) |
Implementation of ShouldEmitPeriodicParticleConsoleSnapshot().
Returns whether a particle console snapshot should be emitted for the.
Full API contract (arguments, ownership, side effects) is documented with the header declaration in include/logging.h.
Definition at line 542 of file logging.c.
Implementation of EmitParticleConsoleSnapshot().
Emits one particle console snapshot into the main solver log.
Full API contract (arguments, ownership, side effects) is documented with the header declaration in include/logging.h.
Definition at line 556 of file logging.c.
|
static |
Internal helper implementation: trim().
Local to this translation unit.
Definition at line 571 of file logging.c.
| PetscErrorCode LoadAllowedFunctionsFromFile | ( | const char | filename[], |
| char *** | funcsOut, | ||
| PetscInt * | nOut | ||
| ) |
Implementation of LoadAllowedFunctionsFromFile().
Load function names from a text file.
Full API contract (arguments, ownership, side effects) is documented with the header declaration in include/logging.h.
Definition at line 596 of file logging.c.
| PetscErrorCode FreeAllowedFunctions | ( | char ** | funcs, |
| PetscInt | n | ||
| ) |
Internal helper implementation: FreeAllowedFunctions().
Free an array previously returned by LoadAllowedFunctionsFromFile().
Local to this translation unit.
Definition at line 650 of file logging.c.
| const char * BCFaceToString | ( | BCFace | face | ) |
Implementation of BCFaceToString().
Helper function to convert BCFace enum to a string representation.
Full API contract (arguments, ownership, side effects) is documented with the header declaration in include/logging.h.
Definition at line 669 of file logging.c.
| const char * FieldInitializationToString | ( | PetscInt | FieldInitialization | ) |
Implementation of FieldInitializationToString().
Helper function to convert FieldInitialization to a string representation.
Full API contract (arguments, ownership, side effects) is documented with the header declaration in include/logging.h.
Definition at line 687 of file logging.c.
| const char * ParticleInitializationToString | ( | ParticleInitializationType | ParticleInitialization | ) |
Implementation of ParticleInitializationToString().
Helper function to convert ParticleInitialization to a string representation.
Full API contract (arguments, ownership, side effects) is documented with the header declaration in include/logging.h.
Definition at line 703 of file logging.c.
| const char * LESModelToString | ( | LESModelType | LESFlag | ) |
Implementation of LESModelToString().
Helper function to convert LES Flag to a string representation.
Full API contract (arguments, ownership, side effects) is documented with the header declaration in include/logging.h.
Definition at line 720 of file logging.c.
| const char * MomentumSolverTypeToString | ( | MomentumSolverType | SolverFlag | ) |
Implementation of MomentumSolverTypeToString().
Helper function to convert Momentum Solver flag to a string representation.
Full API contract (arguments, ownership, side effects) is documented with the header declaration in include/logging.h.
Definition at line 736 of file logging.c.
| const char * BCTypeToString | ( | BCType | type | ) |
Implementation of BCTypeToString().
Helper function to convert BCType enum to a string representation.
Full API contract (arguments, ownership, side effects) is documented with the header declaration in include/logging.h.
Definition at line 751 of file logging.c.
| const char * BCHandlerTypeToString | ( | BCHandlerType | handler_type | ) |
Internal helper implementation: BCHandlerTypeToString().
Converts a BCHandlerType enum to its string representation.
Local to this translation unit.
Definition at line 771 of file logging.c.
| PetscErrorCode DualMonitorDestroy | ( | void ** | ctx | ) |
Implementation of DualMonitorDestroy().
Destroys the DualMonitorCtx.
Full API contract (arguments, ownership, side effects) is documented with the header declaration in include/logging.h.
Definition at line 808 of file logging.c.
| PetscErrorCode DualKSPMonitor | ( | KSP | ksp, |
| PetscInt | it, | ||
| PetscReal | rnorm, | ||
| void * | ctx | ||
| ) |
Implementation of DualKSPMonitor().
A custom KSP monitor that logs to a file and optionally to the console.
Full API contract (arguments, ownership, side effects) is documented with the header declaration in include/logging.h.
Definition at line 847 of file logging.c.
| PetscErrorCode LOG_CONTINUITY_METRICS | ( | UserCtx * | user | ) |
Implementation of LOG_CONTINUITY_METRICS().
Logs continuity metrics for a single block to a file.
Full API contract (arguments, ownership, side effects) is documented with the header declaration in include/logging.h.
Definition at line 914 of file logging.c.
| const char * ParticleLocationStatusToString | ( | ParticleLocationStatus | level | ) |
Implementation of ParticleLocationStatusToString().
A function that outputs the name of the current level in the ParticleLocation enum.
Full API contract (arguments, ownership, side effects) is documented with the header declaration in include/logging.h.
Definition at line 973 of file logging.c.
|
static |
Internal helper implementation: _FindOrCreateEntry().
Local to this translation unit.
Definition at line 1008 of file logging.c.
| PetscErrorCode ProfilingInitialize | ( | SimCtx * | simCtx | ) |
Internal helper implementation: ProfilingInitialize().
Initializes the custom profiling system using configuration from SimCtx.
Local to this translation unit.
Definition at line 1044 of file logging.c.
| void _ProfilingStart | ( | const char * | func_name | ) |
Implementation of _ProfilingStart().
Internal profiling hook invoked by PROFILE_FUNCTION_BEGIN.
Full API contract (arguments, ownership, side effects) is documented with the header declaration in include/logging.h.
Definition at line 1068 of file logging.c.
| void _ProfilingEnd | ( | const char * | func_name | ) |
Implementation of _ProfilingEnd().
Internal profiling hook invoked by PROFILE_FUNCTION_END.
Full API contract (arguments, ownership, side effects) is documented with the header declaration in include/logging.h.
Definition at line 1082 of file logging.c.
| PetscErrorCode ProfilingResetTimestepCounters | ( | void | ) |
Implementation of ProfilingResetTimestepCounters().
Resets per-timestep profiling counters for the next solver step.
Full API contract (arguments, ownership, side effects) is documented with the header declaration in include/logging.h.
Definition at line 1104 of file logging.c.
| PetscErrorCode ProfilingLogTimestepSummary | ( | SimCtx * | simCtx, |
| PetscInt | step | ||
| ) |
Implementation of ProfilingLogTimestepSummary().
Logs the performance summary for the current timestep and resets timers.
Full API contract (arguments, ownership, side effects) is documented with the header declaration in include/logging.h.
Definition at line 1121 of file logging.c.
|
static |
Internal helper implementation: _CompareProfiledFunctions().
Local to this translation unit.
Definition at line 1198 of file logging.c.
| PetscErrorCode ProfilingFinalize | ( | SimCtx * | simCtx | ) |
Implementation of ProfilingFinalize().
the profiling excercise and build a profiling summary which is then printed to a log file.
Full API contract (arguments, ownership, side effects) is documented with the header declaration in include/logging.h.
Definition at line 1214 of file logging.c.
| void PrintProgressBar | ( | PetscInt | step, |
| PetscInt | startStep, | ||
| PetscInt | totalSteps, | ||
| PetscReal | currentTime | ||
| ) |
Internal helper implementation: PrintProgressBar().
Prints a progress bar to the console.
Local to this translation unit.
Definition at line 1320 of file logging.c.
| PetscErrorCode LOG_FIELD_MIN_MAX | ( | UserCtx * | user, |
| const char * | fieldName | ||
| ) |
Implementation of LOG_FIELD_MIN_MAX().
Computes and logs the local and global min/max values of a 3-component vector field.
Full API contract is documented with the header declaration in include/logging.h.
Definition at line 1367 of file logging.c.
| PetscErrorCode LOG_FIELD_ANATOMY | ( | UserCtx * | user, |
| const char * | field_name, | ||
| const char * | stage_name | ||
| ) |
Implementation of LOG_FIELD_ANATOMY().
Logs the anatomy of a specified field at key boundary locations, respecting the solver's specific grid and variable architecture.
Full API contract is documented with the header declaration in include/logging.h.
Definition at line 1515 of file logging.c.
| PetscErrorCode LOG_INTERPOLATION_ERROR | ( | UserCtx * | user | ) |
Implementation of LOG_INTERPOLATION_ERROR().
Logs the interpolation error between the analytical and computed solutions.
Full API contract (arguments, ownership, side effects) is documented with the header declaration in include/logging.h.
Definition at line 1785 of file logging.c.
| PetscErrorCode LOG_SCATTER_METRICS | ( | UserCtx * | user | ) |
Implementation of LOG_SCATTER_METRICS().
Logs particle-to-grid scatter verification metrics for the prescribed scalar truth path.
Full API contract (arguments, ownership, side effects) is documented with the header declaration in include/logging.h.
Definition at line 1861 of file logging.c.
| PetscErrorCode ResetSearchMetrics | ( | SimCtx * | simCtx | ) |
Implementation of ResetSearchMetrics().
Resets the aggregate per-timestep search instrumentation counters.
Full API contract (arguments, ownership, side effects) is documented with the header declaration in include/logging.h.
Definition at line 2012 of file logging.c.
| PetscErrorCode LOG_SEARCH_METRICS | ( | UserCtx * | user | ) |
Implementation of LOG_SEARCH_METRICS().
Writes compact runtime search metrics to CSV and optionally to console.
Full API contract (arguments, ownership, side effects) is documented with the header declaration in include/logging.h.
Definition at line 2043 of file logging.c.
| PetscErrorCode CalculateAdvancedParticleMetrics | ( | UserCtx * | user | ) |
Internal helper implementation: CalculateAdvancedParticleMetrics().
Computes advanced particle statistics and stores them in SimCtx.
Local to this translation unit.
Definition at line 2194 of file logging.c.
| PetscErrorCode LOG_PARTICLE_METRICS | ( | UserCtx * | user, |
| const char * | stageName | ||
| ) |
Implementation of LOG_PARTICLE_METRICS().
Logs particle swarm metrics, adapting its behavior based on a boolean flag in SimCtx.
Full API contract (arguments, ownership, side effects) is documented with the header declaration in include/logging.h.
Definition at line 2248 of file logging.c.
|
static |
|
static |
|
static |
|
static |