silenced some warnings; reformatted pro-file

pull/1/head
Sebastian Held 2012-06-17 20:29:31 +02:00
parent 6390b11e53
commit bd28d77e3b
9 changed files with 44 additions and 43 deletions

View File

@ -36,7 +36,7 @@ public:
virtual bool BuildExtension(); virtual bool BuildExtension();
virtual bool IsCylinderCoordsSave(bool closedAlpha, bool R0_included) const {return true;} virtual bool IsCylinderCoordsSave(bool closedAlpha, bool R0_included) const {UNUSED(closedAlpha); UNUSED(R0_included); return true;}
virtual bool IsCylindricalMultiGridSave(bool child) const {UNUSED(child); return true;} virtual bool IsCylindricalMultiGridSave(bool child) const {UNUSED(child); return true;}
virtual string GetExtensionName() const {return string("Conducting Sheet Extension");} virtual string GetExtensionName() const {return string("Conducting Sheet Extension");}

View File

@ -35,7 +35,7 @@ public:
virtual Engine_Extension* CreateEngineExtention(); virtual Engine_Extension* CreateEngineExtention();
virtual bool IsCylinderCoordsSave(bool closedAlpha, bool R0_included) const {return true;} virtual bool IsCylinderCoordsSave(bool closedAlpha, bool R0_included) const {UNUSED(closedAlpha); UNUSED(R0_included); return true;}
virtual bool IsCylindricalMultiGridSave(bool child) const {UNUSED(child); return true;} virtual bool IsCylindricalMultiGridSave(bool child) const {UNUSED(child); return true;}
virtual std::string GetExtensionName() const {return std::string("Extension for the Cylinder-Coords Operator");} virtual std::string GetExtensionName() const {return std::string("Extension for the Cylinder-Coords Operator");}

View File

@ -36,7 +36,7 @@ public:
virtual Engine_Extension* CreateEngineExtention(); virtual Engine_Extension* CreateEngineExtention();
virtual bool IsCylinderCoordsSave(bool closedAlpha, bool R0_included) const {return true;} virtual bool IsCylinderCoordsSave(bool closedAlpha, bool R0_included) const {UNUSED(closedAlpha); UNUSED(R0_included); return true;}
virtual bool IsCylindricalMultiGridSave(bool child) const {UNUSED(child); return true;} virtual bool IsCylindricalMultiGridSave(bool child) const {UNUSED(child); return true;}
virtual string GetExtensionName() const {return string("Excitation Extension");} virtual string GetExtensionName() const {return string("Excitation Extension");}

View File

@ -34,7 +34,7 @@ public:
virtual Engine_Extension* CreateEngineExtention(); virtual Engine_Extension* CreateEngineExtention();
virtual bool IsCylinderCoordsSave(bool closedAlpha, bool R0_included) const {return true;} virtual bool IsCylinderCoordsSave(bool closedAlpha, bool R0_included) const {UNUSED(closedAlpha); UNUSED(R0_included); return true;}
virtual bool IsCylindricalMultiGridSave(bool child) const {UNUSED(child); return true;} virtual bool IsCylindricalMultiGridSave(bool child) const {UNUSED(child); return true;}
virtual string GetExtensionName() const {return string("Drude/Lorentz Dispersive Material Extension");} virtual string GetExtensionName() const {return string("Drude/Lorentz Dispersive Material Extension");}

View File

