1 function err=hexa_fortran(A,X,u0)
3 [Kloc,Floc,Jg]=hexa(A,X,u0)
10 write_array(iflags,'iflags')
12 system('./fortran/hexa_test.exe')
14 Kloc_f=read_array('Kloc');
15 Floc_f=read_array('Floc');
16 Jg_f=read_array('Jg');
19 Kloc_err = norm(Kloc-Kloc_f,1)
23 Floc_err = norm(Floc-Floc_f,1)
26 Jg_err = norm(Jg-Jg_f,1)
31 % compare the result of matlab hexa and fortran hexa