Grid search inside the model block

The best I could find was Integration function - dynare v4?