1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768 |
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- #include "Lemma"
-
- using namespace Lemma;
-
- #ifdef LEMMAUSEVTK
- #include "matplot.h"
- using namespace matplot;
- #endif
-
- int main() {
-
- std::string datfile;
-
- datfile = "126.obs";
-
- DataReaderFemUBC* Reader = DataReaderFemUBC::New();
- DataFEM* thedata = DataFEM::New();
-
- Reader->SetDataFEM(thedata);
-
- try {
- Reader->ReadData(datfile,1);
- } catch(std::exception& e) {
- exit(EXIT_FAILURE);
- }
-
- std::cout << *Reader << std::endl;
- std::cout << *thedata << std::endl;
-
-
- thedata->Delete();
- Reader->Delete();
-
- return EXIT_SUCCESS;
- }
|