Changeset 4246
- Timestamp:
- 06/25/10 17:54:43 (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
issm/trunk/src/c/objects/Patch.cpp
r4236 r4246 48 48 //allocate and fill with NaN: 49 49 this->values=(double*)xmalloc(this->numcols*this->numrows*sizeof(double)); 50 for(i=0;i<this->num cols;i++){51 for(j=0;j<this->num rows;j++){52 *(this->values+i*this->numcols+j)=NAN;50 for(i=0;i<this->numrows;i++){ 51 for(j=0;j<this->numcols;j++){ 52 this->values[i*this->numcols+j]=NAN; 53 53 } 54 54 }
Note:
See TracChangeset
for help on using the changeset viewer.