Skip to main content

write_frame_binary

Function write_frame_binary 

Source
pub fn write_frame_binary(
    file: &mut File,
    positions: &[[f32; 3]],
) -> Result<(), Error>
Expand description

Write one frame of atomic positions to an open file.

Each atom contributes 12 bytes (3 × f32 little-endian).