[Mumps2Py:] [58] test file for the Merge command. |
[ Thread Index |
Date Index
| More lists.mumps2py.org/discuss Archives
]
Revision: 58
Author: pgallot
Date: 2008-01-26 20:01:40 +0000 (Sat, 26 Jan 2008)
Log Message:
-----------
test file for the Merge command.
Added Paths:
-----------
trunk/testfiles/simple_merge.mps
Added: trunk/testfiles/simple_merge.mps
===================================================================
--- trunk/testfiles/simple_merge.mps (rev 0)
+++ trunk/testfiles/simple_merge.mps 2008-01-26 20:01:40 UTC (rev 58)
@@ -0,0 +1,14 @@
+ for i=1:1:9 for j=1:1:9 set a(i,j)=i+j
+ for i=100:1:109 s b(i)=i
+
+ merge c=a ; copies all of a to c
+ ZWRITE !,"a:",!,a
+ ZWR !,!,"c:",!,c
+ ZWR !,!,"b (before):",!,b
+
+ merge b(103)=a(3) ; copies a(3) to b(103) and children of a(3) to be children of b(103)
+ ZWR !,!,"b (after):",!,b
+
+ merge d=a(3) ; creates d=a(3); d(1)=a(3,1),...
+ ZWR !,!,"d:",!,d,!,!
+