42 |
v1={v0}; |
v1={v0}; |
43 |
elseif strcmp(mygrid.fileFormat,'cube'); |
elseif strcmp(mygrid.fileFormat,'cube'); |
44 |
for ii=1:6; v1{ii}=v0(n2*(ii-1)+[1:n2],:,:,:,:); end; |
for ii=1:6; v1{ii}=v0(n2*(ii-1)+[1:n2],:,:,:,:); end; |
45 |
elseif strcmp(mygrid.fileFormat,'compact'); |
elseif strcmp(mygrid.fileFormat,'compact')|strcmp(mygrid.fileFormat,'nctiles'); |
46 |
v00=reshape(v0,[n1*n2 n3*n4*n5]); |
v00=reshape(v0,[n1*n2 n3*n4*n5]); |
47 |
i0=0; i1=0; |
i0=0; i1=0; |
48 |
for iFace=1:mygrid.nFaces; |
for iFace=1:mygrid.nFaces; |
66 |
elseif strcmp(mygrid.fileFormat,'cube'); |
elseif strcmp(mygrid.fileFormat,'cube'); |
67 |
v1=zeros(n2*6,n2,n3,n4,n5); |
v1=zeros(n2*6,n2,n3,n4,n5); |
68 |
for ii=1:6; v1([1:n2]+(ii-1)*n2,:,:,:,:)=v0{ii}; end; |
for ii=1:6; v1([1:n2]+(ii-1)*n2,:,:,:,:)=v0{ii}; end; |
69 |
elseif strcmp(mygrid.fileFormat,'compact'); |
elseif strcmp(mygrid.fileFormat,'compact')|strcmp(mygrid.fileFormat,'nctiles'); |
70 |
|
|
71 |
% is there a reason for this? |
% is there a reason for this? |
72 |
% v0_faces=v0; clear v0; |
% v0_faces=v0; clear v0; |