Fixed cic. Fixed lpt1 evaluation in cosmogrowth
This commit is contained in:
parent
4bc7bf47a7
commit
7662ea98d4
4 changed files with 28 additions and 16 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue