-
Notifications
You must be signed in to change notification settings - Fork 21
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix display of face array classes + overload single.m and double.m
- Loading branch information
1 parent
3c46380
commit a8d5673
Showing
3 changed files
with
26 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
function r = double(p) | ||
%overloaded gcmfaces double function : | ||
% simply calls double double function for each face data | ||
|
||
r=p; | ||
for iFace=1:r.nFaces; | ||
iF=num2str(iFace); | ||
eval(['r.f' iF '=double(p.f' iF ');']); | ||
end; | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
function r = single(p) | ||
%overloaded gcmfaces single function : | ||
% simply calls double single function for each face data | ||
|
||
r=p; | ||
for iFace=1:r.nFaces; | ||
iF=num2str(iFace); | ||
eval(['r.f' iF '=single(p.f' iF ');']); | ||
end; | ||
|
||
|