  An implementation of a lattice-based approach for computing the topological
skyrmion charge is provided for the open source micromagnetics code MuMax3. Its
accuracy with respect to an existing method based on finite difference
derivatives is compared for three different test cases. The lattice-based
approach is found to be more robust for finite-temperature dynamics and for
nucleation and annihilation processes in extended systems.
