An Efficient Geometric Integrator for Thermostatted Anti-/Ferromagnetic Models