Changeset 7ecb2a8 for python/lib
- Timestamp:
- 05/03/19 10:41:40 (6 years ago)
- Branches:
- pympi
- Children:
- 1ef52ae
- Parents:
- 7889dc4
- git-author:
- Thomas Uram <turam@…> (05/03/19 10:41:40)
- git-committer:
- Thomas Uram <turam@…> (05/03/19 10:41:40)
- Location:
- python/lib
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
python/lib/gio.cxx
rd409b8c r7ecb2a8 43 43 #include <iostream> 44 44 45 void read_gio_float(const MPI_Comm &C, char* file_name, char* var_name, float* data, int field_count){45 void read_gio_float(const MPI_Comm C, char* file_name, char* var_name, float* data, int field_count){ 46 46 read_gio<float>(C, file_name,var_name,data,field_count); 47 47 } 48 void read_gio_double(const MPI_Comm &C, char* file_name, char* var_name, double* data, int field_count){48 void read_gio_double(const MPI_Comm C, char* file_name, char* var_name, double* data, int field_count){ 49 49 read_gio<double>(C, file_name,var_name,data,field_count); 50 50 } 51 void read_gio_uint16(const MPI_Comm &C, char* file_name, char* var_name, uint16_t* data, int field_count){51 void read_gio_uint16(const MPI_Comm C, char* file_name, char* var_name, uint16_t* data, int field_count){ 52 52 read_gio<uint16_t>(C, file_name,var_name,data,field_count); 53 53 } 54 void read_gio_int32(const MPI_Comm &C, char* file_name, char* var_name, int* data, int field_count){54 void read_gio_int32(const MPI_Comm C, char* file_name, char* var_name, int* data, int field_count){ 55 55 read_gio<int>(C, file_name,var_name,data,field_count); 56 56 } 57 void read_gio_int64(const MPI_Comm &C, char* file_name, char* var_name, int64_t* data, int field_count){57 void read_gio_int64(const MPI_Comm C, char* file_name, char* var_name, int64_t* data, int field_count){ 58 58 read_gio<int64_t>(C, file_name,var_name,data,field_count); 59 59 } 60 60 61 int64_t get_elem_num(const MPI_Comm &C, char* file_name){61 int64_t get_elem_num(const MPI_Comm C, char* file_name){ 62 62 gio::GenericIO reader(C, file_name); 63 63 reader.openAndReadHeader(gio::GenericIO::MismatchAllowed); … … 70 70 } 71 71 72 var_type get_variable_type(const MPI_Comm &C, char* file_name,char* var_name){72 var_type get_variable_type(const MPI_Comm C, char* file_name,char* var_name){ 73 73 gio::GenericIO reader(C, file_name); 74 74 std::vector<gio::GenericIO::VariableInfo> VI; … … 98 98 } 99 99 100 int get_variable_field_count(const MPI_Comm &C, char* file_name,char* var_name){100 int get_variable_field_count(const MPI_Comm C, char* file_name,char* var_name){ 101 101 gio::GenericIO reader(C, file_name); 102 102 std::vector<gio::GenericIO::VariableInfo> VI; … … 115 115 116 116 #ifndef GENERICIO_NO_MPI 117 extern "C" void inspect_gio(const MPI_Comm &C, char* file_name){117 extern "C" void inspect_gio(const MPI_Comm C, char* file_name){ 118 118 gio::GenericIO reader(C, file_name); 119 119 #else 120 extern "C" void inspect_gio(const MPI_Comm &C, char* file_name){120 extern "C" void inspect_gio(const MPI_Comm C, char* file_name){ 121 121 gio::GenericIO reader(C, file_name); 122 122 #endif -
python/lib/gio.h
r7889dc4 r7ecb2a8 47 47 template <class T> 48 48 #ifndef GENERICIO_NO_MPI 49 void read_gio(const MPI_Comm &C, char* file_name, std::string var_name, T*& data, int field_count){49 void read_gio(const MPI_Comm C, char* file_name, std::string var_name, T*& data, int field_count){ 50 50 gio::GenericIO reader(C, file_name); 51 51 #else … … 74 74 reader.close(); 75 75 } 76 extern "C" int64_t get_elem_num(const MPI_Comm &c, char* file_name);76 extern "C" int64_t get_elem_num(const MPI_Comm C, char* file_name); 77 77 78 extern "C" void read_gio_float (const MPI_Comm &C, char* file_name, char* var_name, float* data, int field_count);79 extern "C" void read_gio_double(const MPI_Comm &C, char* file_name, char* var_name, double* data, int field_count);80 extern "C" void read_gio_uint16 (const MPI_Comm &C, char* file_name, char* var_name, uint16_t* data, int field_count);81 extern "C" void read_gio_int32 (const MPI_Comm &C, char* file_name, char* var_name, int* data, int field_count);82 extern "C" void read_gio_int64 (const MPI_Comm &C, char* file_name, char* var_name, int64_t* data, int field_count);78 extern "C" void read_gio_float (const MPI_Comm C, char* file_name, char* var_name, float* data, int field_count); 79 extern "C" void read_gio_double(const MPI_Comm C, char* file_name, char* var_name, double* data, int field_count); 80 extern "C" void read_gio_uint16 (const MPI_Comm C, char* file_name, char* var_name, uint16_t* data, int field_count); 81 extern "C" void read_gio_int32 (const MPI_Comm C, char* file_name, char* var_name, int* data, int field_count); 82 extern "C" void read_gio_int64 (const MPI_Comm C, char* file_name, char* var_name, int64_t* data, int field_count); 83 83 enum var_type{ 84 84 float_type=0, … … 90 90 var_not_found=10 91 91 }; 92 extern "C" var_type get_variable_type(const MPI_Comm &C, char* file_name,char* var_name);93 extern "C" int get_variable_field_count(const MPI_Comm &C, char* file_name,char* var_name);94 extern "C" void inspect_gio(const MPI_Comm &C, char* file_name);92 extern "C" var_type get_variable_type(const MPI_Comm C, char* file_name,char* var_name); 93 extern "C" int get_variable_field_count(const MPI_Comm C, char* file_name,char* var_name); 94 extern "C" void inspect_gio(const MPI_Comm C, char* file_name);
Note: See TracChangeset
for help on using the changeset viewer.