Changeset 3392


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

Final bug fix

Location:
issm/trunk/src/c/objects
Files:
2 edited

Legend:

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

    r3385 r3392  
    104104
    105105        if(prop->h)this->h=(double*)xmalloc(this->numnodes*sizeof(double));
     106        else this->h=NULL;
    106107        if(prop->s)this->s=(double*)xmalloc(this->numnodes*sizeof(double));
     108        else this->s=NULL;
    107109        if(prop->b)this->b=(double*)xmalloc(this->numnodes*sizeof(double));
     110        else this->b=NULL;
    108111        if(prop->k)this->k=(double*)xmalloc(this->numnodes*sizeof(double));
     112        else this->k=NULL;
    109113        if(prop->melting)this->melting=(double*)xmalloc(this->numnodes*sizeof(double));
     114        else this->melting=NULL;
    110115        if(prop->accumulation)this->accumulation=(double*)xmalloc(this->numnodes*sizeof(double));
     116        else this->accumulation=NULL;
    111117        if(prop->geothermalflux)this->geothermalflux=(double*)xmalloc(this->numnodes*sizeof(double));
     118        else this->geothermalflux=NULL;
    112119
    113120        for(i=0;i<this->numnodes;i++){
  • issm/trunk/src/c/objects/Node.cpp

    r3390 r3392  
    5858}
    5959/*}}}*/
    60 /*FUNCTION Node destructeur{{{1*/
     60/*FUNCTION Node destructor{{{1*/
    6161Node::~Node(){
    6262        return;
Note: See TracChangeset for help on using the changeset viewer.