fixing a run-time error. The simulation can now run with monod2d without problem.