summaryrefslogtreecommitdiff
path: root/lj_matrix.py
diff options
context:
space:
mode:
authorDavid Luevano <55825613+luevano@users.noreply.github.com>2019-12-12 23:06:10 -0700
committerDavid Luevano <55825613+luevano@users.noreply.github.com>2019-12-12 23:06:10 -0700
commit651ec37ba8efa8fc1ffe3f490182e68bc468969d (patch)
treef3ecbe091555be26568dbba36fd5c5878b19ca47 /lj_matrix.py
parent91bd79feefa7b1bcfae79b4efd39955a6e301391 (diff)
First working parallelization test
Diffstat (limited to 'lj_matrix.py')
-rw-r--r--lj_matrix.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/lj_matrix.py b/lj_matrix.py
index 55e729c56..5cb1b5a8d 100644
--- a/lj_matrix.py
+++ b/lj_matrix.py
@@ -188,10 +188,10 @@ def lj_matrix_multiple(mol_data,
ljm_data = np.array([lj_matrix(mol, nc, max_len, as_eig, bohr_radius_units)
for mol, nc in zip(mol_data, nc_data)])
- if pipe:
- pipe.send(ljm_data)
-
toc = time.perf_counter()
printc('\tL-JM calculation took {:.4f} seconds.'.format(toc-tic), 'GREEN')
+ if pipe:
+ pipe.send(ljm_data)
+
return ljm_data