Returns true if there are trapped particles on the current pitch angle grid.
pure logical function grid_has_trapped_particles() result(has_trapped) implicit none has_trapped = nlambda > ng2 end function grid_has_trapped_particles