oasis-cpp-interface.h 5.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101
  1. #include <string>
  2. // Class OASISMCT provides access to all OASIS3 procedures via the C++-Fortran interface
  3. // ecev3 - was OASIS3
  4. class OASISMCT
  5. {
  6. public : static const int CLIM_Apple = 1;
  7. public : static const int CLIM_BadName = -2;
  8. public : static const int CLIM_BadPort = -3;
  9. public : static const int CLIM_BadTaskId = -15;
  10. public : static const int CLIM_BadType = -4;
  11. public : static const int CLIM_Box = 2;
  12. public : static const int CLIM_Clength = 32;
  13. public : static const int CLIM_ContPvm = 0;
  14. public : static const int CLIM_Double = 8;
  15. public : static const int CLIM_Down = -20;
  16. public : static const int CLIM_FastExit = -1;
  17. public : static const int CLIM_FirstCall = -12;
  18. public : static const int CLIM_Group = -14;
  19. public : static const int CLIM_In = 1;
  20. public : static const int CLIM_IncSize = -8;
  21. public : static const int CLIM_IncStep = -7;
  22. public : static const int CLIM_InitBuff = -17;
  23. public : static const int CLIM_InOut = 2;
  24. public : static const int CLIM_Integer = 1;
  25. public : static const int CLIM_LdX = 5;
  26. public : static const int CLIM_Length = 3;
  27. public : static const int CLIM_MaxCodes = -22;
  28. public : static const int CLIM_MaxSegments = 338;
  29. public : static const int CLIM_Mpi = -22;
  30. public : static const int CLIM_NoTask = -16;
  31. public : static const int CLIM_NotClim = -9;
  32. public : static const int CLIM_NotStep = -6;
  33. public : static const int CLIM_Offset = 2;
  34. public : static const int CLIM_Ok = 0;
  35. public : static const int CLIM_Orange = 3;
  36. public : static const int CLIM_Out = 0;
  37. public : static const int CLIM_Pack = -18;
  38. public : static const int CLIM_ParSize = 2*CLIM_MaxSegments+2;
  39. public : static const int CLIM_PbRoute = -13;
  40. public : static const int CLIM_Pvm = -11;
  41. public : static const int CLIM_PvmExit = -21;
  42. public : static const int CLIM_Real = 4;
  43. public : static const int CLIM_Segments = 2;
  44. public : static const int CLIM_Serial = 0;
  45. public : static const int CLIM_SizeX = 3;
  46. public : static const int CLIM_SizeY = 4;
  47. public : static const int CLIM_StopPvm = 1;
  48. public : static const int CLIM_Strategy = 1;
  49. public : static const int CLIM_TimeOut = -10;
  50. public : static const int CLIM_Unpack = -19;
  51. public : static const int CLIM_Void = 0;
  52. public : static const int ip_accumul = 3;
  53. public : static const int ip_auxilary = 7;
  54. public : static const int ip_average = 2;
  55. public : static const int ip_exported = 1;
  56. public : static const int ip_expout = 5;
  57. public : static const int ip_ignored = 2;
  58. public : static const int ip_ignout = 6;
  59. public : static const int ip_input = 3;
  60. public : static const int ip_instant = 1;
  61. public : static const int ip_max = 5;
  62. public : static const int ip_min = 4;
  63. public : static const int ip_output = 4;
  64. public : static const int OASIS_Double = 8;
  65. public : static const int OASIS_DoubleDef = -5;
  66. public : static const int OASIS_FromRest = 10;
  67. public : static const int OASIS_FromRestOut = 13;
  68. public : static const int OASIS_In = 21; // ecev3 - was 1
  69. public : static const int OASIS_InOut = 2;
  70. public : static const int OASIS_Input = 11;
  71. public : static const int OASIS_LocTrans = 5;
  72. public : static const int OASIS_NotDef = -2;
  73. public : static const int OASIS_NotFreq = -23;
  74. public : static const int OASIS_Ok = 0;
  75. public : static const int OASIS_Out = 20; // ecev3 - was 0
  76. public : static const int OASIS_Output = 7;
  77. public : static const int OASIS_Real = 4;
  78. public : static const int OASIS_Recvd = 3;
  79. public : static const int OASIS_RecvOut = 12;
  80. public : static const int OASIS_Sent = 4;
  81. public : static const int OASIS_SentOut = 8;
  82. public : static const int OASIS_ToRest = 6;
  83. public : static const int OASIS_ToRestOut = 9;
  84. public : static int init_comp(int *, std::string);
  85. public : static int get_localcomm(int &);
  86. public : static int terminate(void);
  87. public : static int abort(int , std::string, std::string, int );
  88. public : static int create_couplcomm(int, int, int *);
  89. public : static int def_partition(int *, int *, int);
  90. public : static int def_var(int *, std::string, int, int *, int, int *, int);
  91. public : static int enddef(void);
  92. public : static int put_1d(int, int, double *, int);
  93. public : static int put_2d(int, int, double *, int, int);
  94. public : static int get_1d(int, int, double *, int);
  95. public : static int get_2d(int, int, double *, int, int);
  96. };