08-find_corresponding_region.mdl 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637
  1. /****************************************************************************
  2. * Regression test 08: Assertion fails when deep copying certain objects.
  3. *
  4. * This is a bug encountered by Daniel Sherwood (2008-04-24). When a
  5. * release site is cloned into a metaobject and the release site referred to
  6. * a region in the original template object, and the fully qualified name of
  7. * the release site was longer than the fully qualified name of the region,
  8. * an assertion failure would occur due to an incorrect length calculation.
  9. *
  10. * Failure: MCell aborts (SIGABRT)
  11. * Success: MCell does not crash
  12. *
  13. * Author: Jed Wing <[email protected]>
  14. * Date: 2008-12-05
  15. ****************************************************************************/
  16. ITERATIONS = 1
  17. TIME_STEP = 1e-6
  18. DEFINE_MOLECULE a { DIFFUSION_CONSTANT_3D = 1e-6 }
  19. case1 OBJECT {
  20. kosmos BOX {
  21. CORNERS = [0, 0, 0], [1, 1, 1]
  22. }
  23. release_site_p1 RELEASE_SITE {
  24. SHAPE = case1.kosmos
  25. MOLECULE = a
  26. NUMBER_TO_RELEASE = 100
  27. }
  28. }
  29. INSTANTIATE multiverse OBJECT {
  30. instance OBJECT case1 {}
  31. }