From 22210247f466a42ca8830c1e295454e85e08bcdf Mon Sep 17 00:00:00 2001 From: Thorsten Liebig Date: Tue, 13 Apr 2010 18:34:26 +0200 Subject: [PATCH] Cylinder_Engine: removed unnecessary Init()/Reset() method's --- FDTD/engine_cylinder.cpp | 43 ---------------------------------------- FDTD/engine_cylinder.h | 4 ---- 2 files changed, 47 deletions(-) diff --git a/FDTD/engine_cylinder.cpp b/FDTD/engine_cylinder.cpp index ea8a5dc..8796937 100644 --- a/FDTD/engine_cylinder.cpp +++ b/FDTD/engine_cylinder.cpp @@ -33,49 +33,6 @@ Engine_Cylinder::Engine_Cylinder(const Operator_Cylinder* op) : Engine(op) } } -Engine_Cylinder::~Engine_Cylinder() -{ - Reset(); -} - -void Engine_Cylinder::Init() -{ - Engine::Init(); - -// if (cyl_Op->GetClosedAlpha()) -// { -// unsigned int lastLine = Op->numLines[1]-1; //number of last alpha-line -// unsigned int pos[3]; -// for (pos[0]=0;pos[0]numLines[0];++pos[0]) -// { -// for (int n=0;n<3;++n) -// { -// delete[] volt[n][pos[0]][lastLine]; -// volt[n][pos[0]][lastLine] = volt[n][pos[0]][0]; -// delete[] curr[n][pos[0]][lastLine]; -// curr[n][pos[0]][lastLine] = curr[n][pos[0]][0]; -// } -// } -// } -} - -void Engine_Cylinder::Reset() -{ -// if (cyl_Op->GetClosedAlpha()) -// { -// unsigned int lastLine = Op->numLines[1]-1; //number of last alpha-line -// unsigned int pos[3]; -// for (pos[0]=0;pos[0]numLines[0];++pos[0]) -// { -// for (int n=0;n<3;++n) -// { -// volt[n][pos[0]][lastLine] = NULL; -// curr[n][pos[0]][lastLine] = NULL; -// } -// } -// } -} - inline void Engine_Cylinder::CloseAlphaVoltages() { unsigned int pos[3]; diff --git a/FDTD/engine_cylinder.h b/FDTD/engine_cylinder.h index 60ab5a3..88910ef 100644 --- a/FDTD/engine_cylinder.h +++ b/FDTD/engine_cylinder.h @@ -25,10 +25,6 @@ class Engine_Cylinder : public Engine { public: static Engine_Cylinder* New(const Operator_Cylinder* op); - virtual ~Engine_Cylinder(); - - virtual void Init(); - virtual void Reset(); //!Iterate a number of timesteps virtual bool IterateTS(unsigned int iterTS);