Ignore:
Timestamp:
08/14/12 16:58:21 (13 years ago)
Author:
Mathieu Morlighem
Message:

CHG: renaming _error2_ _error_

File:
1 edited

Legend:

Unmodified
Added
Removed
  • issm/trunk-jpl/src/c/classes/matrix/Matrix.cpp

    r12987 r13036  
    5151                this->pmatrix=new PetscMat(M,N);
    5252                #else
    53                 _error2_("Petsc matrix format not usable, as Petsc has not been compiled!");
     53                _error_("Petsc matrix format not usable, as Petsc has not been compiled!");
    5454                #endif
    5555        }
     
    5757                this->smatrix=new SeqMat(M,N);
    5858        }
    59         else _error2_("Matrix type: " << type << " not supported yet!");
     59        else _error_("Matrix type: " << type << " not supported yet!");
    6060
    6161}
     
    7474                this->pmatrix=new PetscMat(M,N,sparsity);
    7575                #else
    76                 _error2_("Petsc matrix format not usable, as Petsc has not been compiled!");
     76                _error_("Petsc matrix format not usable, as Petsc has not been compiled!");
    7777                #endif
    7878        }
     
    8080                this->smatrix=new SeqMat(M,N,sparsity);
    8181        }
    82         else _error2_("Matrix type: " << type << " not supported yet!");
     82        else _error_("Matrix type: " << type << " not supported yet!");
    8383}
    8484/*}}}*/
     
    9696                this->pmatrix=new PetscMat(serial_mat,M,N,sparsity);
    9797                #else
    98                 _error2_("Petsc matrix format not usable, as Petsc has not been compiled!");
     98                _error_("Petsc matrix format not usable, as Petsc has not been compiled!");
    9999                #endif
    100100        }
     
    102102                this->smatrix=new SeqMat(serial_mat,M,N,sparsity);
    103103        }
    104         else _error2_("Matrix type: " << type << " not supported yet!");
     104        else _error_("Matrix type: " << type << " not supported yet!");
    105105       
    106106}
     
    119119                this->pmatrix=new PetscMat(M,N,connectivity,numberofdofspernode);
    120120                #else
    121                 _error2_("Petsc matrix format not usable, as Petsc has not been compiled!");
     121                _error_("Petsc matrix format not usable, as Petsc has not been compiled!");
    122122                #endif
    123123        }
     
    125125                this->smatrix=new SeqMat(M,N,connectivity,numberofdofspernode);
    126126        }
    127         else _error2_("Matrix type: " << type << " not supported yet!");
     127        else _error_("Matrix type: " << type << " not supported yet!");
    128128       
    129129}
     
    136136                delete this->pmatrix;
    137137                #else
    138                 _error2_("Petsc matrix format not usable, as Petsc has not been compiled!");
     138                _error_("Petsc matrix format not usable, as Petsc has not been compiled!");
    139139                #endif
    140140        }
     
    142142                delete this->smatrix;
    143143        }
    144         else _error2_("Matrix type: " << type << " not supported yet!");
     144        else _error_("Matrix type: " << type << " not supported yet!");
    145145
    146146}
     
    159159                this->smatrix->Echo();
    160160        }
    161         else _error2_("Matrix type: " << type << " not supported yet!");
     161        else _error_("Matrix type: " << type << " not supported yet!");
    162162
    163163}
     
    175175        }
    176176        else{
    177                 _error2_("Matrix type: " << type << " not supported yet!");
     177                _error_("Matrix type: " << type << " not supported yet!");
    178178        }
    179179}
     
    192192                norm=this->smatrix->Norm(norm_type);
    193193        }
    194         else _error2_("Matrix type: " << type << " not supported yet!");
     194        else _error_("Matrix type: " << type << " not supported yet!");
    195195
    196196        return norm;
     
    208208                this->smatrix->GetSize(pM,pN);
    209209        }
    210         else _error2_("Matrix type: " << type << " not supported yet!");
     210        else _error_("Matrix type: " << type << " not supported yet!");
    211211       
    212212}
     
    223223                this->smatrix->GetLocalSize(pM,pN);
    224224        }
    225         else _error2_("Matrix type: " << type << " not supported yet!");
     225        else _error_("Matrix type: " << type << " not supported yet!");
    226226
    227227}
     
    238238                this->smatrix->MatMult(X->svector,AX->svector);
    239239        }
    240         else _error2_("Matrix type: " << type << " not supported yet!");
     240        else _error_("Matrix type: " << type << " not supported yet!");
    241241
    242242}
     
    257257                output->smatrix=this->smatrix->Duplicate();
    258258        }
    259         else _error2_("Matrix type: " << type << " not supported yet!");
     259        else _error_("Matrix type: " << type << " not supported yet!");
    260260       
    261261        return output;
     
    275275                output=this->smatrix->ToSerial();
    276276        }
    277         else _error2_("Matrix type: " << type << " not supported yet!");
     277        else _error_("Matrix type: " << type << " not supported yet!");
    278278
    279279
     
    292292                this->smatrix->SetValues(m,idxm,n,idxn,values,mode);
    293293        }
    294         else _error2_("Matrix type: " << type << " not supported yet!");
     294        else _error_("Matrix type: " << type << " not supported yet!");
    295295}
    296296/*}}}*/
     
    307307        }
    308308        else{
    309                 _error2_("Matrix type: " << type << " not supported yet!");
    310         }
    311 
    312 }
    313 /*}}}*/
     309                _error_("Matrix type: " << type << " not supported yet!");
     310        }
     311
     312}
     313/*}}}*/
Note: See TracChangeset for help on using the changeset viewer.