Ignore:
Timestamp:
06/21/12 10:10:34 (13 years ago)
Author:
Mathieu Morlighem
Message:

replaced all _error_ to _error2_

File:
1 edited

Legend:

Unmodified
Added
Removed
  • issm/trunk-jpl/src/c/modules/Dakotax/DescriptorIndex.cpp

    r12493 r12494  
    2323        /*retrieve first token, separated by underscore: */
    2424        pch = strtok (descriptor,"_");
    25         if(!pch)_error2_("" << " descriptor " << descriptor << " is not correctly formatted!");
     25        if(!pch)_error2_(" descriptor " << descriptor << " is not correctly formatted!");
    2626
    2727        if (strncmp(pch,"scaled",6)==0){
    2828                /*we have a scaled variable. recover the root: */
    2929                pch = strtok (NULL, "_");
    30                 if(!pch)_error2_("" << " scaled descriptor " << descriptor << " is not correctly formatted!");
     30                if(!pch)_error2_(" scaled descriptor " << descriptor << " is not correctly formatted!");
    3131                memcpy(root,pch,(strlen(pch)+1)*sizeof(char));
    3232
     
    4444                /*we have an indexed variable. recover the root: */
    4545                pch = strtok (NULL, "_");
    46                 if(!pch)_error2_("" << " indexed descriptor " << descriptor << " is not correctly formatted!");
     46                if(!pch)_error2_(" indexed descriptor " << descriptor << " is not correctly formatted!");
    4747                memcpy(root,pch,(strlen(pch)+1)*sizeof(char));
    4848                /*now recover  the index: */
    4949                pch = strtok (NULL, "_");
    50                 if(!pch)_error2_("" << " indexed descriptor " << descriptor << " is not correctly formatted!");
     50                if(!pch)_error2_(" indexed descriptor " << descriptor << " is not correctly formatted!");
    5151                sscanf(pch,"%i",pindex);
    5252                return IndexedEnum;
     
    5555                /*we have an indexed variable. recover the root: */
    5656                pch = strtok (NULL, "_");
    57                 if(!pch)_error2_("" << " nodal descriptor " << descriptor << " is not correctly formatted!");
     57                if(!pch)_error2_(" nodal descriptor " << descriptor << " is not correctly formatted!");
    5858                memcpy(root,pch,(strlen(pch)+1)*sizeof(char));
    5959                /*now recover  the index: */
    6060                pch = strtok (NULL, "_");
    61                 if(!pch)_error2_("" << " nodal descriptor " << descriptor << " is not correctly formatted!");
     61                if(!pch)_error2_(" nodal descriptor " << descriptor << " is not correctly formatted!");
    6262                sscanf(pch,"%i",pindex);
    6363                return NodalEnum;
Note: See TracChangeset for help on using the changeset viewer.