added reduced MHD code for magnetic island calc