[PATCH] Fix Engine<..., MultiPatch<..., Remote<Brick> > >::makeOwnCopy

Richard Guenther rguenth at tat.physik.uni-tuebingen.de
Fri May 9 07:44:10 UTC 2003


Hi!

The following patch fixes makeOwnCopy of remote multipatch engines by
moving the ElementProperties specialization for remote engines contained
in the Engine/tests/makeOwnCopy.cpp test (doh!) to the Engine/RemoteEngine.h
file.

Tested by testing the makeOwnCopy testcase and my personal Field based
testcase that failed previously. Ok?

2003 May 09  Richard Guenther <richard.guenther at uni-tuebingen.de>

	* src/Engine/tests/makeOwnCopy.cpp: move ElementProperties
	specialization ...
	src/Engine/RemoteEngine.h: ... here.

Index: src/Engine/RemoteEngine.h
===================================================================
RCS file: /home/pooma/Repository/r2/src/Engine/RemoteEngine.h,v
retrieving revision 1.35
diff -u -r1.35 RemoteEngine.h
--- src/Engine/RemoteEngine.h	5 Mar 2002 16:14:38 -0000	1.35
+++ src/Engine/RemoteEngine.h	9 May 2003 07:40:14 -0000
@@ -2147,6 +2147,16 @@
   }
 };

+//-----------------------------------------------------------------------------
+// Traits class telling RefCountedBlockPointer that this class has
+// shallow semantics and a makeOwnCopy method.
+//-----------------------------------------------------------------------------
+
+template <int Dim, class T, class Eng>
+struct ElementProperties<Engine<Dim, T, Remote<Eng> > >
+  : public MakeOwnCopyProperties<Engine<Dim, T, Remote<Eng> > >
+{ };
+
 // } // namespace Pooma
 ///////////////////////////////////////////////////////////////////////////////

Index: src/Engine/tests/makeOwnCopy.cpp
===================================================================
RCS file: /home/pooma/Repository/r2/src/Engine/tests/makeOwnCopy.cpp,v
retrieving revision 1.1
diff -u -r1.1 makeOwnCopy.cpp
--- src/Engine/tests/makeOwnCopy.cpp	16 May 2001 21:21:07 -0000	1.1
+++ src/Engine/tests/makeOwnCopy.cpp	9 May 2003 07:40:15 -0000
@@ -127,16 +127,6 @@
   Pooma::finalize();
   return ret;
 }
-
-//-----------------------------------------------------------------------------
-// Traits class telling RefCountedBlockPointer that this class has
-// shallow semantics and a makeOwnCopy method.
-//-----------------------------------------------------------------------------
-
-template <int Dim, class T, class Eng>
-struct ElementProperties<Engine<Dim, T, Remote<Eng> > >
-  : public MakeOwnCopyProperties<Engine<Dim, T, Remote<Eng> > >
-{ };

 // ACL:rcsinfo
 // ----------------------------------------------------------------------




More information about the pooma-dev mailing list