Ignore:
Timestamp:
02/06/14 21:28:00 (11 years ago)
Author:
seroussi
Message:

BUG: fixed problem in the case of no initial field

File:
1 edited

Legend:

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

    r17175 r17225  
    14821482        for(int i=0;i<elements->Size();i++){
    14831483                Element* element=dynamic_cast<Element*>(elements->GetObjectByOffset(i));
    1484                 if(!doublearray) element->InputUpdateFromConstant(default_value,vector_enum);
     1484                if(!doublearray) element->AddInput(vector_enum,&default_value,P0Enum);
    14851485                else             element->InputCreate(doublearray,this,M,N,vector_layout,vector_enum,code);//we need i to index into elements.
    14861486        }
Note: See TracChangeset for help on using the changeset viewer.