freepooma-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH] Initialize PatchSwapLayout correctly


From: Jeffrey D. Oldham
Subject: Re: [PATCH] Initialize PatchSwapLayout correctly
Date: Wed, 14 Jul 2004 14:43:00 -0700
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.6) Gecko/20040413 Debian/1.6-5

Richard Guenther wrote:

Cures SEGFAULTing particle tests.

Ok?

Richard.


2004Jul14  Richard Guenther <address@hidden>

    * src/Particles/PatchSwapLayout.h: initialize contextSizes_m
    properly in default constructor.

Yes, this cures a distinct lack of symmetry in the PatchSwapLayout constructors.

------------------------------------------------------------------------

Index: PatchSwapLayout.h
===================================================================
RCS file: /home/pooma/Repository/r2/src/Particles/PatchSwapLayout.h,v
retrieving revision 1.21
diff -u -u -r1.21 PatchSwapLayout.h
--- PatchSwapLayout.h   14 Jul 2004 15:44:59 -0000      1.21
+++ PatchSwapLayout.h   14 Jul 2004 20:19:21 -0000
@@ -587,7 +587,10 @@
  //============================================================

  PatchSwapLayout()
-    : patchInfo_m(0) {}
+    : patchInfo_m(0)
+    {
+      contextSizes_m.initialize(Pooma::contexts());
+    }

  // The main constructor takes a reference to the Layout_t type
  // that we will use in the swap() routine.


--
Jeffrey D. Oldham
address@hidden

reply via email to

[Prev in Thread] Current Thread [Next in Thread]