code for wem simulations on octocore