F02_par_output
模块定位
F02_par_output 是粒子输出层。它将本 rank 的 par(:,1:np) 写入独立文件,
统一入口 sub_F02_par_output 根据 tag 选择 ASCII、binary 或 HDF5 writer。
未知 tag 会提示并回退到 dat。
文件 |
角色 |
|---|---|
模块包装器,include dispatcher、ASCII、binary 和可选 HDF5 输出例程。 |
|
按 |
|
每个粒子一行写成 ASCII |
|
写 raw Fortran stream |
|
写 HDF5 文件和数据集 |
调用注意
输出例程会使用 label 作为目录和文件名前缀。不要把目录路径作为 label 传入;
需要整理目录结构时应由外层脚本或调用方处理。粒子 HDF5 writer 只在 USE_HDF5=1 时编译进模块。
Module Role
F02_par_output is the particle output layer. It writes the current rank’s
par(:,1:np) to a separate file. The common entry sub_F02_par_output
selects the ASCII, binary, or HDF5 writer by tag. Unknown tags warn and
fall back to dat.
File |
Role |
|---|---|
Module wrapper including dispatcher, ASCII, binary, and optional HDF5 writers. |
|
Dispatch particle output by |
|
Write one ASCII |
|
Write raw Fortran stream |
|
Write an HDF5 file with dataset |
Calling Notes
Output routines use label both as the directory and file prefix. Do not
pass a directory path as label; organize higher-level paths outside this
routine layer. The particle HDF5 writer is compiled into the module only when
USE_HDF5=1 is defined.