Fixed IGRF bug

Fixed a bug in IGRF routine for different size input grids