Skip to content

Commit

Permalink
Fix black error.
Browse files Browse the repository at this point in the history
  • Loading branch information
tbenthompson committed Aug 19, 2024
1 parent c3b8bd8 commit c59f5df
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -292,6 +292,8 @@ For developing `cutde`, clone the repo and set up your conda environment based o
conda env create
```

Then, `pip install -e .`.

Next, for developing on a GPU, please install either `pycuda` or `pyopencl` as instructed in the Installation section above.

Then, you should re-generate the baseline test data derived from [the MATLAB code from Mehdi Nikhoo](https://volcanodeformation.com/software). To do this, first install `octave`. On Ubuntu, this is just:
Expand Down
7 changes: 4 additions & 3 deletions tests/py_aca.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
This Python ACA implementation is included here in order to help test the
OpenCL/CUDA implementation in cutde.
"""

import numpy as np


Expand Down Expand Up @@ -184,9 +185,9 @@ def reset_reference_col(Jref):
if verbose:
print(
f"term={k}, "
f"pivot row={Istar:4d}, pivot col={Jstar:4d}, "
f"step size={step_size:1.3e}, "
f"tolerance={eps:1.3e}"
f"pivot row={Istar: 4d}, pivot col={Jstar: 4d}, "
f"step size={step_size: 1.3e}, "
f"tolerance={eps: 1.3e}"
)

# The convergence criteria will simply be whether the Frobenius norm of the
Expand Down

0 comments on commit c59f5df

Please sign in to comment.