repo.or.cz
/
wrf-fire-matlab.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
history
|
raw
|
HEAD
fix
[wrf-fire-matlab.git]
/
femwind
/
ndt_mult_fortran.m
blob
7312c4496c985c0beee9a7906041496335af790d
1
function err=ndt_mult_fortran(kmat,u)
2
3
% compare the result of matlab ndt_mult and fortran ndt_mult
4
5
y=ndt_mult(kmat,u);
6
7
write_array_nd(kmat,'kmat');
8
write_array_nd(u,'u');
9
10
system('./fortran/ndt_mult_test.exe');
11
12
y_f=read_array_nd('y');
13
14
err=norm(y(:)-y_f(:),inf)
15
16
17
end