Changeset 12495


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

minor

Location:
issm/trunk-jpl/src/c
Files:
34 edited

Legend:

Unmodified
Added
Removed
  • issm/trunk-jpl/src/c/Container/DataSet.cpp

    r12493 r12495  
    133133        vector<Object*>::iterator object;
    134134
    135         if(this==NULL)_error2_(" trying to echo a NULL dataset");
     135        if(this==NULL)_error2_("trying to echo a NULL dataset");
    136136
    137137        _printf_(true,"DataSet echo: %i objects\n",objects.size());
     
    150150        vector<Object*>::iterator object;
    151151
    152         if(this==NULL)_error2_(" trying to echo a NULL dataset");
     152        if(this==NULL)_error2_("trying to echo a NULL dataset");
    153153
    154154        _printf_(true,"DataSet echo: %i objects\n",objects.size());
     
    194194
    195195        _assert_(this);
    196         if(!sorted)_error2_(" trying to binary search on a non-sorted dataset!");
     196        if(!sorted)_error2_("trying to binary search on a non-sorted dataset!");
    197197
    198198        /*Carry out a binary search on the sorted_ids: */
     
    259259        /*Only sort if we are not already sorted: */
    260260        if(!sorted){
    261                 _error2_(" not implemented yet!");
    262         }
    263 }
    264 /*}}}*/
     261                _error2_("not implemented yet!");
     262        }
     263}
     264/*}}}*/
  • issm/trunk-jpl/src/c/Container/Inputs.cpp

    r12493 r12495  
    213213
    214214        /*some checks: */
    215         if(!constrain_input) _error2_(" input " << EnumToStringx(constrain_enum) << " could not be found!");
     215        if(!constrain_input) _error2_("input " << EnumToStringx(constrain_enum) << " could not be found!");
    216216
    217217        /*Apply ContrainMin: */
     
    416416
    417417        /*some checks: */
    418         if(!xinput) _error2_(" input " << EnumToStringx(MeshXEnum) << " could not be found!");
    419         if(!yinput) _error2_(" input " << EnumToStringx(MeshYEnum) << " could not be found!");
     418        if(!xinput) _error2_("input " << EnumToStringx(MeshXEnum) << " could not be found!");
     419        if(!yinput) _error2_("input " << EnumToStringx(MeshYEnum) << " could not be found!");
    420420
    421421        /*Apply AXPY: */
  • issm/trunk-jpl/src/c/modules/DakotaResponsesx/DakotaResponsesx.cpp

    r12494 r12495  
    8686                }
    8787                else if (flag==NodalEnum){
    88                         _error2_(" nodal response functions not supported yet!");
     88                        _error2_("nodal response functions not supported yet!");
    8989
    9090                        /*increment response_pointer :*/
     
    104104                        }
    105105                }
    106                 else _error2_(" flag type " << flag << " not supported yet for response analysis");
     106                else _error2_("flag type " << flag << " not supported yet for response analysis");
    107107        }
    108108
  • issm/trunk-jpl/src/c/modules/Dakotax/DescriptorIndex.cpp

    r12494 r12495  
    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;
  • issm/trunk-jpl/src/c/modules/GetVectorFromInputsx/GetVectorFromInputsx.cpp

    r12494 r12495  
    3232        }
    3333        else{
    34                 _error2_(" vector type: " << EnumToStringx(type) << " not supported yet!");
     34                _error2_("vector type: " << EnumToStringx(type) << " not supported yet!");
    3535        }
    3636
  • issm/trunk-jpl/src/c/modules/InputUpdateFromDakotax/InputUpdateFromDakotax.cpp

    r12493 r12495  
    9595                }
    9696                else if (strncmp(descriptor,"indexed_",8)==0){
    97                         _error2_(" indexed variables not supported yet!");
     97                        _error2_("indexed variables not supported yet!");
    9898                }
    9999                else if (strncmp(descriptor,"nodal_",8)==0){
    100                         _error2_(" nodal variables not supported yet!");
     100                        _error2_("nodal variables not supported yet!");
    101101                }
    102102                else{
  • issm/trunk-jpl/src/c/modules/InterpFromMesh2dx/InterpFromMesh2dx.cpp

    r12493 r12495  
    5959
    6060        if((numcontours) && (interpolation_type==2)){
    61                 _error2_(" element interpolation_type with contours not supported yet!");
     61                _error2_("element interpolation_type with contours not supported yet!");
    6262        }
    6363
  • issm/trunk-jpl/src/c/modules/IoModelToConstraintsx/IoModelToConstraintsx.cpp

    r12494 r12495  
    3838        fid=iomodel->SetFilePointerToData(&code, &vector_layout,vector_enum);
    3939
    40         if(code!=7)_error2_(" expecting a IssmDouble vector for constraints with enum " << EnumToStringx(vector_enum));
    41         if(vector_layout!=1)_error2_(" expecting a nodal vector for constraints with enum " << EnumToStringx(vector_enum));
     40        if(code!=7)_error2_("expecting a IssmDouble vector for constraints with enum " << EnumToStringx(vector_enum));
     41        if(vector_layout!=1)_error2_("expecting a nodal vector for constraints with enum " << EnumToStringx(vector_enum));
    4242
    4343        /*Fetch vector:*/
  • issm/trunk-jpl/src/c/modules/MeshProfileIntersectionx/ElementSegment.cpp

    r12493 r12495  
    3838        if(    (edge1==IntersectEnum) && (edge2==IntersectEnum) && (edge3==IntersectEnum)   ){
    3939                /*This case is impossible: */
    40                 _error2_(" error: a line cannot go through 3 different vertices!");
     40                _error2_("error: a line cannot go through 3 different vertices!");
    4141        }
    4242        else if(    ((edge1==IntersectEnum) && (edge2==IntersectEnum)) || ((edge2==IntersectEnum) && (edge3==IntersectEnum)) || ((edge3==IntersectEnum) && (edge1==IntersectEnum))   ){
  • issm/trunk-jpl/src/c/modules/ModelProcessorx/CreateDataSets.cpp

    r12494 r12495  
    124124
    125125                default:
    126                         _error2_(" analysis_type: " << EnumToStringx(analysis_type) << " not supported yet!");
     126                        _error2_("analysis_type: " << EnumToStringx(analysis_type) << " not supported yet!");
    127127        }
    128128
  • issm/trunk-jpl/src/c/modules/ModelProcessorx/Dakota/CreateParametersDakota.cpp

    r12493 r12495  
    153153                        /*Fetch the mass flux segments necessary to compute the mass fluxes.  Build a DoubleMatArrayParam object out of them: */
    154154                        iomodel->FetchData(&array,&mdims_array,&ndims_array,&qmu_mass_flux_num_profiles,QmuMassFluxSegmentsEnum);
    155                         if(qmu_mass_flux_num_profiles==0)_error2_(" qmu_mass_flux_num_profiles is 0, when MassFlux computations were requested!");
     155                        if(qmu_mass_flux_num_profiles==0)_error2_("qmu_mass_flux_num_profiles is 0, when MassFlux computations were requested!");
    156156
    157157                        /*Go through segments, and extract those that belong to this cpu: */
  • issm/trunk-jpl/src/c/modules/NodeConnectivityx/NodeConnectivityx.cpp

    r12494 r12495  
    7171         * warn the user to increase the connectivity width: */
    7272        for(i=0;i<nods;i++){
    73                 if (*(connectivity+width*i+maxels)>maxels)_error2_(" max connectivity width reached (" << *(connectivity+width*i+maxels) << ")! increase width of connectivity table");
     73                if (*(connectivity+width*i+maxels)>maxels)_error2_("max connectivity width reached (" << *(connectivity+width*i+maxels) << ")! increase width of connectivity table");
    7474        }
    7575
  • issm/trunk-jpl/src/c/modules/Responsex/Responsex.cpp

    r12493 r12495  
    4646                case VelEnum:ElementResponsex(responses, elements,nodes, vertices, loads, materials, parameters,VelEnum,process_units); break;
    4747                case FrictionCoefficientEnum:NodalValuex(responses, FrictionCoefficientEnum,elements,nodes, vertices, loads, materials, parameters,process_units); break;
    48                 default: _error2_(" response descriptor \"" << response_descriptor << "\" not supported yet!"); break;
     48                default: _error2_("response descriptor \"" << response_descriptor << "\" not supported yet!"); break;
    4949                #else
    50                 default: _error2_(" ISSM was not compiled with responses capabilities, exiting!");
     50                default: _error2_("ISSM was not compiled with responses capabilities, exiting!");
    5151                #endif
    5252        }
  • issm/trunk-jpl/src/c/modules/Solverx/SolverxPetsc.cpp

    r12494 r12495  
    136136        /*Check convergence*/
    137137        KSPGetIterationNumber(ksp,&iteration_number);
    138         if (iteration_number<0) _error2_(" Solver diverged at iteration number: " << -iteration_number);
     138        if (iteration_number<0) _error2_("Solver diverged at iteration number: " << -iteration_number);
    139139
    140140        /*Free resources:*/
  • issm/trunk-jpl/src/c/objects/Bamg/Mesh.cpp

    r12494 r12495  
    55295529                                                        }
    55305530                                                        if (!ee.adj[k1]) {
    5531                                                                 _error2_(" adj edge " << BTh.GetId(ee) << ", nbe=" << nbe << ", Gh.vertices=" << Gh.vertices);
     5531                                                                _error2_("adj edge " << BTh.GetId(ee) << ", nbe=" << nbe << ", Gh.vertices=" << Gh.vertices);
    55325532                                                        }
    55335533                                                        pe = ee.adj[k1]; // next edge
  • issm/trunk-jpl/src/c/objects/DofIndexing.cpp

    r12494 r12495  
    143143                else this->sdoflist=NULL;
    144144        }
    145         else _error2_(" set of enum type " << EnumToStringx(setenum) << " not supported yet!");
     145        else _error2_("set of enum type " << EnumToStringx(setenum) << " not supported yet!");
    146146}
    147147/*}}}*/
  • issm/trunk-jpl/src/c/objects/Elements/Penta.cpp

    r12494 r12495  
    11331133        /*Make a copy of the original input: */
    11341134        input=(Input*)this->inputs->GetInput(enum_type);
    1135         if(!input)_error2_(" could not find old input with enum: " << EnumToStringx(enum_type));
     1135        if(!input)_error2_("could not find old input with enum: " << EnumToStringx(enum_type));
    11361136
    11371137        /*ArtificialNoise: */
     
    11531153                new_inputs[i]=(Input*)this->inputs->GetInput(enums[2*i+0]);
    11541154                old_inputs[i]=(Input*)this->inputs->GetInput(enums[2*i+1]);
    1155                 if(!new_inputs[i])_error2_(" could not find input with enum " << EnumToStringx(enums[2*i+0]));
    1156                 if(!old_inputs[i])_error2_(" could not find input with enum " << EnumToStringx(enums[2*i+0]));
     1155                if(!new_inputs[i])_error2_("could not find input with enum " << EnumToStringx(enums[2*i+0]));
     1156                if(!old_inputs[i])_error2_("could not find input with enum " << EnumToStringx(enums[2*i+0]));
    11571157        }
    11581158
     
    11861186                this->inputs->AddInput(new DoubleInput(name,(IssmDouble)scalar));
    11871187        }
    1188         else _error2_(" could not recognize nature of vector from code " << code);
     1188        else _error2_("could not recognize nature of vector from code " << code);
    11891189
    11901190}
     
    12681268                                this->inputs->AddInput(new DoubleInput(vector_enum,(IssmDouble)vector[index]));
    12691269                        }
    1270                         else _error2_(" could not recognize nature of vector from code " << code);
     1270                        else _error2_("could not recognize nature of vector from code " << code);
    12711271                }
    12721272                else {
     
    14641464        /*Make a copy of the original input: */
    14651465        input=(Input*)this->inputs->GetInput(enum_type);
    1466         if(!input)_error2_(" could not find old input with enum: " << EnumToStringx(enum_type));
     1466        if(!input)_error2_("could not find old input with enum: " << EnumToStringx(enum_type));
    14671467
    14681468        /*Scale: */
     
    18941894/*FUNCTION Penta::InputUpdateFromVector(int* vector, int name, int type);{{{*/
    18951895void  Penta::InputUpdateFromVector(int* vector, int name, int type){
    1896         _error2_(" not supported yet!");
     1896        _error2_("not supported yet!");
    18971897}
    18981898/*}}}*/
    18991899/*FUNCTION Penta::InputUpdateFromVector(bool* vector, int name, int type);{{{*/
    19001900void  Penta::InputUpdateFromVector(bool* vector, int name, int type){
    1901         _error2_(" not supported yet!");
     1901        _error2_("not supported yet!");
    19021902}
    19031903/*}}}*/
     
    56225622/*FUNCTION Penta::InputUpdateFromVectorDakota(int* vector, int name, int type);{{{*/
    56235623void  Penta::InputUpdateFromVectorDakota(int* vector, int name, int type){
    5624         _error2_(" not supported yet!");
     5624        _error2_("not supported yet!");
    56255625}
    56265626/*}}}*/
    56275627/*FUNCTION Penta::InputUpdateFromVectorDakota(bool* vector, int name, int type);{{{*/
    56285628void  Penta::InputUpdateFromVectorDakota(bool* vector, int name, int type){
    5629         _error2_(" not supported yet!");
     5629        _error2_("not supported yet!");
    56305630}
    56315631/*}}}*/
  • issm/trunk-jpl/src/c/objects/Elements/Tria.cpp

    r12494 r12495  
    12321232        /*Make a copy of the original input: */
    12331233        input=(Input*)this->inputs->GetInput(enum_type);
    1234         if(!input)_error2_(" could not find old input with enum: " << EnumToStringx(enum_type));
     1234        if(!input)_error2_("could not find old input with enum: " << EnumToStringx(enum_type));
    12351235
    12361236        /*ArtificialNoise: */
     
    12521252                new_inputs[i]=(Input*)this->inputs->GetInput(enums[2*i+0]);
    12531253                old_inputs[i]=(Input*)this->inputs->GetInput(enums[2*i+1]);
    1254                 if(!new_inputs[i])_error2_(" could not find input with enum " << EnumToStringx(enums[2*i+0]));
    1255                 if(!old_inputs[i])_error2_(" could not find input with enum " << EnumToStringx(enums[2*i+0]));
     1254                if(!new_inputs[i])_error2_("could not find input with enum " << EnumToStringx(enums[2*i+0]));
     1255                if(!old_inputs[i])_error2_("could not find input with enum " << EnumToStringx(enums[2*i+0]));
    12561256        }
    12571257
     
    12821282        else
    12831283         _error2_("object " << EnumToStringx(object_enum) << " not supported yet");
    1284         if(!oldinput)_error2_(" could not find old input with enum: " << EnumToStringx(enum_type));
     1284        if(!oldinput)_error2_("could not find old input with enum: " << EnumToStringx(enum_type));
    12851285        newinput=(Input*)oldinput->copy();
    12861286
     
    13121312        /*Make a copy of the original input: */
    13131313        input=(Input*)this->inputs->GetInput(enum_type);
    1314         if(!input)_error2_(" could not find old input with enum: " << EnumToStringx(enum_type));
     1314        if(!input)_error2_("could not find old input with enum: " << EnumToStringx(enum_type));
    13151315
    13161316        /*Scale: */
     
    16341634/*FUNCTION Tria::InputUpdateFromVector(int* vector, int name, int type);{{{*/
    16351635void  Tria::InputUpdateFromVector(int* vector, int name, int type){
    1636         _error2_(" not supported yet!");
     1636        _error2_("not supported yet!");
    16371637}
    16381638/*}}}*/
    16391639/*FUNCTION Tria::InputUpdateFromVector(bool* vector, int name, int type);{{{*/
    16401640void  Tria::InputUpdateFromVector(bool* vector, int name, int type){
    1641         _error2_(" not supported yet!");
     1641        _error2_("not supported yet!");
    16421642}
    16431643/*}}}*/
     
    16571657                this->inputs->AddInput(new DoubleInput(name,(int)scalar));
    16581658        }
    1659         else _error2_(" could not recognize nature of vector from code " << code);
     1659        else _error2_("could not recognize nature of vector from code " << code);
    16601660
    16611661}
     
    17391739                                this->inputs->AddInput(new DoubleInput(vector_enum,(IssmDouble)vector[index]));
    17401740                        }
    1741                         else _error2_(" could not recognize nature of vector from code " << code);
     1741                        else _error2_("could not recognize nature of vector from code " << code);
    17421742                }
    17431743                else {
     
    54335433/*FUNCTION Tria::InputUpdateFromVectorDakota(int* vector, int name, int type);{{{*/
    54345434void  Tria::InputUpdateFromVectorDakota(int* vector, int name, int type){
    5435         _error2_(" not supported yet!");
     5435        _error2_("not supported yet!");
    54365436}
    54375437/*}}}*/
    54385438/*FUNCTION Tria::InputUpdateFromVectorDakota(bool* vector, int name, int type);{{{*/
    54395439void  Tria::InputUpdateFromVectorDakota(bool* vector, int name, int type){
    5440         _error2_(" not supported yet!");
     5440        _error2_("not supported yet!");
    54415441}
    54425442/*}}}*/
  • issm/trunk-jpl/src/c/objects/Hook.cpp

    r12494 r12495  
    185185                        this->objects[i]=(Object*)dataset->GetObjectById(this->offsets+i,this->ids[i]); //remember the offset for later on.
    186186                        /*check the id is correct!: */
    187                         if (this->objects[i]->Id()!=this->ids[i]) _error2_(" wrong id: " << this->objects[i]->Id() << " vs " << this->ids[i] << "  in resolved pointer!");
     187                        if (this->objects[i]->Id()!=this->ids[i]) _error2_("wrong id: " << this->objects[i]->Id() << " vs " << this->ids[i] << "  in resolved pointer!");
    188188                }
    189189        }
     
    194194       
    195195        /*first, check that we only have one T object in our object list: */
    196         if (this->num!=1) _error2_(" trying to delivery a single hook object when hook holds " << this->num << " objects" << "\n");
     196        if (this->num!=1) _error2_("trying to delivery a single hook object when hook holds " << this->num << " objects" << "\n");
    197197
    198198        /*check NULL: */
  • issm/trunk-jpl/src/c/objects/Inputs/BoolInput.cpp

    r12493 r12495  
    112112/*}}}*/
    113113/*FUNCTION BoolInput::GetInputValue(int* pvalue){{{*/
    114 void BoolInput::GetInputValue(int* pvalue){_error2_(" not supported yet!");}
     114void BoolInput::GetInputValue(int* pvalue){_error2_("not supported yet!");}
    115115/*}}}*/
    116116/*FUNCTION BoolInput::GetInputValue(IssmPDouble* pvalue){{{*/
    117 void BoolInput::GetInputValue(IssmPDouble* pvalue){_error2_(" not supported yet!");}
     117void BoolInput::GetInputValue(IssmPDouble* pvalue){_error2_("not supported yet!");}
    118118/*}}}*/
    119119/*FUNCTION BoolInput::GetInputValue(IssmPDouble* pvalue,GaussTria* gauss){{{*/
    120 void BoolInput::GetInputValue(IssmPDouble* pvalue,GaussTria* gauss){_error2_(" not supported yet!");}
     120void BoolInput::GetInputValue(IssmPDouble* pvalue,GaussTria* gauss){_error2_("not supported yet!");}
    121121/*}}}*/
    122122/*FUNCTION BoolInput::GetInputValue(IssmPDouble* pvalue,GaussPenta* gauss){{{*/
    123 void BoolInput::GetInputValue(IssmPDouble* pvalue,GaussPenta* gauss){_error2_(" not supported yet!");}
     123void BoolInput::GetInputValue(IssmPDouble* pvalue,GaussPenta* gauss){_error2_("not supported yet!");}
    124124/*}}}*/
    125125/*FUNCTION BoolInput::GetInputDerivativeValue(IssmPDouble* derivativevalues, IssmPDouble* xyz_list, GaussTria* gauss){{{*/
    126 void BoolInput::GetInputDerivativeValue(IssmPDouble* derivativevalues, IssmPDouble* xyz_list, GaussTria* gauss){_error2_(" not supported yet!");}
     126void BoolInput::GetInputDerivativeValue(IssmPDouble* derivativevalues, IssmPDouble* xyz_list, GaussTria* gauss){_error2_("not supported yet!");}
    127127/*}}}*/
    128128/*FUNCTION BoolInput::GetInputDerivativeValue(IssmPDouble* derivativevalues, IssmPDouble* xyz_list, GaussPenta* gauss){{{*/
    129 void BoolInput::GetInputDerivativeValue(IssmPDouble* derivativevalues, IssmPDouble* xyz_list, GaussPenta* gauss){_error2_(" not supported yet!");}
     129void BoolInput::GetInputDerivativeValue(IssmPDouble* derivativevalues, IssmPDouble* xyz_list, GaussPenta* gauss){_error2_("not supported yet!");}
    130130/*}}}*/
    131131/*FUNCTION BoolInput::ChangeEnum{{{*/
     
    184184void BoolInput::GetVectorFromInputs(Vector* vector,int* doflist){
    185185
    186         _error2_(" not supporte yet!");
     186        _error2_("not supporte yet!");
    187187
    188188}
     
    191191void BoolInput::GetValuesPtr(IssmPDouble** pvalues,int* pnum_values){
    192192
    193         _error2_(" not supported yet!");
     193        _error2_("not supported yet!");
    194194
    195195}
  • issm/trunk-jpl/src/c/objects/Inputs/DoubleInput.cpp

    r12493 r12495  
    132132/*}}}*/
    133133/*FUNCTION DoubleInput::GetInputDerivativeValue(IssmPDouble* derivativevalues, IssmPDouble* xyz_list, GaussTria* gauss){{{*/
    134 void DoubleInput::GetInputDerivativeValue(IssmPDouble* derivativevalues, IssmPDouble* xyz_list, GaussTria* gauss){_error2_(" not supported yet!");}
     134void DoubleInput::GetInputDerivativeValue(IssmPDouble* derivativevalues, IssmPDouble* xyz_list, GaussTria* gauss){_error2_("not supported yet!");}
    135135/*}}}*/
    136136/*FUNCTION DoubleInput::GetInputDerivativeValue(IssmPDouble* derivativevalues, IssmPDouble* xyz_list, GaussPenta* gauss){{{*/
    137 void DoubleInput::GetInputDerivativeValue(IssmPDouble* derivativevalues, IssmPDouble* xyz_list, GaussPenta* gauss){_error2_(" not supported yet!");}
     137void DoubleInput::GetInputDerivativeValue(IssmPDouble* derivativevalues, IssmPDouble* xyz_list, GaussPenta* gauss){_error2_("not supported yet!");}
    138138/*}}}*/
    139139/*FUNCTION DoubleInput::GetVxStrainRate2d(IssmPDouble* epsilonvx,IssmPDouble* xyz_list, GaussTria* gauss){{{*/
     
    253253void DoubleInput::GetVectorFromInputs(Vector* vector,int* doflist){
    254254
    255         _error2_(" not supporte yet!");
     255        _error2_("not supporte yet!");
    256256
    257257}
     
    260260void DoubleInput::GetValuesPtr(IssmPDouble** pvalues,int* pnum_values){
    261261
    262         _error2_(" not supported yet!");
     262        _error2_("not supported yet!");
    263263
    264264}
  • issm/trunk-jpl/src/c/objects/Inputs/IntInput.cpp

    r12493 r12495  
    9999ElementResult* IntInput::SpawnResult(int step, IssmPDouble time){
    100100       
    101         _error2_(" not supported yet!");
     101        _error2_("not supported yet!");
    102102
    103103}
     
    106106/*Object functions*/
    107107/*FUNCTION IntInput::GetInputValue(bool* pvalue) {{{*/
    108 void IntInput::GetInputValue(bool* pvalue){_error2_(" not supported yet!");}
     108void IntInput::GetInputValue(bool* pvalue){_error2_("not supported yet!");}
    109109/*}}}*/
    110110/*FUNCTION IntInput::GetInputValue(int* pvalue){{{*/
     
    119119/*}}}*/
    120120/*FUNCTION IntInput::GetInputValue(IssmPDouble* pvalue,GaussTria* gauss){{{*/
    121 void IntInput::GetInputValue(IssmPDouble* pvalue,GaussTria* gauss){_error2_(" not supported yet!");}
     121void IntInput::GetInputValue(IssmPDouble* pvalue,GaussTria* gauss){_error2_("not supported yet!");}
    122122/*}}}*/
    123123/*FUNCTION IntInput::GetInputValue(IssmPDouble* pvalue,GaussPenta* gauss){{{*/
    124 void IntInput::GetInputValue(IssmPDouble* pvalue,GaussPenta* gauss){_error2_(" not supported yet!");}
     124void IntInput::GetInputValue(IssmPDouble* pvalue,GaussPenta* gauss){_error2_("not supported yet!");}
    125125/*}}}*/
    126126/*FUNCTION IntInput::GetInputDerivativeValue(IssmPDouble* derivativevalues, IssmPDouble* xyz_list, GaussTria* gauss){{{*/
    127 void IntInput::GetInputDerivativeValue(IssmPDouble* derivativevalues, IssmPDouble* xyz_list, GaussTria* gauss){_error2_(" not supported yet!");}
     127void IntInput::GetInputDerivativeValue(IssmPDouble* derivativevalues, IssmPDouble* xyz_list, GaussTria* gauss){_error2_("not supported yet!");}
    128128/*}}}*/
    129129/*FUNCTION IntInput::GetInputDerivativeValue(IssmPDouble* derivativevalues, IssmPDouble* xyz_list, GaussPenta* gauss){{{*/
    130 void IntInput::GetInputDerivativeValue(IssmPDouble* derivativevalues, IssmPDouble* xyz_list, GaussPenta* gauss){_error2_(" not supported yet!");}
     130void IntInput::GetInputDerivativeValue(IssmPDouble* derivativevalues, IssmPDouble* xyz_list, GaussPenta* gauss){_error2_("not supported yet!");}
    131131/*}}}*/
    132132/*FUNCTION IntInput::ChangeEnum{{{*/
     
    182182void IntInput::GetVectorFromInputs(Vector* vector,int* doflist){
    183183
    184         _error2_(" not supporte yet!");
     184        _error2_("not supporte yet!");
    185185
    186186}
     
    189189void IntInput::GetValuesPtr(IssmPDouble** pvalues,int* pnum_values){
    190190
    191         _error2_(" not supported yet!");
     191        _error2_("not supported yet!");
    192192
    193193}
  • issm/trunk-jpl/src/c/objects/IoModel.cpp

    r12494 r12495  
    266266                                        case 1:
    267267                                                /*Read the boolean and broadcast it to other cpus:*/
    268                                                 if(fread(&booleanint,sizeof(int),1,this->fid)!=1) _error2_(" could not read boolean ");
     268                                                if(fread(&booleanint,sizeof(int),1,this->fid)!=1) _error2_("could not read boolean ");
    269269                                                #ifdef _HAVE_MPI_
    270270                                                MPI_Bcast(&booleanint,1,MPI_INT,0,MPI_COMM_WORLD);
     
    277277                                        case 2:
    278278                                                /*Read the integer and broadcast it to other cpus:*/
    279                                                 if(fread(&integer,sizeof(int),1,this->fid)!=1) _error2_(" could not read integer ");
     279                                                if(fread(&integer,sizeof(int),1,this->fid)!=1) _error2_("could not read integer ");
    280280                                                #ifdef _HAVE_MPI_
    281281                                                MPI_Bcast(&integer,1,MPI_INT,0,MPI_COMM_WORLD);
     
    288288                                        case 3:
    289289                                                /*Read the scalar and broadcast it to other cpus:*/
    290                                                 if(fread(&scalar,sizeof(IssmPDouble),1,this->fid)!=1) _error2_(" could not read scalar ");
     290                                                if(fread(&scalar,sizeof(IssmPDouble),1,this->fid)!=1) _error2_("could not read scalar ");
    291291                                                #ifdef _HAVE_MPI_
    292292                                                MPI_Bcast(&scalar,1,MPI_DOUBLE,0,MPI_COMM_WORLD);
     
    299299                                        case 4:
    300300                                                /*We have to read a string from disk. First read the dimensions of the string, then the string: */
    301                                                 if(fread(&string_size,sizeof(int),1,this->fid)!=1) _error2_(" could not read length of string ");
     301                                                if(fread(&string_size,sizeof(int),1,this->fid)!=1) _error2_("could not read length of string ");
    302302                                                #ifdef _HAVE_MPI_
    303303                                                MPI_Bcast(&string_size,1,MPI_INT,0,MPI_COMM_WORLD);
     
    309309
    310310                                                        /*Read string, then broadcast: */
    311                                                         if(fread(string,string_size*sizeof(char),1,this->fid)!=1)_error2_("  could not read string ");
     311                                                        if(fread(string,string_size*sizeof(char),1,this->fid)!=1)_error2_(" could not read string ");
    312312                                                        #ifdef _HAVE_MPI_
    313313                                                        MPI_Bcast(string,string_size,MPI_CHAR,0,MPI_COMM_WORLD);
     
    457457        /*We have to read a boolean from disk. */
    458458        if(my_rank==0){ 
    459                 if(fread(&booleanint,sizeof(int),1,fid)!=1) _error2_(" could not read boolean ");
     459                if(fread(&booleanint,sizeof(int),1,fid)!=1) _error2_("could not read boolean ");
    460460        }
    461461        #ifdef _HAVE_MPI_
     
    487487        /*We have to read a integer from disk. First read the dimensions of the integer, then the integer: */
    488488        if(my_rank==0){ 
    489                 if(fread(&integer,sizeof(int),1,fid)!=1) _error2_(" could not read integer ");
     489                if(fread(&integer,sizeof(int),1,fid)!=1) _error2_("could not read integer ");
    490490        }
    491491
     
    518518        /*We have to read a scalar from disk. First read the dimensions of the scalar, then the scalar: */
    519519        if(my_rank==0){
    520                 if(fread(&scalar,sizeof(IssmPDouble),1,fid)!=1)_error2_(" could not read scalar ");
     520                if(fread(&scalar,sizeof(IssmPDouble),1,fid)!=1)_error2_("could not read scalar ");
    521521        }
    522522        #ifdef _HAVE_MPI_
     
    550550        /*We have to read a string from disk. First read the dimensions of the string, then the string: */
    551551        if(my_rank==0){ 
    552                 if(fread(&string_size,sizeof(int),1,fid)!=1) _error2_(" could not read length of string ");
     552                if(fread(&string_size,sizeof(int),1,fid)!=1) _error2_("could not read length of string ");
    553553        }
    554554
     
    564564                /*Read string on node 0, then broadcast: */
    565565                if(my_rank==0){ 
    566                         if(fread(string,string_size*sizeof(char),1,fid)!=1)_error2_("  could not read string ");
     566                        if(fread(string,string_size*sizeof(char),1,fid)!=1)_error2_(" could not read string ");
    567567                }
    568568                #ifdef _HAVE_MPI_
     
    732732        /*We have to read a bunch of strings from disk. First read the number of strings, and allocate: */
    733733        if(my_rank==0){ 
    734                 if(fread(&numstrings,sizeof(int),1,fid)!=1) _error2_(" could not read length of string array");
     734                if(fread(&numstrings,sizeof(int),1,fid)!=1) _error2_("could not read length of string array");
    735735        }
    736736        #ifdef _HAVE_MPI_
     
    747747                       
    748748                        if(my_rank==0){ 
    749                                 if(fread(&string_size,sizeof(int),1,fid)!=1) _error2_(" could not read length of string ");
     749                                if(fread(&string_size,sizeof(int),1,fid)!=1) _error2_("could not read length of string ");
    750750                        }
    751751                        #ifdef _HAVE_MPI_
     
    758758                                /*Read string on node 0, then broadcast: */
    759759                                if(my_rank==0){ 
    760                                         if(fread(string,string_size*sizeof(char),1,fid)!=1)_error2_("  could not read string ");
     760                                        if(fread(string,string_size*sizeof(char),1,fid)!=1)_error2_(" could not read string ");
    761761                                }
    762762                                #ifdef _HAVE_MPI_
  • issm/trunk-jpl/src/c/objects/Loads/Riftfront.cpp

    r12494 r12495  
    397397
    398398        /*enum of element? */
    399         if(elements[0]->ObjectEnum()!=TriaEnum)_error2_(" only Tria element allowed for Riftfront load!");
     399        if(elements[0]->ObjectEnum()!=TriaEnum)_error2_("only Tria element allowed for Riftfront load!");
    400400        tria1=(Tria*)elements[0];
    401401        tria2=(Tria*)elements[1];
     
    410410        tria1->GetInputValue(&h[0],nodes[0],ThicknessEnum);
    411411        tria2->GetInputValue(&h[1],nodes[1],ThicknessEnum);
    412         if (h[0]!=h[1])_error2_(" different thicknesses not supported for rift fronts");
     412        if (h[0]!=h[1])_error2_("different thicknesses not supported for rift fronts");
    413413        thickness=h[0];
    414414
     
    488488
    489489        /*enum of element? */
    490         if(elements[0]->ObjectEnum()!=TriaEnum)_error2_(" only Tria element allowed for Riftfront load!");
     490        if(elements[0]->ObjectEnum()!=TriaEnum)_error2_("only Tria element allowed for Riftfront load!");
    491491        tria1=(Tria*)elements[0];
    492492        tria2=(Tria*)elements[1];
     
    504504        tria1->GetInputValue(&h[0],nodes[0],ThicknessEnum);
    505505        tria2->GetInputValue(&h[1],nodes[1],ThicknessEnum);
    506         if (h[0]!=h[1])_error2_(" different thicknesses not supported for rift fronts");
     506        if (h[0]!=h[1])_error2_("different thicknesses not supported for rift fronts");
    507507        thickness=h[0];
    508508        tria1->GetInputValue(&b[0],nodes[0],BedEnum);
    509509        tria2->GetInputValue(&b[1],nodes[1],BedEnum);
    510         if (b[0]!=b[1])_error2_(" different beds not supported for rift fronts");
     510        if (b[0]!=b[1])_error2_("different beds not supported for rift fronts");
    511511        bed=b[0];
    512512
     
    585585
    586586        /*enum of element? */
    587         if(elements[0]->ObjectEnum()!=TriaEnum)_error2_(" only Tria element allowed for Riftfront load!");
     587        if(elements[0]->ObjectEnum()!=TriaEnum)_error2_("only Tria element allowed for Riftfront load!");
    588588
    589589        /*recover elements on both side of rift: */
     
    706706
    707707        /*enum of element? */
    708         if(elements[0]->ObjectEnum()!=TriaEnum)_error2_(" only Tria element allowed for Riftfront load!");
     708        if(elements[0]->ObjectEnum()!=TriaEnum)_error2_("only Tria element allowed for Riftfront load!");
    709709
    710710        /*recover elements on both side of rift: */
     
    751751
    752752        /*enum of element? */
    753         if(elements[0]->ObjectEnum()!=TriaEnum)_error2_(" only Tria element allowed for Riftfront load!");
     753        if(elements[0]->ObjectEnum()!=TriaEnum)_error2_("only Tria element allowed for Riftfront load!");
    754754
    755755        /*recover elements on both side of rift: */
     
    794794
    795795        /*enum of element? */
    796         if(elements[0]->ObjectEnum()!=TriaEnum)_error2_(" only Tria element allowed for Riftfront load!");
     796        if(elements[0]->ObjectEnum()!=TriaEnum)_error2_("only Tria element allowed for Riftfront load!");
    797797
    798798        /*recover elements on both side of rift: */
     
    844844
    845845        /*enum of element? */
    846         if(elements[0]->ObjectEnum()!=TriaEnum)_error2_(" only Tria element allowed for Riftfront load!");
     846        if(elements[0]->ObjectEnum()!=TriaEnum)_error2_("only Tria element allowed for Riftfront load!");
    847847
    848848        /*recover elements on both side of rift: */
  • issm/trunk-jpl/src/c/objects/Materials/Matice.cpp

    r12493 r12495  
    750750        #endif
    751751        else{
    752                 _error2_(" Mesh type not supported yet!");
     752                _error2_("Mesh type not supported yet!");
    753753        }
    754754
  • issm/trunk-jpl/src/c/objects/Numerics/ElementMatrix.cpp

    r12493 r12495  
    295295        }
    296296        else{
    297                 _error2_(" non dofsymmetrical matrix AddToGlobal routine not support yet!");
     297                _error2_("non dofsymmetrical matrix AddToGlobal routine not support yet!");
    298298        }
    299299
     
    332332        }
    333333        else{
    334                 _error2_(" non dofsymmetrical matrix AddToGlobal routine not support yet!");
     334                _error2_("non dofsymmetrical matrix AddToGlobal routine not support yet!");
    335335        }
    336336
  • issm/trunk-jpl/src/c/shared/Alloc/alloc.cpp

    r12493 r12495  
    3131        void* memptr=NULL;
    3232
    33         if(!size)_error2_(" attempting to 0 size allocation!");
     33        if(!size)_error2_("attempting to 0 size allocation!");
    3434
    3535        /* Use the c library to do the allocation: */
  • issm/trunk-jpl/src/c/shared/Numerics/GaussPoints.cpp

    r12494 r12495  
    16701670                if (iter >= MAX_GAUS_ITER) {
    16711671                        xDelete<IssmPDouble>(work);
    1672                         _error2_(" Max iterations exceeded for l=" << MAX_GAUS_ITER);
     1672                        _error2_("Max iterations exceeded for l=" << MAX_GAUS_ITER);
    16731673                }
    16741674        }
  • issm/trunk-jpl/src/c/shared/Numerics/IsInputConverged.cpp

    r12494 r12495  
    5353                else eps=0;
    5454        }
    55         else _error2_(" convergence criterion " << EnumToStringx(criterion_enum) << " not supported yet!");
     55        else _error2_("convergence criterion " << EnumToStringx(criterion_enum) << " not supported yet!");
    5656
    5757        /*Assign output pointers:*/
  • issm/trunk-jpl/src/c/shared/Numerics/Synchronize.sh

    r12365 r12495  
    135135void SetVerbosityLevel(int level){
    136136
    137         if(level<0) _error_("vebosity level should be a positive integer (user provided %i)",level);
     137        if(level<0) _error2_("vebosity level should be a positive integer (user provided " << level << ")");
    138138
    139139        verbositylevel = level;
  • issm/trunk-jpl/src/c/shared/Numerics/UnitConversion.cpp

    r12493 r12495  
    2929        if(direction_enum==IuToExtEnum) for(i=0;i<numvalues;i++)values[i]=values[i]*scale;
    3030        else if(direction_enum==ExtToIuEnum) for(i=0;i<numvalues;i++)values[i]=values[i]/scale;
    31         else _error2_(" wrong direction for unit conversion, either IuToExtEnum or ExtToIuEnum. ");
     31        else _error2_("wrong direction for unit conversion, either IuToExtEnum or ExtToIuEnum. ");
    3232
    3333}
  • issm/trunk-jpl/src/c/shared/String/DescriptorIndex.cpp

    r12494 r12495  
    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;
  • issm/trunk-jpl/src/c/shared/Threads/LaunchThread.cpp

    r12493 r12495  
    4444
    4545                if(pthread_create(threads+i,NULL,function,(void*)(handles+i))){
    46                         _error2_(" pthread_create error");
     46                        _error2_("pthread_create error");
    4747                }
    4848        }
    4949        for(i=0;i<num_threads;i++){
    5050                if(pthread_join(threads[i],(void**)&status)){
    51                         _error2_(" pthread_join error");
     51                        _error2_("pthread_join error");
    5252                }
    5353        }
  • issm/trunk-jpl/src/c/toolkits/plapack/patches/PlapackInvertMatrix.cpp

    r12493 r12495  
    5151
    5252        /*Some dimensions checks: */
    53         if (mA!=nA) _error2_(" trying to take the invert of a non-square matrix!");
     53        if (mA!=nA) _error2_("trying to take the invert of a non-square matrix!");
    5454
    5555        /* Set default Plapack parameters */
Note: See TracChangeset for help on using the changeset viewer.