Changeset 645 for XIOS/trunk/src/output/nc4_data_output.cpp
- Timestamp:
- 07/17/15 13:58:14 (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
XIOS/trunk/src/output/nc4_data_output.cpp
r633 r645 827 827 } 828 828 829 bool wtime = !(!field->operation.isEmpty() && field-> foperation->timeType() == func::CFunctor::once);829 bool wtime = !(!field->operation.isEmpty() && field->getOperationTimeType() == func::CFunctor::once); 830 830 831 831 if (wtime) … … 836 836 // << "_" << field->getRelFile()->output_freq.getValue(); 837 837 //oss 838 if (field-> foperation->timeType() == func::CFunctor::instant) coodinates.push_back(string("time_instant"));839 else if (field-> foperation->timeType() == func::CFunctor::centered) coodinates.push_back(string("time_centered"));838 if (field->getOperationTimeType() == func::CFunctor::instant) coodinates.push_back(string("time_instant")); 839 else if (field->getOperationTimeType() == func::CFunctor::centered) coodinates.push_back(string("time_centered")); 840 840 dims.push_back(timeid); 841 841 } … … 1136 1136 StdOStringStream oss; 1137 1137 string timeAxisId ; 1138 if (field-> foperation->timeType() == func::CFunctor::instant) timeAxisId="time_instant" ;1139 else if (field-> foperation->timeType() == func::CFunctor::centered) timeAxisId="time_centered" ;1138 if (field->getOperationTimeType() == func::CFunctor::instant) timeAxisId="time_instant" ; 1139 else if (field->getOperationTimeType() == func::CFunctor::centered) timeAxisId="time_centered" ; 1140 1140 1141 1141 StdString timeBoundId("time_counter_bounds"); 1142 1142 1143 1143 StdString timeAxisBoundId; 1144 if (field-> foperation->timeType() == func::CFunctor::instant) timeAxisBoundId="time_instant_bounds" ;1145 else if (field-> foperation->timeType() == func::CFunctor::centered) timeAxisBoundId="time_centered_bounds" ;1144 if (field->getOperationTimeType() == func::CFunctor::instant) timeAxisBoundId="time_instant_bounds" ; 1145 else if (field->getOperationTimeType() == func::CFunctor::centered) timeAxisBoundId="time_centered_bounds" ; 1146 1146 1147 1147 CArray<double,1> time_data(1) ; … … 1150 1150 CArray<double,1> time_data_bound(2); 1151 1151 1152 bool wtime = !(!field->operation.isEmpty() && (field-> foperation->timeType() == func::CFunctor::once));1152 bool wtime = !(!field->operation.isEmpty() && (field->getOperationTimeType() == func::CFunctor::once)); 1153 1153 1154 1154 if (wtime) 1155 1155 { 1156 1156 time_counter(0)= (Time(*field->last_Write_srv) + Time(*field->lastlast_Write_srv)) / 2; 1157 if (field-> foperation->timeType() == func::CFunctor::instant)1157 if (field->getOperationTimeType() == func::CFunctor::instant) 1158 1158 time_data(0) = Time(*field->last_Write_srv); 1159 else if (field-> foperation->timeType() == func::CFunctor::centered) time_data(0) = time_counter(0);1159 else if (field->getOperationTimeType() == func::CFunctor::centered) time_data(0) = time_counter(0); 1160 1160 1161 1161 time_counter_bound(0) = Time(*field->lastlast_Write_srv); 1162 1162 time_counter_bound(1) = Time(*field->last_Write_srv); 1163 if (field-> foperation->timeType() == func::CFunctor::instant)1163 if (field->getOperationTimeType() == func::CFunctor::instant) 1164 1164 time_data_bound(0) = time_data_bound(1) = Time(*field->last_Write_srv); 1165 else if (field-> foperation->timeType() == func::CFunctor::centered)1165 else if (field->getOperationTimeType() == func::CFunctor::centered) 1166 1166 { 1167 1167 time_data_bound(0) = time_counter_bound(0); … … 1253 1253 StdOStringStream oss; 1254 1254 1255 // if (field->operation.getValue().compare("once") == 0) return ; 1256 if (field->foperation->timeType() == func::CFunctor::once) return ; 1255 if (field->getOperationTimeType() == func::CFunctor::once) return ; 1257 1256 1258 1257 // oss << "time_" << field->operation.getValue() … … 1260 1259 1261 1260 // StdString axisid = oss.str(); 1262 // if (field-> foperation->timeType() == func::CFunctor::centered) axisid="time_centered" ;1263 // else if (field-> foperation->timeType() == func::CFunctor::instant) axisid="time_instant" ;1261 // if (field->getOperationTimeType() == func::CFunctor::centered) axisid="time_centered" ; 1262 // else if (field->getOperationTimeType() == func::CFunctor::instant) axisid="time_instant" ; 1264 1263 1265 1264 StdString axisid("time_centered") ; … … 1268 1267 StdString timeBoundId("axis_nbounds"); 1269 1268 1270 if (field-> foperation->timeType() == func::CFunctor::instant)1269 if (field->getOperationTimeType() == func::CFunctor::instant) 1271 1270 { 1272 1271 axisid = "time_instant";
Note: See TracChangeset
for help on using the changeset viewer.