17-uninstantiated_reference_crash.mdl 737 B

123456789101112131415161718192021222324252627
  1. /****************************************************************************
  2. * Regression test 17: An instantiated release site can reference an
  3. * uninstantiated object as its shape, leading to a crash.
  4. *
  5. * Failure: crash (INTERNAL ERROR or seg fault)
  6. * Success: run exits with normal failure code
  7. *
  8. * Author: Jed Wing <[email protected]>
  9. * Date: 2009-06-15
  10. ****************************************************************************/
  11. TIME_STEP = 1e-6
  12. ITERATIONS = 1
  13. DEFINE_MOLECULE a { DIFFUSION_CONSTANT_3D = 2e-6 }
  14. uninstantiated BOX {
  15. CORNERS = [0, 0, 0], [1, 1, 1]
  16. }
  17. INSTANTIATE world OBJECT {
  18. rs RELEASE_SITE {
  19. SHAPE = uninstantiated
  20. MOLECULE = a
  21. NUMBER_TO_RELEASE = 100
  22. }
  23. }