Fixed cic. Fixed lpt1 evaluation in cosmogrowth

This commit is contained in:
Guilhem Lavaux 2014-06-03 10:48:54 +02:00
parent 4bc7bf47a7
commit 7662ea98d4
4 changed files with 28 additions and 16 deletions

View file

@ -57,7 +57,7 @@ class LagrangianPerturbation(object):
k2 = self._get_k2()
k2[0,0,0] = 1
return self._gradient(-self.dhat/k2, direction)
return self._gradient(self.dhat/k2, direction)
def new_shape(self,direction, q=3, half=False):
N0 = (self.N/2+1) if half else self.N