invalid-068.mdl 652 B

123456789101112131415161718192021
  1. /****************************************************************************
  2. * Parser error 068: TRIGGER and COUNT in the same statement
  3. *
  4. * Expect an error on the line:
  5. * COUNT[m, WORLD] * TRIGGER[m, WORLD]
  6. *
  7. * Author: Jed Wing <[email protected]>
  8. * Date: 2008-04-04
  9. ****************************************************************************/
  10. TIME_STEP = 1e-6
  11. countdir = "dat/invalid-068/"
  12. DEFINE_MOLECULE m { DIFFUSION_CONSTANT_3D = 1e-6 }
  13. INSTANTIATE world OBJECT { box1 BOX { CORNERS = [0, 0, 0], [1, 1, 1] } }
  14. REACTION_DATA_OUTPUT
  15. {
  16. {
  17. COUNT[m, world.box1] * TRIGGER[m, world.box1]
  18. } => countdir & "counting-1.txt"
  19. }