Changeset 25079


Ignore:
Timestamp:
06/19/20 17:49:13 (5 years ago)
Author:
Eric.Larour
Message:

CHG: added compressed matrix in the FetchDataToDataSet routine.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • issm/trunk-jpl/src/c/classes/IoModel.cpp

    r24750 r25079  
    17801780                          }
    17811781                        break;
     1782                case 10: //Compressed matrix
     1783                          {
     1784                        this->FetchData(&doublearray,&M,&N,vector_name);
     1785                        if(!doublearray) _error_("\""<<vector_name<<"\" not found in binary file");
     1786
     1787                        int* ids = xNew<int>(N);
     1788                        for(int i=0;i<N;i++) ids[i] = i;
     1789
     1790                        for(int i=0;i<elements->Size();i++){
     1791                                Element* element=xDynamicCast<Element*>(elements->GetObjectByOffset(i));
     1792                                element->DatasetInputCreate(doublearray,M,N,ids,N,inputs2,this,input_enum);
     1793                        }
     1794                        xDelete<int>(ids);
     1795                          }
     1796                        break;
     1797
    17821798                default:
    17831799                        _error_("data code " << code << " not supported yet (detected while processing \""<<vector_name<<"\")");
Note: See TracChangeset for help on using the changeset viewer.