Parallelisation of electromagnetic simulation codes