- Timestamp:
- Nov 25, 2008, 4:51:39 PM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/eam_branch_20081124/Ohana/src/opihi/cmd.data/subset.c
r7917 r20839 28 28 /* check size of ivec, tvec: must match */ 29 29 30 REALLOCATE (ovec[0].elements , float, MAX (tvec[0].Nelements, 1));30 REALLOCATE (ovec[0].elements.Flt, opihi_flt, MAX (tvec[0].Nelements, 1)); 31 31 for (j = i = 0; i < tvec[0].Nelements; i++) { 32 if (tvec[0].elements [i]) {33 ovec[0].elements [j] = ivec[0].elements[i];32 if (tvec[0].elements.Flt[i]) { 33 ovec[0].elements.Flt[j] = ivec[0].elements.Flt[i]; 34 34 j++; 35 35 } 36 36 } 37 37 ovec[0].Nelements = j; 38 REALLOCATE (ovec[0].elements , float, MAX (ovec[0].Nelements, 1));38 REALLOCATE (ovec[0].elements.Flt, opihi_flt, MAX (ovec[0].Nelements, 1)); 39 39 40 40 DeleteVector (tvec);
Note:
See TracChangeset
for help on using the changeset viewer.
