>> On Mon, Mar 9, 2009 at 1:03 PM, Kirk, Benjamin (JSC-EG311)
>> wrote:
>>>
>>> OMG, just derive from std::map<>, implement a proper descructor, and be done
>>> with it!!! ;-)
>>
>> I know you are trying to get me to bite... OK it worked.
>
> Really? I could have sworn he was making fun of my
On Mon, 9 Mar 2009, John Peterson wrote:
> On Mon, Mar 9, 2009 at 1:03 PM, Kirk, Benjamin (JSC-EG311)
> wrote:
>>
>> OMG, just derive from std::map<>, implement a proper descructor, and be done
>> with it!!! ;-)
>
> I know you are trying to get me to bite... OK it worked.
Really? I could have
On Mon, Mar 9, 2009 at 1:03 PM, Kirk, Benjamin (JSC-EG311)
wrote:
>
>> Someday I'll have time to get in there and fix those things...
>> someday...
>
> OMG, just derive from std::map<>, implement a proper descructor, and be done
> with it!!! ;-)
I know you are trying to get me to bite... OK it wo
> Someday I'll have time to get in there and fix those things...
> someday...
OMG, just derive from std::map<>, implement a proper descructor, and be done
with it!!! ;-)
-Ben
--
Open Source Business Conference (OSBC),
LOL - yes, I was but the only thing you can deduce from computer
science majors is: we're lazy. That's right. We got into computers
so that they could do our work for us. ;-)
And yes... technically all of our applications here "leak" memory like
crazy but that's only for objects th
On Mon, Mar 9, 2009 at 11:31 AM, Derek Gaston wrote:
> Just to give a different perspective on containers of DenseSubVectors... I
> actually have some of these in my code:
>
> std::map * > _var_Res;
>
> In my case I really don't care if the memory is ever cleaned up because
> these objects live un
Just to give a different perspective on containers of
DenseSubVectors... I actually have some of these in my code:
std::map * > _var_Res;
In my case I really don't care if the memory is ever cleaned up
because these objects live until the program exits anyway
Sometimes the simplest solut
On Mon, Mar 9, 2009 at 10:12 AM, Roy Stogner wrote:
>
> On Mon, 9 Mar 2009, Tim Kroeger wrote:
>
>> What do you guys think about having assignment operators in DenseSubVector
>> and DenseSubMatrix?
>
> I'll wait to hear what Ben and John think, but operator= in the
> STL container sense would be t
On Mon, 9 Mar 2009, Tim Kroeger wrote:
> On Mon, 9 Mar 2009, Roy Stogner wrote:
>
>> I'll wait to hear what Ben and John think, but operator= in the
>> STL container sense would be too misleading, in my opinion. If I set
>> up a DenseSubVector with parent a and an identically sized
>> DenseSubV
On Mon, Mar 9, 2009 at 10:36 AM, Tim Kroeger
wrote:
>
> That doesn't work. Your assignment operator copies the value that the
> reference points to, not the address that is pointed to.
Hehe, oops of course you are right.
--
John
On Mon, Mar 9, 2009 at 10:25 AM, Tim Kroeger
wrote:
>
> I'm not familiar with boost. Perhaps I can do the same with libMesh's
> AutoPtr? I'm not familiar with that too much either, but that would
> at least not require installation of another library.
No containers of auto pointers. They aren'
On Mon, 9 Mar 2009, John Peterson wrote:
> Why does it need to be a pointer? AFAICT it was not a constant
> reference so it can be changed at op=. The following test code
> compiles OK for me. The fact that it's a reference reflects the fact
> that the parent of a dense sub matrix/vector should
On Mon, Mar 9, 2009 at 10:07 AM, Tim Kroeger
wrote:
> On Mon, 9 Mar 2009, John Peterson wrote:
>
>> In optimized mode you get -DNDEBUG, in debug mode you get -DDEBUG, and
>> in devel-mode you get neither.
>
> I didn't even know that a "devel-mode" exists. How do I invoke that? I
> can't find it,
On Mon, 9 Mar 2009, Tim Kroeger wrote:
> Just to be curious: What is the most confusing code in the library then?
Matter of opinion, but in mine it's the FE base class structure.
The standard Curiously Recurring Template Pattern is confusing enough,
our version of it isn't quite the standard, an
On Mon, 9 Mar 2009, Roy Stogner wrote:
> On Mon, 9 Mar 2009, Tim Kroeger wrote:
>
>> What do you guys think about having assignment operators in DenseSubVector
>> and DenseSubMatrix?
>
> I'll wait to hear what Ben and John think, but operator= in the
> STL container sense would be too misleading,
On Mon, Mar 9, 2009 at 8:50 AM, Tim Kroeger
wrote:
> Dear all,
>
> What do you guys think about having assignment operators in DenseSubVector
> and DenseSubMatrix? Actually, I would like to have them since that would
> enable me to use a std::vector. This requires the
> DenseSubVector::parent mem
On Mon, 9 Mar 2009, Tim Kroeger wrote:
> What do you guys think about having assignment operators in DenseSubVector
> and DenseSubMatrix?
I'll wait to hear what Ben and John think, but operator= in the
STL container sense would be too misleading, in my opinion. If I set
up a DenseSubVector wit
On Mon, 9 Mar 2009, John Peterson wrote:
> In optimized mode you get -DNDEBUG, in debug mode you get -DDEBUG, and
> in devel-mode you get neither.
I didn't even know that a "devel-mode" exists. How do I invoke that?
I can't find it, neither in the output of "./configure --help" nor in
the inst
On Mon, Mar 9, 2009 at 9:41 AM, Tim Kroeger
wrote:
> On Mon, 9 Mar 2009, John Peterson wrote:
>
>> On Mon, Mar 9, 2009 at 9:23 AM, Tim Kroeger
>> wrote:
>>>
>>> (Feature-request: Use LIBMESH_DEBUG rather
>>> than DEBUG.)
>>
>> This would probably be ok... since assert's happen when NDEBUG is
>> *
On Mon, 9 Mar 2009, John Peterson wrote:
> On Mon, Mar 9, 2009 at 9:23 AM, Tim Kroeger
> wrote:
>> (Feature-request: Use LIBMESH_DEBUG rather
>> than DEBUG.)
>
> This would probably be ok... since assert's happen when NDEBUG is
> *not* defined if I remember correctly, and don't care about DEBUG.
On Mon, Mar 9, 2009 at 9:23 AM, Tim Kroeger
wrote:
> (Feature-request: Use LIBMESH_DEBUG rather
> than DEBUG.)
This would probably be ok... since assert's happen when NDEBUG is
*not* defined if I remember correctly, and don't care about DEBUG.
Can anyone else comment?
--
John
-
Dear Roy,
On Fri, 6 Mar 2009, Roy Stogner wrote:
>> It was the "solution" vector, not "current_local_solution". I don't know
>> why it crashed there, but that was reproducible. Perhaps I did something
>> else wrong. (In earlier times, when I didn't quite understand the
>> difference between
Dear all,
What do you guys think about having assignment operators in
DenseSubVector and DenseSubMatrix? Actually, I would like to have
them since that would enable me to use a std::vector.
This requires the DenseSubVector::parent member to be a pointer rather
than a reference, but that shou
23 matches
Mail list logo