[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[ESPResSo-devel] Bond-deleting strangeness
From: |
Rudolf Weeber |
Subject: |
[ESPResSo-devel] Bond-deleting strangeness |
Date: |
Wed, 7 Jan 2015 14:42:27 +0100 |
User-agent: |
Mutt/1.5.21 (2010-09-15) |
Hi,
I encountered very strange behaviour when deleting individual bonds from
particles which have more than one bond.
In some cases, the code works correctly, in some cases, the wrong bond seems to
be deleted and in some cases, the bond list gets screwed up completely.
The code, which is supposed to delete the bond is in
particle_data.cpp:try_delete_bond()
The following code illustrates the deletion of a wrong bond.
inter 0 harmonic 1 0
inter 1 angle_harmonic 1 0
part 0 pos 0 0 0
part 1 pos 0 0 0
part 2 pos 0 0 0
part 0 bond 0 1 bond 0 2
puts "[part 0 print bond]"
{ {0 1} {0 2} }
part 0 bond delete 0 1
puts "[part 0 print bond]"
{ {0 2} } # Which is what I expected
puts ""
part 0 bond delete
part 0 bond 0 1 bond 0 2 bond 1 1 2
puts "[part 0 print bond]"
{ {0 1} {0 2} {1 1 2} }
part 0 bond delete 0 1
puts "[part 0 print bond]"
{ {0 1} {1 1 2} } # Hm?
Can anyone give me a hint?
Thanks!
Regards, Rudolf
- [ESPResSo-devel] Bond-deleting strangeness,
Rudolf Weeber <=
- Re: [ESPResSo-devel] Bond-deleting strangeness, Rudolf Weeber, 2015/01/07
- Re: [ESPResSo-devel] Bond-deleting strangeness, Florian Weik, 2015/01/07
- Re: [ESPResSo-devel] Bond-deleting strangeness, Axel Arnold, 2015/01/07
- Re: [ESPResSo-devel] Bond-deleting strangeness, Florian Weik, 2015/01/07
- Re: [ESPResSo-devel] Bond-deleting strangeness, Axel Arnold, 2015/01/07
- Re: [ESPResSo-devel] Bond-deleting strangeness, Ulf Schiller, 2015/01/07
- Re: [ESPResSo-devel] Bond-deleting strangeness, Florian Weik, 2015/01/07
- Re: [ESPResSo-devel] Bond-deleting strangeness, Rudolf Weeber, 2015/01/08
- Re: [ESPResSo-devel] Bond-deleting strangeness, Axel Arnold, 2015/01/08
- Re: [ESPResSo-devel] Bond-deleting strangeness, Florian Weik, 2015/01/08