Skip to content
Snippets Groups Projects
Commit 36529217 authored by Sergey Kosukhin's avatar Sergey Kosukhin
Browse files

Copy format-related logic from 'pio_write_run' to 'pio_write_deco2d_run'.

parent 113711f3
No related branches found
No related tags found
2 merge requests!34Version 2.2.0,!13Consolidation with CDI-PIO (develop)
#!@SHELL@
test 'x@ENABLE_GRIB@' = xyes || exit 77
LOG="${LOG-pio_write_deco2d.log}"
mpi_task_num="${mpi_task_num-6}"
suffix="${suffix-grb}"
case ${suffix} in
grb)
test 'x@ENABLE_GRIB@' = xyes || exit 77
;;
grb2)
@HAVE_LIBGRIB_API_FALSE@exit 77
;;
nc|nc2)
test 'x@ENABLE_NETCDF@' = xyes || exit 77
;;
nc4)
test 'x@ENABLE_NETCDF@' = xyes || exit 77
test 'x@ENABLE_NC4@' = xyes || exit 77
;;
*)
echo "Unsupported suffix '${suffix}'" >&2
exit 1
;;
esac
exec 5>&1 6>&2 >"$LOG" 2>&1
@top_builddir@/libtool --mode=execute @MPI_LAUNCH@ -n ${mpi_task_num} \
${tool_wrap_mpi} ./pio_write_deco2d ${pio_write_args} || exit 1
${tool_wrap_mpi} ./pio_write_deco2d -f ${suffix} ${pio_write_args} || exit 1
exec 2>&6 1>&5 5>&- 6>&-
@top_builddir@/libtool --mode=execute \
${tool_wrap} ./cksum_read example_0.${suffix} example_0.cksum || exit 1
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment