Changeset 11733


Ignore:
Timestamp:
03/19/12 20:11:11 (13 years ago)
Author:
Eric.Larour
Message:

Adding issm toolkit

Location:
issm/trunk-jpl/src/c/toolkits
Files:
6 added
2 edited

Legend:

Unmodified
Added
Removed
  • issm/trunk-jpl/src/c/toolkits/double/MatlabVectorToDoubleVector.cpp

    r11695 r11733  
    8080
    8181                /*allocate and memcpy*/
    82                 vector=(double*)xmalloc(rows*sizeof(double));
    83                 memcpy(vector,mxvector_ptr,rows*sizeof(double));
     82                if(rows){
     83                        vector=(double*)xmalloc(rows*sizeof(double));
     84                        memcpy(vector,mxvector_ptr,rows*sizeof(double));
     85                }
     86                else{
     87                        vector=NULL;
     88                }
    8489        }
    8590
  • issm/trunk-jpl/src/c/toolkits/toolkits.h

    r11695 r11733  
    2222#include "./double/double.h"
    2323#include "./toolkitsenums.h"
     24#include "./issm/issmtoolkit.h"
    2425
    2526#endif
Note: See TracChangeset for help on using the changeset viewer.