Dear Vivek Unfortunately I couldn't get your files from the attached file. Could you attach them in a text form, so I can try to see where is the problem? Does the code crash also without electric field? Paolo