Commit 7e236f6c authored by Matthijs's avatar Matthijs
Browse files

bugfixes & typos

parent b0c8f349
......@@ -90,7 +90,7 @@ new_config = {
# if(strcmp('problem_family,'Phase'))
# maximum number of iterations and tolerances
'MAXIT': 500,
'TOL': 1e-10,
'TOL': 1e-15,
# relaxaton parameters in RAAR, HPR and HAAR
'beta_0': 0.85, # 0.95 # starting relaxation prameter (only used with
......
......@@ -158,11 +158,11 @@ class Phase(Problem):
if 'interpolate_result' in self.config and self.config['interpolate_result']:
self.output[key] = interpolation.fourier_interpolate(self.output[key])
if 'zoomin_on_result' in self.config and self.config['zoomin_on_result']:
if self.config[key].ndims == 2:
zmy, zmx = self.config[key].shape # self.config['Ny'] // 4, self.config["Nx"] // 4
if self.output[key].ndim == 2:
zmy, zmx = self.output[key].shape # self.config['Ny'] // 4, self.config["Nx"] // 4
self.output[key] = self.output[key][zmy:-zmy, zmx:-zmx]
elif self.config[key].ndims == 3:
zmy, zmx, zmz = self.config[key].shape
elif self.output[key].ndim == 3:
zmy, zmx, zmz = self.output[key].shape
# (self.config['Ny'] // 4, self.config["Nx"] // 4, self.config['Nz'] // 4)
self.output[key] = self.output[key][zmy:-zmy, zmx:-zmx, zmz:-zmz]
......
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