added analytical sponge code for latest ROMS