| Type | Visibility | Attributes | Name | Initial | |||
|---|---|---|---|---|---|---|---|
| character(len=256), | private | :: | current_basename | = | "" | ||
| character(len=256), | private | :: | output_json_filename | = | "results.json" |
Check if string ends with suffix
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| character(len=*), | intent(in) | :: | str | |||
| character(len=*), | intent(in) | :: | suffix |
Get the base name without “output_” prefix and “.json” suffix Example: “output_w1.json” -> “w1”
Extract molecule name from filename Example: “output_multi_structure_molecule_1.json” -> “molecule_1”
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| character(len=*), | intent(in) | :: | filename |
Get the current JSON output filename
Append a suffix to the output filename (e.g., for multi-molecule mode) Example: suffix=”_mol1” -> “output_multi_structure_mol1.json”
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| character(len=*), | intent(in) | :: | suffix |
Set the JSON output filename based on input filename Example: “water.mqc” -> “output_water.json”
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| character(len=*), | intent(in) | :: | input_filename |