00001 #ifndef _MY_MainAppMPI_ 00002 #define _MY_MainAppMPI_ 00003 #include "mainapp.h" 00004 00005 00009 class MainAppMPI : public MainApp 00010 { 00011 private: 00012 std::string appendRankInFileName(std::string fileName); 00013 00014 protected: 00015 std::ofstream out; 00016 00017 bool runningInParallel(); 00018 int getNProcess(); 00019 int getRank(); 00020 Point3D getLocalP0(); 00021 Point3D getLocalP1(); 00022 std::vector<unsigned> getLocalNElems(); 00023 void setLocalTriangulation(); 00024 void printLocalTriangulation(); 00025 00026 /* 00027 DynamicBase* getDynamicModule(); 00028 TransportBase* getTransportModule(); 00029 */ 00030 public: 00031 MainAppMPI(); 00032 ~MainAppMPI(); 00033 void execute(std::string fileName); 00034 }; 00035 00036 #endif