Loading...
Searching...
No Matches
meshkit::Limits Struct Reference

Resource caps for jobs, validation and file I/O. More...

#include <meshkit/mesh.hpp>

Collaboration diagram for meshkit::Limits:

Public Attributes

std::uint64_t maxVertices = 20000000
 Maximum number of vertices (source points, working vertices during refinement, mesh vertices, and also vertex aliases); default 20 000 000.
 
std::uint64_t maxCells = 20000000
 Maximum number of cells; default 20 000 000.
 
std::uint64_t maxEdges = 40000000
 Maximum number of edges, of paths, and of vertex indices summed over all paths; default 40 000 000.
 
std::uint64_t maxWorkspaceBytes = std::uint64_t(4) << 30
 Cap on estimated workspace in bytes (computed from counts, not measured); default 4 GiB.
 
std::uint64_t maxWork = 0
 Work-unit allowance of one operation's own counter.
 
std::uint64_t maxMetadataBytes = 8 * 1024 * 1024
 Cap on metadata text bytes (CRS, description, label names and, for a job, the provider identity); the label count is also capped at a quarter of it.
 
std::uint64_t maxRecordBytes = 1024 * 1024
 Cap on the length in bytes of one SMS 2DM text line; default 1 MiB.
 

Detailed Description

Resource caps for jobs, validation and file I/O.

The caps bound counts, estimated workspace and counted work units, not total process memory or time spent inside caller callbacks. Reaching one generally ends the operation with RunStatus::ResourceLimit and no partial result; patch planning may instead decline a preferred quad patch that would exceed the cell or workspace cap.

Member Data Documentation

◆ maxCells

std::uint64_t meshkit::Limits::maxCells = 20000000

Maximum number of cells; default 20 000 000.

runJob() refuses 0.

◆ maxEdges

std::uint64_t meshkit::Limits::maxEdges = 40000000

Maximum number of edges, of paths, and of vertex indices summed over all paths; default 40 000 000.

◆ maxMetadataBytes

std::uint64_t meshkit::Limits::maxMetadataBytes = 8 * 1024 * 1024

Cap on metadata text bytes (CRS, description, label names and, for a job, the provider identity); the label count is also capped at a quarter of it.

Default 8 MiB.

◆ maxRecordBytes

std::uint64_t meshkit::Limits::maxRecordBytes = 1024 * 1024

Cap on the length in bytes of one SMS 2DM text line; default 1 MiB.

◆ maxVertices

std::uint64_t meshkit::Limits::maxVertices = 20000000

Maximum number of vertices (source points, working vertices during refinement, mesh vertices, and also vertex aliases); default 20 000 000.

◆ maxWork

std::uint64_t meshkit::Limits::maxWork = 0

Work-unit allowance of one operation's own counter.

runJob() also passes it as the separate budget of patch planning and of the final constraint audit. Zero selects 20 000 000 000 units for the operation's counter; planning and the audit then derive their budgets from their input sizes.

◆ maxWorkspaceBytes

std::uint64_t meshkit::Limits::maxWorkspaceBytes = std::uint64_t(4) << 30

Cap on estimated workspace in bytes (computed from counts, not measured); default 4 GiB.


The documentation for this struct was generated from the following file: