Skip to content

Commit

Permalink
Typo in solver (#43)
Browse files Browse the repository at this point in the history
* Update solver.py, fix typo
  • Loading branch information
loganbvh authored Oct 3, 2023
1 parent d6d0440 commit af46b3c
Show file tree
Hide file tree
Showing 8 changed files with 23 additions and 23 deletions.
6 changes: 3 additions & 3 deletions docs/notebooks/logo.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -233,7 +233,7 @@
"name": "stderr",
"output_type": "stream",
"text": [
"Constructing Voronoi polygons: 100%|██████████████████████████████████████████████████████████████████████████| 4347/4347 [00:00<00:00, 22681.73it/s]\n"
"Constructing Voronoi polygons: 100%|██████████████████████████████████████████████████████████████████████████| 4347/4347 [00:00<00:00, 21773.64it/s]\n"
]
},
{
Expand Down Expand Up @@ -276,7 +276,7 @@
"name": "stderr",
"output_type": "stream",
"text": [
"Simulating: 100%|███████████████████████████████████████████████████████████████████████████████████████████████▉| 800/800 [01:55<00:00, 6.90tau/s ]\n"
"Simulating: 100%|███████████████████████████████████████████████████████████████████████████████████████████████▉| 800/800 [01:58<00:00, 6.75tau/s ]\n"
]
}
],
Expand Down Expand Up @@ -9471,7 +9471,7 @@
{
"data": {
"text/html": [
"<table><tr><th>Software</th><th>Version</th></tr><tr><td>tdgl</td><td>0.6.0; git revision e6d3811 [2023-09-27]</td></tr><tr><td>Numpy</td><td>1.24.3</td></tr><tr><td>SciPy</td><td>1.10.1</td></tr><tr><td>matplotlib</td><td>3.7.1</td></tr><tr><td>cupy</td><td>None</td></tr><tr><td>numba</td><td>0.57.1</td></tr><tr><td>IPython</td><td>8.14.0</td></tr><tr><td>Python</td><td>3.10.11 | packaged by conda-forge | (main, May 10 2023, 19:01:19) [Clang 14.0.6 ]</td></tr><tr><td>OS</td><td>posix [darwin]</td></tr><tr><td>Number of CPUs</td><td>Physical: 10, Logical: 10</td></tr><tr><td>BLAS Info</td><td>OPENBLAS</td></tr><tr><td colspan='2'>Wed Sep 27 14:58:29 2023 PDT</td></tr></table>"
"<table><tr><th>Software</th><th>Version</th></tr><tr><td>tdgl</td><td>0.6.1; git revision 9572d48 [2023-10-02]</td></tr><tr><td>Numpy</td><td>1.24.3</td></tr><tr><td>SciPy</td><td>1.10.1</td></tr><tr><td>matplotlib</td><td>3.7.1</td></tr><tr><td>cupy</td><td>None</td></tr><tr><td>numba</td><td>0.57.1</td></tr><tr><td>IPython</td><td>8.14.0</td></tr><tr><td>Python</td><td>3.10.11 | packaged by conda-forge | (main, May 10 2023, 19:01:19) [Clang 14.0.6 ]</td></tr><tr><td>OS</td><td>posix [darwin]</td></tr><tr><td>Number of CPUs</td><td>Physical: 10, Logical: 10</td></tr><tr><td>BLAS Info</td><td>OPENBLAS</td></tr><tr><td colspan='2'>Mon Oct 02 16:52:12 2023 PDT</td></tr></table>"
],
"text/plain": [
"<IPython.core.display.HTML object>"
Expand Down
2 changes: 1 addition & 1 deletion docs/notebooks/mesh.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
"name": "stderr",
"output_type": "stream",
"text": [
"Constructing Voronoi polygons: 100%|████████████████████████████████████████████████████████████████████████████| 525/525 [00:00<00:00, 21170.12it/s]\n"
"Constructing Voronoi polygons: 100%|████████████████████████████████████████████████████████████████████████████| 525/525 [00:00<00:00, 21066.62it/s]\n"
]
}
],
Expand Down
8 changes: 4 additions & 4 deletions docs/notebooks/polygons.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -469,9 +469,9 @@
"name": "stderr",
"output_type": "stream",
"text": [
"Constructing Voronoi polygons: 100%|████████████████████████████████████████████████████████████████████████████| 459/459 [00:00<00:00, 16417.53it/s]\n",
"Constructing Voronoi polygons: 100%|████████████████████████████████████████████████████████████████████████████| 459/459 [00:00<00:00, 17100.75it/s]\n",
"Constructing Voronoi polygons: 100%|████████████████████████████████████████████████████████████████████████████| 459/459 [00:00<00:00, 17710.51it/s]\n"
"Constructing Voronoi polygons: 100%|████████████████████████████████████████████████████████████████████████████| 459/459 [00:00<00:00, 16324.68it/s]\n",
"Constructing Voronoi polygons: 100%|████████████████████████████████████████████████████████████████████████████| 459/459 [00:00<00:00, 17198.83it/s]\n",
"Constructing Voronoi polygons: 100%|████████████████████████████████████████████████████████████████████████████| 459/459 [00:00<00:00, 16808.86it/s]\n"
]
},
{
Expand Down Expand Up @@ -520,7 +520,7 @@
{
"data": {
"text/html": [
"<table><tr><th>Software</th><th>Version</th></tr><tr><td>tdgl</td><td>0.6.0; git revision e6d3811 [2023-09-27]</td></tr><tr><td>Numpy</td><td>1.24.3</td></tr><tr><td>SciPy</td><td>1.10.1</td></tr><tr><td>matplotlib</td><td>3.7.1</td></tr><tr><td>cupy</td><td>None</td></tr><tr><td>numba</td><td>0.57.1</td></tr><tr><td>IPython</td><td>8.14.0</td></tr><tr><td>Python</td><td>3.10.11 | packaged by conda-forge | (main, May 10 2023, 19:01:19) [Clang 14.0.6 ]</td></tr><tr><td>OS</td><td>posix [darwin]</td></tr><tr><td>Number of CPUs</td><td>Physical: 10, Logical: 10</td></tr><tr><td>BLAS Info</td><td>OPENBLAS</td></tr><tr><td colspan='2'>Wed Sep 27 14:54:08 2023 PDT</td></tr></table>"
"<table><tr><th>Software</th><th>Version</th></tr><tr><td>tdgl</td><td>0.6.1; git revision 9572d48 [2023-10-02]</td></tr><tr><td>Numpy</td><td>1.24.3</td></tr><tr><td>SciPy</td><td>1.10.1</td></tr><tr><td>matplotlib</td><td>3.7.1</td></tr><tr><td>cupy</td><td>None</td></tr><tr><td>numba</td><td>0.57.1</td></tr><tr><td>IPython</td><td>8.14.0</td></tr><tr><td>Python</td><td>3.10.11 | packaged by conda-forge | (main, May 10 2023, 19:01:19) [Clang 14.0.6 ]</td></tr><tr><td>OS</td><td>posix [darwin]</td></tr><tr><td>Number of CPUs</td><td>Physical: 10, Logical: 10</td></tr><tr><td>BLAS Info</td><td>OPENBLAS</td></tr><tr><td colspan='2'>Mon Oct 02 16:47:42 2023 PDT</td></tr></table>"
],
"text/plain": [
"<IPython.core.display.HTML object>"
Expand Down
4 changes: 2 additions & 2 deletions docs/notebooks/py-mesh.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,7 @@
"name": "stderr",
"output_type": "stream",
"text": [
"Constructing Voronoi polygons: 100%|██████████████████████████████████████████████████████████████████████████| 4190/4190 [00:00<00:00, 22042.31it/s]\n"
"Constructing Voronoi polygons: 100%|██████████████████████████████████████████████████████████████████████████| 4190/4190 [00:00<00:00, 22005.96it/s]\n"
]
},
{
Expand Down Expand Up @@ -361,7 +361,7 @@
{
"data": {
"text/html": [
"<table><tr><th>Software</th><th>Version</th></tr><tr><td>tdgl</td><td>0.6.0; git revision e6d3811 [2023-09-27]</td></tr><tr><td>Numpy</td><td>1.24.3</td></tr><tr><td>SciPy</td><td>1.10.1</td></tr><tr><td>matplotlib</td><td>3.7.1</td></tr><tr><td>cupy</td><td>None</td></tr><tr><td>numba</td><td>0.57.1</td></tr><tr><td>IPython</td><td>8.14.0</td></tr><tr><td>Python</td><td>3.10.11 | packaged by conda-forge | (main, May 10 2023, 19:01:19) [Clang 14.0.6 ]</td></tr><tr><td>OS</td><td>posix [darwin]</td></tr><tr><td>Number of CPUs</td><td>Physical: 10, Logical: 10</td></tr><tr><td>BLAS Info</td><td>OPENBLAS</td></tr><tr><td colspan='2'>Wed Sep 27 14:53:58 2023 PDT</td></tr></table>"
"<table><tr><th>Software</th><th>Version</th></tr><tr><td>tdgl</td><td>0.6.1; git revision 9572d48 [2023-10-02]</td></tr><tr><td>Numpy</td><td>1.24.3</td></tr><tr><td>SciPy</td><td>1.10.1</td></tr><tr><td>matplotlib</td><td>3.7.1</td></tr><tr><td>cupy</td><td>None</td></tr><tr><td>numba</td><td>0.57.1</td></tr><tr><td>IPython</td><td>8.14.0</td></tr><tr><td>Python</td><td>3.10.11 | packaged by conda-forge | (main, May 10 2023, 19:01:19) [Clang 14.0.6 ]</td></tr><tr><td>OS</td><td>posix [darwin]</td></tr><tr><td>Number of CPUs</td><td>Physical: 10, Logical: 10</td></tr><tr><td>BLAS Info</td><td>OPENBLAS</td></tr><tr><td colspan='2'>Mon Oct 02 16:47:33 2023 PDT</td></tr></table>"
],
"text/plain": [
"<IPython.core.display.HTML object>"
Expand Down
12 changes: 6 additions & 6 deletions docs/notebooks/quickstart.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -277,7 +277,7 @@
"name": "stderr",
"output_type": "stream",
"text": [
"Constructing Voronoi polygons: 100%|██████████████████████████████████████████████████████████████████████████| 4633/4633 [00:00<00:00, 21408.45it/s]\n"
"Constructing Voronoi polygons: 100%|██████████████████████████████████████████████████████████████████████████| 4633/4633 [00:00<00:00, 21986.42it/s]\n"
]
}
],
Expand Down Expand Up @@ -368,8 +368,8 @@
"name": "stderr",
"output_type": "stream",
"text": [
"Thermalizing: 100%|█████████████████████████████████████████████████████████████████████████████████████████████▉| 100/100 [00:09<00:00, 10.37tau/s ]\n",
"Simulating: 100%|███████████████████████████████████████████████████████████████████████████████████████████████▉| 150/150 [00:26<00:00, 5.70tau/s ]\n"
"Thermalizing: 100%|█████████████████████████████████████████████████████████████████████████████████████████████▉| 100/100 [00:09<00:00, 10.57tau/s ]\n",
"Simulating: 100%|███████████████████████████████████████████████████████████████████████████████████████████████▉| 150/150 [00:24<00:00, 6.06tau/s ]\n"
]
}
],
Expand Down Expand Up @@ -7478,7 +7478,7 @@
"name": "stderr",
"output_type": "stream",
"text": [
"Simulating: 100%|███████████████████████████████████████████████████████████████████████████████████████████████▉| 200/200 [00:50<00:00, 3.94tau/s ]\n"
"Simulating: 100%|███████████████████████████████████████████████████████████████████████████████████████████████▉| 200/200 [00:47<00:00, 4.18tau/s ]\n"
]
}
],
Expand Down Expand Up @@ -12256,7 +12256,7 @@
"name": "stderr",
"output_type": "stream",
"text": [
"Simulating: 100%|███████████████████████████████████████████████████████████████████████████████████████████████▉| 200/200 [00:39<00:00, 5.01tau/s ]\n"
"Simulating: 100%|███████████████████████████████████████████████████████████████████████████████████████████████▉| 200/200 [00:42<00:00, 4.67tau/s ]\n"
]
}
],
Expand Down Expand Up @@ -25570,7 +25570,7 @@
{
"data": {
"text/html": [
"<table><tr><th>Software</th><th>Version</th></tr><tr><td>tdgl</td><td>0.6.0; git revision e6d3811 [2023-09-27]</td></tr><tr><td>Numpy</td><td>1.24.3</td></tr><tr><td>SciPy</td><td>1.10.1</td></tr><tr><td>matplotlib</td><td>3.7.1</td></tr><tr><td>cupy</td><td>None</td></tr><tr><td>numba</td><td>0.57.1</td></tr><tr><td>IPython</td><td>8.14.0</td></tr><tr><td>Python</td><td>3.10.11 | packaged by conda-forge | (main, May 10 2023, 19:01:19) [Clang 14.0.6 ]</td></tr><tr><td>OS</td><td>posix [darwin]</td></tr><tr><td>Number of CPUs</td><td>Physical: 10, Logical: 10</td></tr><tr><td>BLAS Info</td><td>OPENBLAS</td></tr><tr><td colspan='2'>Wed Sep 27 15:04:27 2023 PDT</td></tr></table>"
"<table><tr><th>Software</th><th>Version</th></tr><tr><td>tdgl</td><td>0.6.1; git revision 9572d48 [2023-10-02]</td></tr><tr><td>Numpy</td><td>1.24.3</td></tr><tr><td>SciPy</td><td>1.10.1</td></tr><tr><td>matplotlib</td><td>3.7.1</td></tr><tr><td>cupy</td><td>None</td></tr><tr><td>numba</td><td>0.57.1</td></tr><tr><td>IPython</td><td>8.14.0</td></tr><tr><td>Python</td><td>3.10.11 | packaged by conda-forge | (main, May 10 2023, 19:01:19) [Clang 14.0.6 ]</td></tr><tr><td>OS</td><td>posix [darwin]</td></tr><tr><td>Number of CPUs</td><td>Physical: 10, Logical: 10</td></tr><tr><td>BLAS Info</td><td>OPENBLAS</td></tr><tr><td colspan='2'>Mon Oct 02 16:53:47 2023 PDT</td></tr></table>"
],
"text/plain": [
"<IPython.core.display.HTML object>"
Expand Down
8 changes: 4 additions & 4 deletions docs/notebooks/screening.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@
"name": "stderr",
"output_type": "stream",
"text": [
"Constructing Voronoi polygons: 100%|██████████████████████████████████████████████████████████████████████████| 2862/2862 [00:00<00:00, 23193.77it/s]\n"
"Constructing Voronoi polygons: 100%|██████████████████████████████████████████████████████████████████████████| 2862/2862 [00:00<00:00, 22186.22it/s]\n"
]
}
],
Expand Down Expand Up @@ -227,7 +227,7 @@
"name": "stderr",
"output_type": "stream",
"text": [
"Simulating: 100%|███████████████████████████████████████████████████████████████████████████████████████████████████▊| 5/5 [00:00<00:00, 11.04tau/s ]\n"
"Simulating: 100%|███████████████████████████████████████████████████████████████████████████████████████████████████▊| 5/5 [00:00<00:00, 10.21tau/s ]\n"
]
}
],
Expand Down Expand Up @@ -334,7 +334,7 @@
"name": "stderr",
"output_type": "stream",
"text": [
"Simulating: 100%|███████████████████████████████████████████████████████████████████████████████████████████████████▉| 5/5 [00:55<00:00, 11.18s/tau ]\n"
"Simulating: 100%|███████████████████████████████████████████████████████████████████████████████████████████████████▉| 5/5 [00:59<00:00, 11.85s/tau ]\n"
]
}
],
Expand Down Expand Up @@ -420,7 +420,7 @@
{
"data": {
"text/html": [
"<table><tr><th>Software</th><th>Version</th></tr><tr><td>tdgl</td><td>0.6.0; git revision e6d3811 [2023-09-27]</td></tr><tr><td>Numpy</td><td>1.24.3</td></tr><tr><td>SciPy</td><td>1.10.1</td></tr><tr><td>matplotlib</td><td>3.7.1</td></tr><tr><td>cupy</td><td>None</td></tr><tr><td>numba</td><td>0.57.1</td></tr><tr><td>IPython</td><td>8.14.0</td></tr><tr><td>Python</td><td>3.10.11 | packaged by conda-forge | (main, May 10 2023, 19:01:19) [Clang 14.0.6 ]</td></tr><tr><td>OS</td><td>posix [darwin]</td></tr><tr><td>Number of CPUs</td><td>Physical: 10, Logical: 10</td></tr><tr><td>BLAS Info</td><td>OPENBLAS</td></tr><tr><td colspan='2'>Wed Sep 27 14:53:18 2023 PDT</td></tr></table>"
"<table><tr><th>Software</th><th>Version</th></tr><tr><td>tdgl</td><td>0.6.1; git revision 9572d48 [2023-10-02]</td></tr><tr><td>Numpy</td><td>1.24.3</td></tr><tr><td>SciPy</td><td>1.10.1</td></tr><tr><td>matplotlib</td><td>3.7.1</td></tr><tr><td>cupy</td><td>None</td></tr><tr><td>numba</td><td>0.57.1</td></tr><tr><td>IPython</td><td>8.14.0</td></tr><tr><td>Python</td><td>3.10.11 | packaged by conda-forge | (main, May 10 2023, 19:01:19) [Clang 14.0.6 ]</td></tr><tr><td>OS</td><td>posix [darwin]</td></tr><tr><td>Number of CPUs</td><td>Physical: 10, Logical: 10</td></tr><tr><td>BLAS Info</td><td>OPENBLAS</td></tr><tr><td colspan='2'>Mon Oct 02 16:56:13 2023 PDT</td></tr></table>"
],
"text/plain": [
"<IPython.core.display.HTML object>"
Expand Down
4 changes: 2 additions & 2 deletions tdgl/solver/solver.py
Original file line number Diff line number Diff line change
Expand Up @@ -459,7 +459,7 @@ def solve_for_observables(
mu = operators.mu_laplacian_lu(rhs)
if use_cupy and not use_cupy_solver:
mu = cupy.asarray(mu)
normal_current = -(operators.mu_gradient @ mu) - 0 * dA_dt
normal_current = -(operators.mu_gradient @ mu) - dA_dt
return mu, supercurrent, normal_current

def get_induced_vector_potential(
Expand Down Expand Up @@ -572,7 +572,7 @@ def update(
(current_A_applied - prev_A_applied) / dt,
self.normalized_directions,
)
if not options.include_screening and xp.any(xp.absolute(dA_dt) > 0):
if xp.any(xp.absolute(dA_dt) > 0):
# Update the link exponents only if the applied vector potential
# has actually changed.
operators.set_link_exponents(current_A_applied)
Expand Down
2 changes: 1 addition & 1 deletion tdgl/version.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
__version_info__ = (0, 6, 0)
__version_info__ = (0, 6, 1)
__version__ = ".".join(map(str, __version_info__))


Expand Down

0 comments on commit af46b3c

Please sign in to comment.