Skip to contents

The engine parallelises with OpenMP when the package was compiled with it. dseams_threads() reports the thread count, and dseams_threads(n) sets it for later calls from this R session. Frames below about 2000 atoms run on one thread regardless.

Usage

dseams_threads(n = NULL)

Arguments

n

Number of threads, or NULL to only query.

Value

The thread count in effect after the call. Without OpenMP this is always 1.

Details

The option dseams.threads sets the starting count, before the package is loaded. When R has been asked to limit the number of cores, the package starts with at most two threads.

Examples

dseams_threads()
#> [1] 4