Advertisement
Guest User

Untitled

a guest
Apr 21st, 2019
72
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.63 KB | None | 0 0
  1. #include "./Data/SurfaceData.h"
  2. #include "./Services/IntegrationService.h"
  3. #include "./phs_math/surface.h"
  4.  
  5. using namespace std;
  6. using namespace surface;
  7.  
  8. int main (int argc, char **argv) {
  9. GOOGLE_PROTOBUF_VERIFY_VERSION;
  10.  
  11. SURFACE * sur = new_SURFACE(5, 5);
  12.  
  13. Field_2D dataProtocol;
  14.  
  15. SurfaceData *surfaceData = new SurfaceData();
  16. surfaceData->setProtocol(&dataProtocol);
  17.  
  18. IntegrationService<Field_2D>* service = new IntegrationService<Field_2D>(surfaceData);
  19. service->setInterpreter("python3");
  20. service->runFunc("plot.py");
  21.  
  22. google::protobuf::ShutdownProtobufLibrary();
  23. return 0;
  24. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement