more console output regarding operator & engine usage
parent
f868eb328c
commit
8212f039ed
|
@ -24,6 +24,7 @@
|
||||||
//! it's the responsibility of the caller to free the returned pointer
|
//! it's the responsibility of the caller to free the returned pointer
|
||||||
Engine* Engine::New(const Operator* op)
|
Engine* Engine::New(const Operator* op)
|
||||||
{
|
{
|
||||||
|
cout << "Create FDTD engine" << endl;
|
||||||
Engine* e = new Engine(op);
|
Engine* e = new Engine(op);
|
||||||
e->Init();
|
e->Init();
|
||||||
return e;
|
return e;
|
||||||
|
|
|
@ -37,6 +37,7 @@
|
||||||
//! it's the responsibility of the caller to free the returned pointer
|
//! it's the responsibility of the caller to free the returned pointer
|
||||||
Engine_Multithread* Engine_Multithread::New(const Operator* op, unsigned int numThreads)
|
Engine_Multithread* Engine_Multithread::New(const Operator* op, unsigned int numThreads)
|
||||||
{
|
{
|
||||||
|
cout << "Create FDTD engine multithreading environment" << endl;
|
||||||
Engine_Multithread* e = new Engine_Multithread(op);
|
Engine_Multithread* e = new Engine_Multithread(op);
|
||||||
e->setNumThreads( numThreads );
|
e->setNumThreads( numThreads );
|
||||||
e->Init();
|
e->Init();
|
||||||
|
@ -84,7 +85,7 @@ void Engine_Multithread::Init()
|
||||||
m_stopThreads = false;
|
m_stopThreads = false;
|
||||||
if (m_numThreads == 0)
|
if (m_numThreads == 0)
|
||||||
m_numThreads = boost::thread::hardware_concurrency();
|
m_numThreads = boost::thread::hardware_concurrency();
|
||||||
cout << "using " << m_numThreads << " threads" << std::endl;
|
cout << "Multithreading engine using " << m_numThreads << " threads." << std::endl;
|
||||||
m_barrier_VoltUpdate = new boost::barrier(m_numThreads); // numThread workers
|
m_barrier_VoltUpdate = new boost::barrier(m_numThreads); // numThread workers
|
||||||
m_barrier_VoltExcite = new boost::barrier(m_numThreads+1); // numThread workers + 1 excitation thread
|
m_barrier_VoltExcite = new boost::barrier(m_numThreads+1); // numThread workers + 1 excitation thread
|
||||||
m_barrier_CurrUpdate = new boost::barrier(m_numThreads); // numThread workers
|
m_barrier_CurrUpdate = new boost::barrier(m_numThreads); // numThread workers
|
||||||
|
|
|
@ -21,6 +21,7 @@
|
||||||
//! it's the responsibility of the caller to free the returned pointer
|
//! it's the responsibility of the caller to free the returned pointer
|
||||||
Engine_sse* Engine_sse::New(const Operator_sse* op)
|
Engine_sse* Engine_sse::New(const Operator_sse* op)
|
||||||
{
|
{
|
||||||
|
cout << "Create FDTD engine (SSE)" << endl;
|
||||||
Engine_sse* e = new Engine_sse(op);
|
Engine_sse* e = new Engine_sse(op);
|
||||||
e->Init();
|
e->Init();
|
||||||
return e;
|
return e;
|
||||||
|
|
|
@ -20,6 +20,7 @@
|
||||||
|
|
||||||
Engine_SSE_Compressed* Engine_SSE_Compressed::New(const Operator_SSE_Compressed* op)
|
Engine_SSE_Compressed* Engine_SSE_Compressed::New(const Operator_SSE_Compressed* op)
|
||||||
{
|
{
|
||||||
|
cout << "Create FDTD engine (compressed SSE)" << endl;
|
||||||
Engine_SSE_Compressed* e = new Engine_SSE_Compressed(op);
|
Engine_SSE_Compressed* e = new Engine_SSE_Compressed(op);
|
||||||
e->Init();
|
e->Init();
|
||||||
return e;
|
return e;
|
||||||
|
|
|
@ -26,6 +26,7 @@
|
||||||
|
|
||||||
Operator* Operator::New()
|
Operator* Operator::New()
|
||||||
{
|
{
|
||||||
|
cout << "Create FDTD operator" << endl;
|
||||||
Operator* op = new Operator();
|
Operator* op = new Operator();
|
||||||
op->Init();
|
op->Init();
|
||||||
return op;
|
return op;
|
||||||
|
|
|
@ -22,6 +22,7 @@
|
||||||
|
|
||||||
Operator_Cylinder* Operator_Cylinder::New()
|
Operator_Cylinder* Operator_Cylinder::New()
|
||||||
{
|
{
|
||||||
|
cout << "Create cylindrical FDTD operator" << endl;
|
||||||
Operator_Cylinder* op = new Operator_Cylinder();
|
Operator_Cylinder* op = new Operator_Cylinder();
|
||||||
op->Init();
|
op->Init();
|
||||||
return op;
|
return op;
|
||||||
|
|
|
@ -21,6 +21,7 @@
|
||||||
|
|
||||||
Operator_sse* Operator_sse::New()
|
Operator_sse* Operator_sse::New()
|
||||||
{
|
{
|
||||||
|
cout << "Create FDTD operator (SSE)" << endl;
|
||||||
Operator_sse* op = new Operator_sse();
|
Operator_sse* op = new Operator_sse();
|
||||||
op->Init();
|
op->Init();
|
||||||
return op;
|
return op;
|
||||||
|
|
|
@ -24,6 +24,7 @@
|
||||||
|
|
||||||
Operator_SSE_Compressed* Operator_SSE_Compressed::New()
|
Operator_SSE_Compressed* Operator_SSE_Compressed::New()
|
||||||
{
|
{
|
||||||
|
cout << "Create FDTD operator (compressed SSE)" << endl;
|
||||||
Operator_SSE_Compressed* op = new Operator_SSE_Compressed();
|
Operator_SSE_Compressed* op = new Operator_SSE_Compressed();
|
||||||
op->Init();
|
op->Init();
|
||||||
return op;
|
return op;
|
||||||
|
|
|
@ -173,7 +173,7 @@ int openEMS::SetupFDTD(const char* file)
|
||||||
FDTD_Opts->QueryIntAttribute("CylinderCoords",&help);
|
FDTD_Opts->QueryIntAttribute("CylinderCoords",&help);
|
||||||
if (help==1)
|
if (help==1)
|
||||||
{
|
{
|
||||||
cout << "Using a cylinder coordinate FDTD..." << endl;
|
// cout << "Using a cylinder coordinate FDTD..." << endl;
|
||||||
CylinderCoords = true;
|
CylinderCoords = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -208,7 +208,6 @@ int openEMS::SetupFDTD(const char* file)
|
||||||
}
|
}
|
||||||
|
|
||||||
//*************** setup operator ************//
|
//*************** setup operator ************//
|
||||||
cout << "Create Operator..." << endl;
|
|
||||||
if (CylinderCoords)
|
if (CylinderCoords)
|
||||||
{
|
{
|
||||||
FDTD_Op = Operator_Cylinder::New();
|
FDTD_Op = Operator_Cylinder::New();
|
||||||
|
|
Loading…
Reference in New Issue