F02_par_output

模块定位

F02_par_output 是粒子输出层。它将本 rank 的 par(:,1:np) 写入独立文件, 统一入口 sub_F02_par_output 根据 tag 选择 ASCII、binary 或 HDF5 writer。 未知 tag 会提示并回退到 dat。

文件角色

文件

角色

mod_F02_par_output.f90

模块包装器,include dispatcher、ASCII、binary 和可选 HDF5 输出例程。

sub_F02_par_output.f90

按 tag 分发粒子输出。

sub_F02_par_output_dat.f90

每个粒子一行写成 ASCII .dat。

sub_F02_par_output_bin.f90

写 raw Fortran stream .bin,无 record markers。

sub_F02_par_output_h5.f90

写 HDF5 文件和数据集 par。

调用注意

输出例程会使用 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 Roles

File

Role

mod_F02_par_output.f90

Module wrapper including dispatcher, ASCII, binary, and optional HDF5 writers.

sub_F02_par_output.f90

Dispatch particle output by tag.

sub_F02_par_output_dat.f90

Write one ASCII .dat record per particle.

sub_F02_par_output_bin.f90

Write raw Fortran stream .bin without record markers.

sub_F02_par_output_h5.f90

Write an HDF5 file with dataset par.

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.