Hi,
while using the integration package I often get warnings about
"meshdom" being obsolete.
The attached patch substitutes meshgrid for any occurrence of meshdom,
while using a dispatch to preserve backward compatibility.
Does anyone have any objections to committing the patch?
c.
Index: PKG_ADD
===================================================================
--- PKG_ADD (revision 5577)
+++ PKG_ADD (working copy)
@@ -5,3 +5,7 @@
addpath (fullfile (fileparts(mfilename("fullpath")),dirlist{ii}))
end
end
+# Preserve compatibility with old versions of Octave
+if (!exist ("meshgrid","file") & exist ("meshdom","file"))
+ dispatch("meshdom","meshgrid","any")
+end
\ No newline at end of file
Index: inst/crule2d.m
===================================================================
--- inst/crule2d.m (revision 5577)
+++ inst/crule2d.m (working copy)
@@ -4,9 +4,9 @@
%
[bpxv,wfxv]=crule(nquadx);
[bpyv,wfyv]=crule(nquady);
-% [bpx,bpy]=meshgrid(bpxv,bpyv);
-% [wfx,wfy]=meshgrid(wfxv,wfyv);
- [bpx,bpy]=meshdom(bpxv,bpyv);
- [wfx,wfy]=meshdom(wfxv,wfyv);
+ [bpx,bpy]=meshgrid(bpxv,bpyv);
+ [wfx,wfy]=meshgrid(wfxv,wfyv);
+% [bpx,bpy]=meshdom(bpxv,bpyv);
+% [wfx,wfy]=meshdom(wfxv,wfyv);
wfxy=wfx.*wfy;
endfunction
Index: inst/grule2d.m
===================================================================
--- inst/grule2d.m (revision 5577)
+++ inst/grule2d.m (working copy)
@@ -4,9 +4,9 @@
%
[bpxv,wfxv]=grule(nquadx);
[bpyv,wfyv]=grule(nquady);
-% [bpx,bpy]=meshgrid(bpxv,bpyv);
-% [wfx,wfy]=meshgrid(wfxv,wfyv);
- [bpx,bpy]=meshdom(bpxv,bpyv);
- [wfx,wfy]=meshdom(wfxv,wfyv);
+ [bpx,bpy]=meshgrid(bpxv,bpyv);
+ [wfx,wfy]=meshgrid(wfxv,wfyv);
+% [bpx,bpy]=meshdom(bpxv,bpyv);
+% [wfx,wfy]=meshdom(wfxv,wfyv);
wfxy=wfx.*wfy;
endfunction
------------------------------------------------------------------------------
Apps built with the Adobe(R) Flex(R) framework and Flex Builder(TM) are
powering Web 2.0 with engaging, cross-platform capabilities. Quickly and
easily build your RIAs with Flex Builder, the Eclipse(TM)based development
software that enables intelligent coding and step-through debugging.
Download the free 60 day trial. http://p.sf.net/sfu/www-adobe-com
_______________________________________________
Octave-dev mailing list
Octave-dev@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/octave-dev