Commit 2ede62da authored by asantosnet's avatar asantosnet
Browse files

Merge with Satish

parents 04282801 c51ebff5
......@@ -847,7 +847,7 @@ class LinearProblem(object):
return self.solver_instance(self, **kwargs)
def update(self, voltage_val=None, charge_val=None, mixed_val=None,
pos_voltage_mixed=None, pos_charge_mixed=None):
pos_voltage_mixed=None, pos_charge_mixed=None, is_charge_density=True):
'''
Update the system of equations without recalculating the
sparse matrices.
......@@ -860,6 +860,8 @@ class LinearProblem(object):
This update does not require re-factorization
'''
self.is_charge_density = is_charge_density
if (pos_voltage_mixed is not None or pos_charge_mixed is not None):
# Matrix order will have to change. Not implemented yet.
print('Not implemented')
......
[build-system]
requires = ["setuptools", "wheel", "Cython", "numpy", "scipy"]
\ No newline at end of file
......@@ -30,4 +30,4 @@ setup(
'poisson/discrete/_discrete_poisson.pyx',
'poisson/discrete/_linear_problem.pyx']),
include_dirs=[numpy.get_include()]
)
\ No newline at end of file
)
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment