Hi,
A few things:
One, you do not need to use a FixDt to use temperature anymore, you can use adaptive timestepping instead. Just don't set a FixDt.
Two, your simulation is very large, but most of it is empty space. You will reduce the time considerably by shrinking the simulation box, if that is possible. If you absolutely must use a large box because you're trying to save B_demag, I recommend doing the simulation with a small box first, and save the magnetization. Then do a separate simulation where you load the magnetization into a full large box only at the points you actually need it, and save the B_demag from that. If you do actually need to keep the full simulation size as is, unfortunately the simulation is going to pretty slow, it's a large system size.
Third, doing 2 relax()'s will be rather slow, especially with no applied field. Is there a specific reason for doing it twice? This seems likely to be redundant.
Fourth, the exchange length in your system is ~5nm. You may be able to get away with a larger cell size. Based on the exchange length, ~2.5nm would work- however, this might lead to issues with a larger staircase effect at the edges of the ellipse, so you may have to stick with your current cellsize depending on how sensitive what you are studying is to the discretization at the edges of the ellipse. The edgesmooth setting may help with this. I would guess you probably want to stay at 1nm, but I will mention it for completeness.
Last, rather than doing 100e-9 ns of run, I would recommend doing 10ns (or however long you're interested in for the actual dynamics). Then relax/minimize to get to equilibrium, and then switch back to run for the dynamics for the 10ns after the field is off. (You will need to be a little careful with this, as the temperature will be disabled during the relax/minimize, so perhaps you do something like run(10e-9), relax, run(10e-9), turn off B_ext, then the final run(20e-9). But it is probably still worth doing with how much time it saves, that would still cut off ~80ns with no meaningful impact on the results)
Best,
Josh L.