Changeset 3401


Ignore:
Timestamp:
04/05/10 15:55:11 (15 years ago)
Author:
Mathieu Morlighem
Message:

bug fix

File:
1 edited

Legend:

Unmodified
Added
Removed
  • issm/trunk/src/c/objects/Penta.cpp

    r3400 r3401  
    250250
    251251        /*Update internal data if inputs holds new values: */
    252         inputs->Recover("thickness",&this->properties.h[0],1,dofs,6,(void**)nodes);
    253         inputs->Recover("surface",&this->properties.s[0],1,dofs,6,(void**)nodes);
    254         inputs->Recover("bed",&this->properties.b[0],1,dofs,6,(void**)nodes);
    255         inputs->Recover("drag",&this->properties.k[0],1,dofs,6,(void**)nodes);
    256         inputs->Recover("melting",&this->properties.melting[0],1,dofs,6,(void**)nodes);
    257         inputs->Recover("accumulation_param",&this->properties.accumulation[0],1,dofs,6,(void**)nodes);
     252        if (this->properties.h)              inputs->Recover("thickness",&this->properties.h[0],1,dofs,6,(void**)nodes);
     253        if (this->properties.s)              inputs->Recover("surface",&this->properties.s[0],1,dofs,6,(void**)nodes);
     254        if (this->properties.b)              inputs->Recover("bed",&this->properties.b[0],1,dofs,6,(void**)nodes);
     255        if (this->properties.k)              inputs->Recover("drag",&this->properties.k[0],1,dofs,6,(void**)nodes);
     256        if (this->properties.melting)        inputs->Recover("melting",&this->properties.melting[0],1,dofs,6,(void**)nodes);
     257        if (this->properties.accumulation)   inputs->Recover("accumulation",&this->properties.accumulation[0],1,dofs,6,(void**)nodes);
     258        if (this->properties.geothermalflux) inputs->Recover("geothermalflux",&this->properties.geothermalflux[0],1,dofs,6,(void**)nodes);
    258259
    259260        //Update material if necessary
Note: See TracChangeset for help on using the changeset viewer.