excitation: warning for unknown types fixed...

pull/1/head
Thorsten Liebig 2010-08-23 22:52:08 +02:00
parent 6fa9fef29f
commit 6ad49b9cae
1 changed files with 6 additions and 5 deletions

View File

@ -91,13 +91,14 @@ bool Excitation::setupExcitation( TiXmlElement* Excite, unsigned int maxTS )
Excite->QueryDoubleAttribute("f0",&f0); Excite->QueryDoubleAttribute("f0",&f0);
CalcCustomExcitation(f0,maxTS,Excite->Attribute("Function")); CalcCustomExcitation(f0,maxTS,Excite->Attribute("Function"));
break; break;
default:
cerr << "Excitation::setupExcitation: Unknown excitation type: \"" << Excit_Type<< "\" !!" << endl;
return false;
} }
if (GetNyquistNum() == 0) { if (GetNyquistNum() == 0)
cerr << "openEMS: excitation setup failed!!" << endl; {
cerr << " Frequent causes include:" << endl; cerr << "Excitation::setupExcitation: Unknown error... excitation setup failed!!" << endl;
cerr << " - invalid excitation type (curently supported: 0,1,2,3,10)" << endl;
cerr << " - missing/invalid attributes for selected excitation type" << endl;
return false; return false;
} }