From 1ffb54090c3e57e10a50bd6a851c116ca7dc7a0c Mon Sep 17 00:00:00 2001 From: Jean-Matthieu Etancelin <jean-matthieu.etancelin@imag.fr> Date: Wed, 6 Mar 2013 08:05:26 +0000 Subject: [PATCH] Bug fix in monitorings --- HySoP/hysop/operator/energy_enstrophy.py | 2 +- HySoP/hysop/operator/monitors/compute_forces.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/HySoP/hysop/operator/energy_enstrophy.py b/HySoP/hysop/operator/energy_enstrophy.py index b80249d47..07342c153 100644 --- a/HySoP/hysop/operator/energy_enstrophy.py +++ b/HySoP/hysop/operator/energy_enstrophy.py @@ -37,7 +37,7 @@ class Energy_enstrophy(Monitoring): if (self.topology.rank == 0): self.f = open(self.outputPrefix, 'w') - def __call__(self, t, dt, ite): + def apply(self, t, dt, ite): """ Computation of kinetic energy, enstrophy & Checking energy and enstrophy decay (--> is(recoveredViscosity == viscosity) ?) diff --git a/HySoP/hysop/operator/monitors/compute_forces.py b/HySoP/hysop/operator/monitors/compute_forces.py index 53c85bb73..16236415d 100644 --- a/HySoP/hysop/operator/monitors/compute_forces.py +++ b/HySoP/hysop/operator/monitors/compute_forces.py @@ -216,7 +216,7 @@ class Compute_forces(Monitoring): uinf = 1. self.coef = 2. / (uinf ** 2 * PI * self.obstacle.radius ** 2) - def __call__(self, t, dt, ite): + def apply(self, t, dt, ite): """ Computation of the drag according to the "impulsion" formula presented by Noca et. al in Journal of Fluids and Structures, 1999 -- GitLab