Example of bad behavior from particle boundary conditions
Steve Nolen
drnuke at lanl.gov
Wed Apr 4 19:53:08 UTC 2001
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
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Bounce.cpp
Type: application/octet-stream
Size: 6402 bytes
Desc: not available
URL: <http://sourcerytools.com/pipermail/pooma-dev/attachments/20010404/ef4a891d/attachment.obj>
More information about the pooma-dev
mailing list