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
separated constant part in module_w_assembly.f90
[wrf-fire-matlab.git]
/
femwind
/
swap23.m
blob
788cc59f227382c509903c099a0fae157daa5d42
1
function u=swap23(v)
2
% swap indices to/from WRF ikj ordering
3
% arrays of rank up to 4
4
[n1,n2,n3,n4]=size(v);
5
u=zeros(n1,n3,n2,n4);
6
for l=1:n4
7
for k=1:n3
8
for j=1:n2
9
for i=1:n1
10
u(i,k,j,l)=v(i,j,k,l);
11
end
12
end
13
end
14
end
15
end
16