SimPEG.meta.MultiprocessingRepeatedSimulation#
- class SimPEG.meta.MultiprocessingRepeatedSimulation(simulation, mappings, n_processes=None)[source]#
Bases:
MultiprocessingMetaSimulation,RepeatedSimulationA multiprocessing version of the
RepeatedSimulation.This class makes use of a single simulation that is copied to each internal process, but only once per process.
This simulation shares internals with the
MultiprocessingMetaSimulation. class, as such please see that documentation for details regarding how to properly use multiprocessing on your operating system.- Parameters:
- simulation
SimPEG.simulation.BaseSimulation The simulation to use repeatedly with different mappings.
- mappings(
n_sim)listofSimPEG.maps.IdentityMap The list of different mappings to use.
- n_processes
optional The number of processes to spawn internally. This will default to multiprocessing.cpu_count(). The number of processes spawned will be the minimum of this number and the number of simulations.
- simulation