fix parallel for new pseudo field routine

This commit is contained in:
Michael Krayer 2021-07-20 14:08:34 +02:00
parent ec23f3acd4
commit daf2cfda04
1 changed files with 4 additions and 1 deletions

View File

@ -246,7 +246,10 @@ class PPP:
dim = (ie-ib+1+2*self.nghx,
je-jb+1+2*self.nghy,
ke-kb+1+2*self.nghz)
return Field3d.allocate(dim,origin,self.spacing,fill=fill,pseudo=pseudo,dtype=dtype)
if pseudo:
return Field3d.pseudo_field(dim,origin,self.spacing)
else:
return Field3d.allocate(dim,origin,self.spacing,fill=fill,dtype=dtype)
def qcriterion(self,key_out=None,from_pressure=False,keep_derivatives=False):
'''Computes Q-criterion'''