[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Example of bad behavior from particle boundary conditions
From: |
Steve Nolen |
Subject: |
Example of bad behavior from particle boundary conditions |
Date: |
Wed, 4 Apr 2001 13:53:08 -0600 |
I have made a small adjustment to 'Bounce.cpp' to show the problem i'm
seeing. i am compiling under Metrowerks 6.1 for the PC. if I move the new
call, addBCs, around it exhibits different behavior.
i believe the problem may originate from a call in ParticleBC.h shown below.
// Factory method to create the boundary condition.
template <class Subject, class Object>
ParticleBCItem* create(const Subject& s, const Object& o) const
{
typedef ParticleBC<Subject,Object,BCType> PBC_t;
return new PBC_t(s, o, static_cast<const BCType&>(*this));
}
the pointer is stored in a stl vector of bc pointers within the particle
base class.
something about this doesn't look quite right.
-steve
Bounce.cpp
Description: Binary data
- Example of bad behavior from particle boundary conditions,
Steve Nolen <=