Skip to main content

Module rcso

Module rcso 

Source
Expand description

RCSO/RCSB cooked numerics for a caller-side broadcast. No MPI in this crate. RCSO cooked SoA bytes for a caller-side MPI_Bcast.

Layout matches readcon-db cooked_soa v1 (little-endian): magic RCSO, version, natoms, flags, dtype, pad, reserved, then positions, optional forces, optional velocities.

This crate never calls MPI_Init or names WORLD. Rank 0 encodes; the caller broadcasts; workers decode.

Structs§

Rcso
Decoded cooked numerics.

Constants§

RCSB_MAGIC
Length-prefixed RCSO blobs for one collective (ADIOS BP5 grain: many frames).
RCSB_VERSION
Batch envelope version 1.
RCSO_DTYPE_F64
Positions/forces/velocities stored as f64.
RCSO_FLAG_FORCES
Bit 0: forces block present.
RCSO_FLAG_VELOCITIES
Bit 1: velocities block present.
RCSO_MAGIC
Four-byte magic. Identical to readcon-db.
RCSO_VERSION
Layout version 1.

Functions§

decode_batch
Split an RCSB envelope into RCSO blobs.
encode_batch
Pack many RCSO blobs into one RCSB envelope (one Bcast).