10
0
mirror of https://gitlab.com/scemama/EZFIO.git synced 2024-06-02 11:25:20 +02:00

Bug with multi-dimensional integer*8 arrays in ocaml corrected

This commit is contained in:
Anthony Scemama 2014-09-17 11:51:52 +02:00
parent 088c5ab63d
commit 4837aed52e

View File

@ -416,9 +416,9 @@ let write_array print_fun group name a =
in
begin
(* Write rank *)
Printf.fprintf out_channel "%4d\n" rank;
Printf.fprintf out_channel "%3d\n" rank;
(* Write dimensions *)
Array.iter (Printf.fprintf out_channel " %8d") dimensions;
Array.iter (Printf.fprintf out_channel " %16d") dimensions;
Printf.fprintf out_channel "\n";
Array.iter (print_fun out_channel) data;
close_out out_channel ;