From e27e4057e1564af8e2073ed2b38e89795e9d1c74 Mon Sep 17 00:00:00 2001 From: Thorsten Liebig Date: Fri, 16 Aug 2013 13:19:12 +0200 Subject: [PATCH] operator: make Grid_Path a typedef struct Signed-off-by: Thorsten Liebig --- Common/operator_base.h | 6 ++++++ FDTD/extensions/operator_ext_excitation.cpp | 2 +- FDTD/operator.cpp | 6 +++--- FDTD/operator.h | 7 +------ FDTD/operator_cylinder.cpp | 8 ++++---- FDTD/operator_cylinder.h | 2 +- 6 files changed, 16 insertions(+), 15 deletions(-) diff --git a/Common/operator_base.h b/Common/operator_base.h index 063c863..9da358e 100644 --- a/Common/operator_base.h +++ b/Common/operator_base.h @@ -23,6 +23,12 @@ #include "Common/processing.h" #include "string" +typedef struct +{ + vector posPath[3]; + vector dir; +} Grid_Path; + //! Abstract base-class for a common operator class Operator_Base { diff --git a/FDTD/extensions/operator_ext_excitation.cpp b/FDTD/extensions/operator_ext_excitation.cpp index 44a3182..d2085ff 100644 --- a/FDTD/extensions/operator_ext_excitation.cpp +++ b/FDTD/extensions/operator_ext_excitation.cpp @@ -230,7 +230,7 @@ bool Operator_Ext_Excitation::BuildExtension() //special treatment for primitives of type curve (treated as wires) see also Calc_PEC double p1[3]; double p2[3]; - struct Operator::Grid_Path path; + Grid_Path path; for (size_t p=0; p vec_prop = CSX->GetPropertyByType(CSProperties::METAL); for (size_t p=0; p posPath[3]; - vector dir; - }; - virtual struct Grid_Path FindPath(double start[], double stop[]); + virtual Grid_Path FindPath(double start[], double stop[]); // debug virtual void DumpOperator2File(string filename); diff --git a/FDTD/operator_cylinder.cpp b/FDTD/operator_cylinder.cpp index c18297f..e5f3bd3 100644 --- a/FDTD/operator_cylinder.cpp +++ b/FDTD/operator_cylinder.cpp @@ -274,7 +274,7 @@ int Operator_Cylinder::SnapLine2Mesh(const double* start, const double* stop, un } -struct Operator::Grid_Path Operator_Cylinder::FindPath(double start[], double stop[]) +Grid_Path Operator_Cylinder::FindPath(double start[], double stop[]) { double l_start[3]; double l_stop[3]; @@ -316,7 +316,7 @@ struct Operator::Grid_Path Operator_Cylinder::FindPath(double start[], double st // if a-stop fitted to disc range is now smaller than a-start, it must step over the a-bounds... - struct Grid_Path path; + Grid_Path path; for (int n=0;n<3;++n) { if ((l_start[n]