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
|
||||
Engine* Engine::New(const Operator* op)
|
||||
{
|
||||
cout << "Create FDTD engine" << endl;
|
||||
Engine* e = new Engine(op);
|
||||
e->Init();
|
||||
return e;
|
||||
|
|
|
@ -37,6 +37,7 @@
|
|||
//! it's the responsibility of the caller to free the returned pointer
|
||||
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);
|
||||
e->setNumThreads( numThreads );
|
||||
e->Init();
|
||||
|
@ -84,7 +85,7 @@ void Engine_Multithread::Init()
|
|||
m_stopThreads = false;
|
||||
if (m_numThreads == 0)
|
||||
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_VoltExcite = new boost::barrier(m_numThreads+1); // numThread workers + 1 excitation thread
|
||||
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
|
||||
Engine_sse* Engine_sse::New(const Operator_sse* op)
|
||||
{
|
||||
cout << "Create FDTD engine (SSE)" << endl;
|
||||
Engine_sse* e = new Engine_sse(op);
|
||||
e->Init();
|
||||
return e;
|
||||
|
|
|
@ -20,6 +20,7 @@
|
|||
|
||||
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);
|
||||
e->Init();
|
||||
return e;
|
||||
|
|
|
@ -26,6 +26,7 @@
|
|||
|
||||
Operator* Operator::New()
|
||||
{
|
||||
cout << "Create FDTD operator" << endl;
|
||||
Operator* op = new Operator();
|
||||
op->Init();
|
||||
return op;
|
||||
|
|
|
@ -22,6 +22,7 @@
|
|||
|
||||
Operator_Cylinder* Operator_Cylinder::New()
|
||||
{
|
||||
cout << "Create cylindrical FDTD operator" << endl;
|
||||
Operator_Cylinder* op = new Operator_Cylinder();
|
||||
op->Init();
|
||||
return op;
|
||||
|
|
|
@ -21,6 +21,7 @@
|
|||
|
||||
Operator_sse* Operator_sse::New()
|
||||
{
|
||||
cout << "Create FDTD operator (SSE)" << endl;
|
||||
Operator_sse* op = new Operator_sse();
|
||||
op->Init();
|
||||
return op;
|
||||
|
|
|
@ -24,6 +24,7 @@
|
|||
|
||||
Operator_SSE_Compressed* Operator_SSE_Compressed::New()
|
||||
{
|
||||
cout << "Create FDTD operator (compressed SSE)" << endl;
|
||||
Operator_SSE_Compressed* op = new Operator_SSE_Compressed();
|
||||
op->Init();
|
||||
return op;
|
||||
|
|
|
@ -173,7 +173,7 @@ int openEMS::SetupFDTD(const char* file)
|
|||
FDTD_Opts->QueryIntAttribute("CylinderCoords",&help);
|
||||
if (help==1)
|
||||
{
|
||||
cout << "Using a cylinder coordinate FDTD..." << endl;
|
||||
// cout << "Using a cylinder coordinate FDTD..." << endl;
|
||||
CylinderCoords = true;
|
||||
}
|
||||
|
||||
|
@ -208,7 +208,6 @@ int openEMS::SetupFDTD(const char* file)
|
|||
}
|
||||
|
||||
//*************** setup operator ************//
|
||||
cout << "Create Operator..." << endl;
|
||||
if (CylinderCoords)
|
||||
{
|
||||
FDTD_Op = Operator_Cylinder::New();
|
||||
|
|
Loading…
Reference in New Issue