yade-dev team mailing list archive
-
yade-dev team
-
Mailing list archive
-
Message #12624
[Branch ~yade-pkg/yade/git-trunk] Rev 3844: Interaction::reset explicitly resets also its functorCache
------------------------------------------------------------
revno: 3844
committer: Jan Stransky <jan.stransky@xxxxxxxxxxx>
timestamp: Tue 2016-04-19 03:26:04 +0200
message:
Interaction::reset explicitly resets also its functorCache
modified:
core/Interaction.cpp
--
lp:yade
https://code.launchpad.net/~yade-pkg/yade/git-trunk
Your team Yade developers is subscribed to branch lp:yade.
To unsubscribe from this branch go to https://code.launchpad.net/~yade-pkg/yade/git-trunk/+edit-subscription
=== modified file 'core/Interaction.cpp'
--- core/Interaction.cpp 2014-10-15 06:44:01 +0000
+++ core/Interaction.cpp 2016-04-19 01:26:04 +0000
@@ -25,6 +25,9 @@
void Interaction::reset(){
geom=shared_ptr<IGeom>();
phys=shared_ptr<IPhys>();
+ functorCache.geom = nullptr;
+ functorCache.phys = nullptr;
+ functorCache.constLaw = nullptr;
init();
}