# Simulation file
# This file is used to test and demonstrate the ifchange commands

graphics opengl

dim 3
boundaries x 0 100 r
boundaries y 0 100 r
boundaries z 0 100 r

species red blue

time_start 0
time_stop 500
time_step 0.1

difc red 1
difc blue 1
color red red
color blue blue

mol 100 red u u u
mol 100 blue u u u

reaction rxn red + blue -> red + red 10

output_files stdout
cmd e ifchange red ! 0 echo stdout "red changed\n"

end_file

