Fix to amrclaw that showed up in chile2010 test and improved advanc.f

A bug in baseCheck.f showed up in running geoclaw/examples/tsunami/chile2010 test problem.

advanc.f is improved to use stack based storage for fluxes.