@ -398,6 +398,9 @@ Engine_Extension* Operator_Ext_PML_SF_Plane::CreateEngineExtention()
bool Operator_Ext_PML_SF_Plane::IsCylinderCoordsSave(bool closedAlpha, bool R0_included) const bool Operator_Ext_PML_SF_Plane::IsCylinderCoordsSave(bool closedAlpha, bool R0_included) const
{ {
UNUSED(closedAlpha);
UNUSED(R0_included);
if (m_ny==2) if (m_ny==2)
{ {
Operator_Cylinder* op_cyl = dynamic_cast<Operator_Cylinder*>(m_Op); Operator_Cylinder* op_cyl = dynamic_cast<Operator_Cylinder*>(m_Op);

View File

@ -36,7 +36,7 @@ public:
virtual ~Operator_Ext_UPML(); virtual ~Operator_Ext_UPML();
//! Returns always true, Create_UPML method will take care of creating a valid pml for the cylindrical fdtd //! Returns always true, Create_UPML method will take care of creating a valid pml for the cylindrical fdtd
virtual bool IsCylinderCoordsSave(bool closedAlpha, bool R0_included) const {return true;} virtual bool IsCylinderCoordsSave(bool closedAlpha, bool R0_included) const { UNUSED(closedAlpha); UNUSED(R0_included); return true;}
//! Returns always true if base grid, Create_UPML will create proper child pml extensions. //! Returns always true if base grid, Create_UPML will create proper child pml extensions.
virtual bool IsCylindricalMultiGridSave(bool child) const {if (child) return false; return true;} virtual bool IsCylindricalMultiGridSave(bool child) const {if (child) return false; return true;}

View File

@ -44,14 +44,14 @@ public:
Create a clone of this extension, will return NULL if this is impossible (e.g. derived extension has no clone method and copy-constructor)... Create a clone of this extension, will return NULL if this is impossible (e.g. derived extension has no clone method and copy-constructor)...
BuildExtension has to be called separatly! BuildExtension has to be called separatly!
*/ */
virtual Operator_Extension* Clone(Operator* op) {return NULL;} virtual Operator_Extension* Clone(Operator* op) {UNUSED(op); return NULL;}
virtual bool BuildExtension() {return true;} virtual bool BuildExtension() {return true;}
virtual Engine_Extension* CreateEngineExtention() {return 0;} virtual Engine_Extension* CreateEngineExtention() {return 0;}
//! The cylindrical operator will check whether the extension is save to use. Default is false. Derive this method to override. //! The cylindrical operator will check whether the extension is save to use. Default is false. Derive this method to override.
virtual bool IsCylinderCoordsSave(bool closedAlpha, bool R0_included) const {return false;} virtual bool IsCylinderCoordsSave(bool closedAlpha, bool R0_included) const {UNUSED(closedAlpha); UNUSED(R0_included); return false;}
//! The cylindrical multi grid operator will check whether the extension is save to use. Default is false. Derive this method to override. //! The cylindrical multi grid operator will check whether the extension is save to use. Default is false. Derive this method to override.
virtual bool IsCylindricalMultiGridSave(bool child) const {UNUSED(child); return false;} virtual bool IsCylindricalMultiGridSave(bool child) const {UNUSED(child); return false;}

View File

@ -46,7 +46,7 @@ int main(int argc, char *argv[])
openEMS FDTD; openEMS FDTD;
#endif #endif
#ifdef _LP64 || _WIN64 #if defined(_LP64) || defined(_WIN64)
string bits = "64bit"; string bits = "64bit";
#else #else
string bits = "32bit"; string bits = "32bit";

View File

@ -6,8 +6,7 @@ CONFIG -= app_bundle qt
TEMPLATE = app TEMPLATE = app
OBJECTS_DIR = obj OBJECTS_DIR = obj
INCLUDEPATH += . INCLUDEPATH += .
INCLUDEPATH += ../CSXCAD \ INCLUDEPATH += ../CSXCAD ../fparser
../fparser
CONFIG += debug_and_release CONFIG += debug_and_release
@ -73,9 +72,12 @@ win32 {
-lvtkIO \ -lvtkIO \
-lvtksys \ -lvtksys \
-lvtkFiltering -lvtkFiltering
QMAKE_LFLAGS += \'-Wl,-rpath,\$$ORIGIN/../CSXCAD\'
QMAKE_LFLAGS += \'-Wl,-rpath,\$$ORIGIN/../fparser\'
} }
QMAKE_LFLAGS += \'-Wl,-rpath,\$$ORIGIN/../CSXCAD\'
QMAKE_LFLAGS += \'-Wl,-rpath,\$$ORIGIN/../fparser\' # vtk includes deprecated header files; silence the corresponding warning
QMAKE_CXXFLAGS += -Wno-deprecated
# hdf5 compat # hdf5 compat
DEFINES += H5_USE_16_API DEFINES += H5_USE_16_API
@ -138,7 +140,7 @@ SOURCES += Common/operator_base.cpp \
Common/processfields_sar.cpp Common/processfields_sar.cpp
# tools # tools
SOURCES += tools/global.cpp \ SOURCES += tools/global.cpp \
tools/useful.cpp \ tools/useful.cpp \
tools/array_ops.cpp \ tools/array_ops.cpp \
tools/ErrorMsg.cpp \ tools/ErrorMsg.cpp \
@ -214,14 +216,10 @@ HEADERS += tools/ErrorMsg.h \
tools/hdf5_file_writer.h tools/hdf5_file_writer.h
!packaging { !packaging {
# if packaging is not set in CONFIG, set some default flags # if packaging is not set in CONFIG, set some default flags
# if packaging is enabled, give the flags on the qmake comandline # if packaging is enabled, give the flags on the qmake comandline
QMAKE_CXXFLAGS_RELEASE = -O3 \ QMAKE_CXXFLAGS_RELEASE = -O3 -g -march=native
-g \ QMAKE_CXXFLAGS_DEBUG = -O0 -g -march=native
-march=native
QMAKE_CXXFLAGS_DEBUG = -O0 \
-g \
-march=native
} }
MPI_SUPPORT { MPI_SUPPORT {