Changeset 5786


Ignore:
Timestamp:
09/13/10 16:20:06 (15 years ago)
Author:
Mathieu Morlighem
Message:

Fixed Kgg Serial

File:
1 edited

Legend:

Unmodified
Added
Removed
  • issm/trunk/src/c/Container/Nodes.cpp

    r5772 r5786  
    108108        numnodes=this->NumberOfNodes(analysis_type);
    109109
    110         truedofs=(int*)xcalloc(numnodes*maxdofspernode,sizeof(int)); //initialize to 0, so that we can pick up the max
    111         alltruedofs=(int*)xcalloc(numnodes*maxdofspernode,sizeof(int));
     110        if (numnodes*maxdofspernode){
     111                truedofs=(int*)xcalloc(numnodes*maxdofspernode,sizeof(int)); //initialize to 0, so that we can pick up the max
     112                alltruedofs=(int*)xcalloc(numnodes*maxdofspernode,sizeof(int));
     113        }
    112114
    113115        for (i=0;i<this->Size();i++){
Note: See TracChangeset for help on using the changeset viewer.