We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6cc3e71 commit 5e7c149Copy full SHA for 5e7c149
1 file changed
scripts/mpi_running.py
@@ -12,6 +12,7 @@
12
seed = 8422
13
np.random.seed(seed)
14
15
+
16
def parallel_eig(diag, off_diag, nprocs):
17
print("Spawning a communicator")
18
comm = MPI.COMM_SELF.Spawn(sys.executable, args=["scripts/run.py"], maxprocs=nprocs)
@@ -87,4 +88,4 @@ def compute_eigvals(A, n_procs):
87
88
print(f"The maximum error between real and computed eigenvalues is {max_error}")
89
90
if max_error < 1e-8:
- print("Pretty small, huh?")
91
+ print("Pretty small, huh?")
0 commit comments