netsim_error_logger: Handle the Logging of Traceback and Dumping of Frames on...

View source: R/utils.R

netsim_error_loggerR Documentation

Handle the Logging of Traceback and Dumping of Frames on Error

Description

If control$.traceback.on.error == TRUE, this function prints the traceback of the current simulation to STDIN. This is useful when ncores > 1 or in HPC settings. If control$.dump.frames.on.error == TRUE, this function saves a debugging dump for "postmortem debugging". The dumps are named "dump_%Y%m%d_%H%M%S_s.rda" and stored at the root of the working directory.

Usage

netsim_error_logger(dat, s)

Arguments

dat

Main netsim_dat object containing a networkDynamic object and other initialization information passed from netsim.

s

The number of the simulation that failed

Value

Nothing, after logging and dumping frames, the function gives the control back to the general error handler


statnet/EpiModel documentation built on April 26, 2024, 3:23 a.m.