Gyrokinetic and gyrofluid investigation of magnetic islands in tokamaks