1 function [hzc,icl_z]=coarsening_icl_fortran(dx,dy,dz,params)
4 [hzc,icl_z]=coarsening_icl(dx,dy,dz,params)
7 disp('testing if coarsening_icl_test same result in fortran')
8 exe = './fortran/coarsening_icl_test.exe';
10 %Writing all arrays to text files for use by fortran tester
14 write_array(diag(params.a),'A');
15 write_array(params.minaspect,'minaspect');
16 write_array(params.maxaspect,'maxaspect');
18 hzcf=[read_array('cr_x'),read_array('cr_y')];
19 icl_zf = read_array('icl_z'); icl_zf=icl_zf(:)'; % row
20 if any(hzc ~= hzcf) || any(icl_zf ~= icl_z)
23 error('coarsening_icl_fortran different')
25 disp('coarsening_icl_test same result in fortran OK')
27 warning(['file ',exe,' does not exist'])