silenced some warnings; reformatted pro-file
parent
6390b11e53
commit
bd28d77e3b
|
@ -36,7 +36,7 @@ public:
|
|||
|
||||
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 string GetExtensionName() const {return string("Conducting Sheet Extension");}
|
||||
|
|
|
@ -35,7 +35,7 @@ public:
|
|||
|
||||
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 std::string GetExtensionName() const {return std::string("Extension for the Cylinder-Coords Operator");}
|
||||
|
|
|
@ -36,7 +36,7 @@ public:
|
|||
|
||||
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 string GetExtensionName() const {return string("Excitation Extension");}
|
||||
|
|
|
@ -34,7 +34,7 @@ public:
|
|||
|
||||
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 string GetExtensionName() const {return string("Drude/Lorentz Dispersive Material Extension");}
|
||||
|
|
|
@ -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
|
||||
{
|
||||
UNUSED(closedAlpha);
|
||||
UNUSED(R0_included);
|
||||
|
||||
if (m_ny==2)
|
||||
{
|
||||
Operator_Cylinder* op_cyl = dynamic_cast<Operator_Cylinder*>(m_Op);
|
||||
|
|
|
@ -36,7 +36,7 @@ public:
|
|||
virtual ~Operator_Ext_UPML();
|
||||
|
||||
//! 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.
|
||||
virtual bool IsCylindricalMultiGridSave(bool child) const {if (child) return false; return true;}
|
||||
|
|
|
@ -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)...
|
||||
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 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.
|
||||
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.
|
||||
virtual bool IsCylindricalMultiGridSave(bool child) const {UNUSED(child); return false;}
|
||||
|
|
2
main.cpp
2
main.cpp
|
@ -46,7 +46,7 @@ int main(int argc, char *argv[])
|
|||
openEMS FDTD;
|
||||
#endif
|
||||
|
||||
#ifdef _LP64 || _WIN64
|
||||
#if defined(_LP64) || defined(_WIN64)
|
||||
string bits = "64bit";
|
||||
#else
|
||||
string bits = "32bit";
|
||||
|
|
24
openEMS.pro
24
openEMS.pro
|
@ -6,8 +6,7 @@ CONFIG -= app_bundle qt
|
|||
TEMPLATE = app
|
||||
OBJECTS_DIR = obj
|
||||
INCLUDEPATH += .
|
||||
INCLUDEPATH += ../CSXCAD \
|
||||
../fparser
|
||||
INCLUDEPATH += ../CSXCAD ../fparser
|
||||
CONFIG += debug_and_release
|
||||
|
||||
|
||||
|
@ -73,9 +72,12 @@ win32 {
|
|||
-lvtkIO \
|
||||
-lvtksys \
|
||||
-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
|
||||
DEFINES += H5_USE_16_API
|
||||
|
@ -138,7 +140,7 @@ SOURCES += Common/operator_base.cpp \
|
|||
Common/processfields_sar.cpp
|
||||
|
||||
# tools
|
||||
SOURCES += tools/global.cpp \
|
||||
SOURCES += tools/global.cpp \
|
||||
tools/useful.cpp \
|
||||
tools/array_ops.cpp \
|
||||
tools/ErrorMsg.cpp \
|
||||
|
@ -214,14 +216,10 @@ HEADERS += tools/ErrorMsg.h \
|
|||
tools/hdf5_file_writer.h
|
||||
|
||||
!packaging {
|
||||
# if packaging is not set in CONFIG, set some default flags
|
||||
# if packaging is enabled, give the flags on the qmake comandline
|
||||
QMAKE_CXXFLAGS_RELEASE = -O3 \
|
||||
-g \
|
||||
-march=native
|
||||
QMAKE_CXXFLAGS_DEBUG = -O0 \
|
||||
-g \
|
||||
-march=native
|
||||
# if packaging is not set in CONFIG, set some default flags
|
||||
# if packaging is enabled, give the flags on the qmake comandline
|
||||
QMAKE_CXXFLAGS_RELEASE = -O3 -g -march=native
|
||||
QMAKE_CXXFLAGS_DEBUG = -O0 -g -march=native
|
||||
}
|
||||
|
||||
MPI_SUPPORT {
|
||||
|
|
Loading…
Reference in New Issue