主ループへ渡す出力先(history の unit と間隔、終了時のメッシュ電位)を 1 つの型にまとめる。 unit が -1 の history は書かない。CLI は root rank で writer を開いてこの型へ詰め、終了時に閉じる。
| Type | Visibility | Attributes | Name | Initial | |||
|---|---|---|---|---|---|---|---|
| integer, | public | :: | history_unit | = | -1 |
電荷 history(output.history.stride_batches ごと)。 |
|
| integer, | public | :: | potential_history_unit | = | -1 |
要素電位 history。間隔は history_stride。 |
|
| integer, | public | :: | top_reference_history_unit | = | -1 |
z-high 参照電位 history。要素電位 history と同じ batch で書くので、potential_history_unit が有効なときだけ使う。 |
|
| integer, | public | :: | matching_plane_history_unit | = | -1 | ||
| integer, | public | :: | matching_plane_spectrum_history_unit | = | -1 |
外部源のスペクトル history。外部根を更新した batch で、間隔によらず書く。 |
|
| integer, | public | :: | fixed_current_history_unit | = | -1 | ||
| integer, | public | :: | secondary_emission_history_unit | = | -1 |
SEE history。毎 batch 書く。 |
|
| integer(kind=i32), | public | :: | history_stride | = | 1_i32 |
history を書く accepted batch の間隔。0 以下なら matching-plane・spectrum・固定電流 history を書かず、 電荷・要素電位 history は毎 batch の扱いになる(CLI の writer はこのとき開かれない)。 |
|
| logical, | public | :: | mesh_potential | = | .false. |
終了時に要素重心の電位を mesh_potential_v へ求める(root rank だけ)。 |
|
| real(kind=dp), | public, | allocatable | :: | mesh_potential_v(:) | |||
| type(summary_identity_type), | public | :: | summary_identity |
主ループが開始時に作った summary の不変量。最終出力の summary.txt はこれを使う。 |
root rank で出力先をこの run のものにしてから、設定どおりに history writer を開く。root 以外は全て無効(unit=-1)。
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| type(app_config), | intent(in) | :: | app | |||
| logical, | intent(in) | :: | resumed | |||
| integer(kind=i32), | intent(in) | :: | resume_batch |
再開した checkpoint の batch 数( |
||
| logical, | intent(in) | :: | is_root | |||
| type(run_outputs_type), | intent(out) | :: | outputs |
開いている history の行を書き出す。checkpoint の完了 manifest を公開する前に呼び、 再開できる batch 以下の history 行がすべて改行まで書かれていることを保証する。
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| type(run_outputs_type), | intent(in) | :: | outputs |
開いている history writer を閉じる。
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| type(run_outputs_type), | intent(inout) | :: | outputs |