From 050a595cd328a6c4d931c1e9bec1163296d0a71b Mon Sep 17 00:00:00 2001 From: Thorsten Liebig Date: Thu, 15 Jul 2010 12:12:52 +0200 Subject: [PATCH] docu update & typo --- FDTD/operator.h | 7 +++++-- FDTD/operator_cylinder.cpp | 2 +- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/FDTD/operator.h b/FDTD/operator.h index ec98ae9..0b8dbea 100644 --- a/FDTD/operator.h +++ b/FDTD/operator.h @@ -72,13 +72,16 @@ public: virtual string GetDirName(int ny) const; virtual double GetGridDelta() const {return gridDelta;} - //! Get the mesh delta times the grid delta for a 3D position + //! Get the mesh delta times the grid delta for a 3D position (unit is meter) virtual double GetMeshDelta(int n, const int* pos, bool dualMesh=false) const; + //! Get the mesh delta times the grid delta for a 3D position (unit is meter) virtual double GetMeshDelta(int n, const unsigned int* pos, bool dualMesh=false) const; - //! Get the disc line in n direction + //! Get the disc line in n direction (in drawing units) virtual double GetDiscLine(int n, int pos, bool dualMesh=false) const; + //! Get the disc line in n direction (in drawing units) virtual double GetDiscLine(int n, unsigned int pos, bool dualMesh=false) const; + virtual bool SnapToMesh(double* coord, unsigned int* uicoord, bool lower=false, bool* inside=NULL); virtual void AddExtension(Operator_Extension* op_ext); diff --git a/FDTD/operator_cylinder.cpp b/FDTD/operator_cylinder.cpp index cd55313..c8b0505 100644 --- a/FDTD/operator_cylinder.cpp +++ b/FDTD/operator_cylinder.cpp @@ -353,7 +353,7 @@ bool Operator_Cylinder::Calc_ECPos(int n, unsigned int* pos, double* inEC) } A_n = fabs(deltaP*deltaPP); - if (n==0) //z-direction n==0 -> r; nP==1 -> alpha; nPP==2 -> z + if (n==0) //x-direction n==0 -> r; nP==1 -> alpha; nPP==2 -> z { A_n = A_n * coord[0]; }