Dear Guoqiang,
When the mesh changes, you cannot use the restart files any more: data is saved as one vector per mesh node, and as your mesh node order is different in the second geometry (probably not even the same number of nodes?), this fails.
You have two options:
(i) to write code that populates the new magnetisation based on the old one manually. Commands you can use are summarised at
http://nmag.soton.ac.uk/nmag/current/manual/singlehtml/manual.html#obtaining-and-setting-subfield-data
Conceptually, you have to create two simulation objects in the same file: the first one is the first geometry and allows you to read the data, the second is the new geometry, and you want to set m using set_m() in this simulation based on the m in the first simulation object.
(ii) Another option would be to create the second mesh using your own code from the first mesh, and just to translate the relevant nodes in space. You may find the ascii version of the nmesh format useful for this:
http://nmag.soton.ac.uk/nmag/current/manual/html/finite_element_mesh_generation.html#ascii-nmesh
Regards,
Hans
>
> Best regards
>
> Guoqiang Xie
>
>