Changeset 16501
- Timestamp:
- 10/22/13 08:36:41 (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
issm/trunk-jpl/src/c/classes/IoModel.cpp
r16499 r16501 1081 1081 void IoModel::FetchMultipleData(char*** pstrings,int* pnumstrings,int data_enum){ 1082 1082 1083 int my_rank; 1084 1085 int i; 1086 int num_instances; 1087 int* codes=NULL; 1083 int num_instances; 1088 1084 1089 1085 /*output: */ … … 1094 1090 char *string = NULL; 1095 1091 int string_size; 1092 int *codes = NULL; 1096 1093 int *code = NULL; 1097 1094 fpos_t *file_positions = NULL; 1098 1095 1099 1096 /*recover my_rank:*/ 1100 my_rank=IssmComm::GetRank();1097 int my_rank=IssmComm::GetRank(); 1101 1098 1102 1099 /*Get file pointers to beginning of the data (multiple instances of it): */ … … 1106 1103 strings=xNew<char*>(num_instances); 1107 1104 1108 for(i =0;i<num_instances;i++){1105 for(int i=0;i<num_instances;i++){ 1109 1106 1110 1107 if(my_rank==0){ … … 1139 1136 /*Free ressources:*/ 1140 1137 xDelete<int>(codes); 1138 xDelete<fpos_t>(file_positions); 1141 1139 1142 1140 /*Assign output pointers: */ … … 1148 1146 void IoModel::FetchMultipleData(IssmDouble*** pmatrices,int** pmdims,int** pndims, int* pnumrecords,int data_enum){ 1149 1147 1150 int i; 1151 int num_instances; 1148 int num_instances; 1152 1149 fpos_t* file_positions=NULL; 1153 1150 … … 1231 1228 1232 1229 /*Free ressources:*/ 1230 xDelete<fpos_t>(file_positions); 1233 1231 xDelete<int>(codes); 1234 1232
Note:
See TracChangeset
for help on using the changeset viewer.