1 function Fb=vec_boundary_conditions_fortran(F,params);
2 % Fb=vec_boundary_conditions_fortran(F,params);
3 % call fortran version and compare results
7 %Writing to file for use by fortran tester
8 write_array(swap23(F),'F');
10 system('./fortran/vec_boundary_conditions_test.exe');
12 Fb = swap23(read_array('Fb'));
15 [~,Fbm]=apply_boundary_conditions([],F,{F});
18 if err > eps(single(1.0))*big(Fbm)*10
19 error('error too large')