You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Some of the energy terms (e.g. ZhangLi.u) can be defined with a scalar (dim=1) field. However, when writing the input for OOMMF the field is saved with extend_scalar=True (which repeats the single component three times). For ZhangLi.u OOMMF fails because it expects a scalar field but reads a vector field.
@marijanbeg Is there any casy where we need extend_scalar=True in the input for OOMMF (because we start from a scalar field where OOMMF expects a vector field)?
The text was updated successfully, but these errors were encountered:
Some of the energy terms (e.g.
ZhangLi.u
) can be defined with a scalar (dim=1
) field. However, when writing the input for OOMMF the field is saved withextend_scalar=True
(which repeats the single component three times). ForZhangLi.u
OOMMF fails because it expects a scalar field but reads a vector field.The relevant parts of the code:
oommfc/oommfc/scripts/evolver.py
Lines 24 to 25 in 547ece4
oommfc/oommfc/scripts/util.py
Lines 78 to 80 in 547ece4
@marijanbeg Is there any casy where we need
extend_scalar=True
in the input for OOMMF (because we start from a scalar field where OOMMF expects a vector field)?The text was updated successfully, but these errors were encountered: