Processing: more debug information in snapping warnings

pull/1/head
Thorsten Liebig 2011-01-20 14:39:01 +01:00
parent faf377081d
commit d93c3f70fe
2 changed files with 3 additions and 2 deletions

View File

@ -157,9 +157,9 @@ void Processing::AddFrequency(vector<double> *freqs)
void Processing::DefineStartStopCoord(double* dstart, double* dstop) void Processing::DefineStartStopCoord(double* dstart, double* dstop)
{ {
if (Op->SnapToMesh(dstart,start,m_dualMesh,m_start_inside)==false) if (Op->SnapToMesh(dstart,start,m_dualMesh,m_start_inside)==false)
cerr << "Processing::DefineStartStopCoord: Warning: Snapped line outside field domain!!" << endl; cerr << "Processing::DefineStartStopCoord: Warning in " << m_Name << " (" << GetProcessingName() << ") : Snapped start line outside field domain!!" << endl;
if (Op->SnapToMesh(dstop,stop,m_dualMesh,m_stop_inside)==false) if (Op->SnapToMesh(dstop,stop,m_dualMesh,m_stop_inside)==false)
cerr << "Processing::DefineStartStopCoord: Warning: Snapped line outside field domain!!" << endl; cerr << "Processing::DefineStartStopCoord: Warning in " << m_Name << " (" << GetProcessingName() << ") : Snapped stop line outside field domain!!" << endl;
if (g_settings.showProbeDiscretization()) if (g_settings.showProbeDiscretization())
{ {

View File

@ -408,6 +408,7 @@ bool openEMS::SetupProcessing(ContinuousStructure& CSX)
if (db->GetOptResolution()) if (db->GetOptResolution())
for (int n=0; n<3; ++n) for (int n=0; n<3; ++n)
ProcField->SetOptResolution(db->GetOptResolution(n),n); ProcField->SetOptResolution(db->GetOptResolution(n),n);
ProcField->SetName(db->GetName());
ProcField->SetFilePattern(db->GetName()); ProcField->SetFilePattern(db->GetName());
ProcField->SetFileName(db->GetName()); ProcField->SetFileName(db->GetName());
ProcField->DefineStartStopCoord(start,stop); ProcField->DefineStartStopCoord(start,stop);