Esempio n. 1
0
 def op_grad(self, save=True):
     """Cached operator for gradient runs"""
     return GradientOperator(self.model,
                             save=save,
                             geometry=self.geometry,
                             kernel=self.kernel,
                             space_order=self.space_order,
                             **self._kwargs)
Esempio n. 2
0
 def op_grad(self):
     """Cached operator for gradient runs"""
     return GradientOperator(self.model,
                             save=False,
                             source=self.source,
                             receiver=self.receiver,
                             time_order=self.time_order,
                             space_order=self.space_order,
                             **self._kwargs)
Esempio n. 3
0
 def op_grad(self, save=True):
     """Cached operator for gradient runs"""
     return GradientOperator(self.model,
                             save=save,
                             source=self.source,
                             receiver=self.receiver,
                             kernel=self.kernel,
                             space_order=self.space_order,
                             **self._kwargs)