Debian Codegraph @

source/utils/adios_reorganize/adios2_reorganize_wrapper

raw symbols SCIP
1 #!/bin/bashscip-shell filesystem . . `/bin/bash`.
2
3 # SPDX-FileCopyrightText: 2026 Oak Ridge National Laboratory and Contributors
4 #
5 # SPDX-License-Identifier: Apache-2.0
6
7 if [scip-shell system . . `[`. $# -ne 2 ]
8 then
9 echoscip-shell system . . echo. "Usage: $0 /path/to/input /path/to/output"
10 exit 1
11 fi
12
13 input="$1"
14 output="$2"
15 base_dir="$(dirnamescip-shell system . . dirname. $(readlinkscip-shell system . . readlink. -f "${BASH_SOURCE}"))"
16 wrapper=$(basenamescip-shell system . . basename. "$0")
17 case ${wrapper} in
18 bp2h5*@ADIOS2_EXECUTABLE_SUFFIX@)
19 in_engine=BPFile
20 in_params="StreamReader=ON"
21 out_engine=HDF5
22 out_params=""
23 ;;
24 *)
25 echoscip-shell system . . echo. "Error: Unrecognized wrapper: ${wrapper}"
26 exit 2
27 ;;
28 esac
29 case ${wrapper} in
30 *_mpi@ADIOS2_EXECUTABLE_SUFFIX@)
31 reorg_tool="${base_dir}/adios2_reorganize_mpi@ADIOS2_EXECUTABLE_SUFFIX@"
32 ;;
33 *@ADIOS2_EXECUTABLE_SUFFIX@)
34 reorg_tool="${base_dir}/adios2_reorganize@ADIOS2_EXECUTABLE_SUFFIX@"
35 ;;
36 *)
37 echoscip-shell system . . echo. "Error: Unrecognized wrapper: ${wrapper}"
38 exit 2
39 ;;
40 esac
41
42 set -x
43 exec "${reorg_tool}" "${input}" "${output}" ${in_engine} "${in_params}" ${out_engine} "${out_params}"