Commit f89a5b17 authored by Martin Reinecke's avatar Martin Reinecke
Browse files

set PowerSpace volume factors to 1

parent 9734d7db
Pipeline #19140 canceled with stage
......@@ -19,7 +19,6 @@
from __future__ import division
import abc
from .nifty_meta import NiftyMeta
from future.utils import with_metaclass
......@@ -137,7 +136,7 @@ class DomainObject(with_metaclass(
"""
raise NotImplementedError(
"There is no generic scalar_weight method for DomainObject.")
"There is no generic scalar_dvol method for DomainObject.")
def dvol(self):
""" Returns the volume factors of this domain, either as a floating
......
......@@ -198,11 +198,7 @@ class PowerSpace(Space):
return self.shape[0]
def scalar_dvol(self):
return None
def dvol(self):
# MR FIXME: this will probably change to 1 soon
return np.asarray(self.rho, dtype=np.float64)
return 1.
def get_k_length_array(self):
return self.kindex.copy()
......
......@@ -129,4 +129,4 @@ class PowerSpaceFunctionalityTest(unittest.TestCase):
def test_dvol(self):
p = PowerSpace(harmonic_partner=RGSpace(10,harmonic=True))
assert_almost_equal(p.dvol(),p.rho)
assert_almost_equal(p.dvol(),1.)
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