Changeset 12495
- Timestamp:
- 06/21/12 10:14:12 (13 years ago)
- Location:
- issm/trunk-jpl/src/c
- Files:
-
- 34 edited
Legend:
- Unmodified
- Added
- Removed
-
issm/trunk-jpl/src/c/Container/DataSet.cpp
r12493 r12495 133 133 vector<Object*>::iterator object; 134 134 135 if(this==NULL)_error2_(" 135 if(this==NULL)_error2_("trying to echo a NULL dataset"); 136 136 137 137 _printf_(true,"DataSet echo: %i objects\n",objects.size()); … … 150 150 vector<Object*>::iterator object; 151 151 152 if(this==NULL)_error2_(" 152 if(this==NULL)_error2_("trying to echo a NULL dataset"); 153 153 154 154 _printf_(true,"DataSet echo: %i objects\n",objects.size()); … … 194 194 195 195 _assert_(this); 196 if(!sorted)_error2_(" 196 if(!sorted)_error2_("trying to binary search on a non-sorted dataset!"); 197 197 198 198 /*Carry out a binary search on the sorted_ids: */ … … 259 259 /*Only sort if we are not already sorted: */ 260 260 if(!sorted){ 261 _error2_(" 262 } 263 } 264 /*}}}*/ 261 _error2_("not implemented yet!"); 262 } 263 } 264 /*}}}*/ -
issm/trunk-jpl/src/c/Container/Inputs.cpp
r12493 r12495 213 213 214 214 /*some checks: */ 215 if(!constrain_input) _error2_(" 215 if(!constrain_input) _error2_("input " << EnumToStringx(constrain_enum) << " could not be found!"); 216 216 217 217 /*Apply ContrainMin: */ … … 416 416 417 417 /*some checks: */ 418 if(!xinput) _error2_(" 419 if(!yinput) _error2_(" 418 if(!xinput) _error2_("input " << EnumToStringx(MeshXEnum) << " could not be found!"); 419 if(!yinput) _error2_("input " << EnumToStringx(MeshYEnum) << " could not be found!"); 420 420 421 421 /*Apply AXPY: */ -
issm/trunk-jpl/src/c/modules/DakotaResponsesx/DakotaResponsesx.cpp
r12494 r12495 86 86 } 87 87 else if (flag==NodalEnum){ 88 _error2_(" 88 _error2_("nodal response functions not supported yet!"); 89 89 90 90 /*increment response_pointer :*/ … … 104 104 } 105 105 } 106 else _error2_(" 106 else _error2_("flag type " << flag << " not supported yet for response analysis"); 107 107 } 108 108 -
issm/trunk-jpl/src/c/modules/Dakotax/DescriptorIndex.cpp
r12494 r12495 23 23 /*retrieve first token, separated by underscore: */ 24 24 pch = strtok (descriptor,"_"); 25 if(!pch)_error2_(" 25 if(!pch)_error2_("descriptor " << descriptor << " is not correctly formatted!"); 26 26 27 27 if (strncmp(pch,"scaled",6)==0){ 28 28 /*we have a scaled variable. recover the root: */ 29 29 pch = strtok (NULL, "_"); 30 if(!pch)_error2_(" 30 if(!pch)_error2_("scaled descriptor " << descriptor << " is not correctly formatted!"); 31 31 memcpy(root,pch,(strlen(pch)+1)*sizeof(char)); 32 32 … … 44 44 /*we have an indexed variable. recover the root: */ 45 45 pch = strtok (NULL, "_"); 46 if(!pch)_error2_(" 46 if(!pch)_error2_("indexed descriptor " << descriptor << " is not correctly formatted!"); 47 47 memcpy(root,pch,(strlen(pch)+1)*sizeof(char)); 48 48 /*now recover the index: */ 49 49 pch = strtok (NULL, "_"); 50 if(!pch)_error2_(" 50 if(!pch)_error2_("indexed descriptor " << descriptor << " is not correctly formatted!"); 51 51 sscanf(pch,"%i",pindex); 52 52 return IndexedEnum; … … 55 55 /*we have an indexed variable. recover the root: */ 56 56 pch = strtok (NULL, "_"); 57 if(!pch)_error2_(" 57 if(!pch)_error2_("nodal descriptor " << descriptor << " is not correctly formatted!"); 58 58 memcpy(root,pch,(strlen(pch)+1)*sizeof(char)); 59 59 /*now recover the index: */ 60 60 pch = strtok (NULL, "_"); 61 if(!pch)_error2_(" 61 if(!pch)_error2_("nodal descriptor " << descriptor << " is not correctly formatted!"); 62 62 sscanf(pch,"%i",pindex); 63 63 return NodalEnum; -
issm/trunk-jpl/src/c/modules/GetVectorFromInputsx/GetVectorFromInputsx.cpp
r12494 r12495 32 32 } 33 33 else{ 34 _error2_(" 34 _error2_("vector type: " << EnumToStringx(type) << " not supported yet!"); 35 35 } 36 36 -
issm/trunk-jpl/src/c/modules/InputUpdateFromDakotax/InputUpdateFromDakotax.cpp
r12493 r12495 95 95 } 96 96 else if (strncmp(descriptor,"indexed_",8)==0){ 97 _error2_(" 97 _error2_("indexed variables not supported yet!"); 98 98 } 99 99 else if (strncmp(descriptor,"nodal_",8)==0){ 100 _error2_(" 100 _error2_("nodal variables not supported yet!"); 101 101 } 102 102 else{ -
issm/trunk-jpl/src/c/modules/InterpFromMesh2dx/InterpFromMesh2dx.cpp
r12493 r12495 59 59 60 60 if((numcontours) && (interpolation_type==2)){ 61 _error2_(" 61 _error2_("element interpolation_type with contours not supported yet!"); 62 62 } 63 63 -
issm/trunk-jpl/src/c/modules/IoModelToConstraintsx/IoModelToConstraintsx.cpp
r12494 r12495 38 38 fid=iomodel->SetFilePointerToData(&code, &vector_layout,vector_enum); 39 39 40 if(code!=7)_error2_(" 41 if(vector_layout!=1)_error2_(" 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)); 42 42 43 43 /*Fetch vector:*/ -
issm/trunk-jpl/src/c/modules/MeshProfileIntersectionx/ElementSegment.cpp
r12493 r12495 38 38 if( (edge1==IntersectEnum) && (edge2==IntersectEnum) && (edge3==IntersectEnum) ){ 39 39 /*This case is impossible: */ 40 _error2_(" 40 _error2_("error: a line cannot go through 3 different vertices!"); 41 41 } 42 42 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 124 124 125 125 default: 126 _error2_(" 126 _error2_("analysis_type: " << EnumToStringx(analysis_type) << " not supported yet!"); 127 127 } 128 128 -
issm/trunk-jpl/src/c/modules/ModelProcessorx/Dakota/CreateParametersDakota.cpp
r12493 r12495 153 153 /*Fetch the mass flux segments necessary to compute the mass fluxes. Build a DoubleMatArrayParam object out of them: */ 154 154 iomodel->FetchData(&array,&mdims_array,&ndims_array,&qmu_mass_flux_num_profiles,QmuMassFluxSegmentsEnum); 155 if(qmu_mass_flux_num_profiles==0)_error2_(" 155 if(qmu_mass_flux_num_profiles==0)_error2_("qmu_mass_flux_num_profiles is 0, when MassFlux computations were requested!"); 156 156 157 157 /*Go through segments, and extract those that belong to this cpu: */ -
issm/trunk-jpl/src/c/modules/NodeConnectivityx/NodeConnectivityx.cpp
r12494 r12495 71 71 * warn the user to increase the connectivity width: */ 72 72 for(i=0;i<nods;i++){ 73 if (*(connectivity+width*i+maxels)>maxels)_error2_(" 73 if (*(connectivity+width*i+maxels)>maxels)_error2_("max connectivity width reached (" << *(connectivity+width*i+maxels) << ")! increase width of connectivity table"); 74 74 } 75 75 -
issm/trunk-jpl/src/c/modules/Responsex/Responsex.cpp
r12493 r12495 46 46 case VelEnum:ElementResponsex(responses, elements,nodes, vertices, loads, materials, parameters,VelEnum,process_units); break; 47 47 case FrictionCoefficientEnum:NodalValuex(responses, FrictionCoefficientEnum,elements,nodes, vertices, loads, materials, parameters,process_units); break; 48 default: _error2_(" 48 default: _error2_("response descriptor \"" << response_descriptor << "\" not supported yet!"); break; 49 49 #else 50 default: _error2_(" 50 default: _error2_("ISSM was not compiled with responses capabilities, exiting!"); 51 51 #endif 52 52 } -
issm/trunk-jpl/src/c/modules/Solverx/SolverxPetsc.cpp
r12494 r12495 136 136 /*Check convergence*/ 137 137 KSPGetIterationNumber(ksp,&iteration_number); 138 if (iteration_number<0) _error2_(" 138 if (iteration_number<0) _error2_("Solver diverged at iteration number: " << -iteration_number); 139 139 140 140 /*Free resources:*/ -
issm/trunk-jpl/src/c/objects/Bamg/Mesh.cpp
r12494 r12495 5529 5529 } 5530 5530 if (!ee.adj[k1]) { 5531 _error2_(" 5531 _error2_("adj edge " << BTh.GetId(ee) << ", nbe=" << nbe << ", Gh.vertices=" << Gh.vertices); 5532 5532 } 5533 5533 pe = ee.adj[k1]; // next edge -
issm/trunk-jpl/src/c/objects/DofIndexing.cpp
r12494 r12495 143 143 else this->sdoflist=NULL; 144 144 } 145 else _error2_(" 145 else _error2_("set of enum type " << EnumToStringx(setenum) << " not supported yet!"); 146 146 } 147 147 /*}}}*/ -
issm/trunk-jpl/src/c/objects/Elements/Penta.cpp
r12494 r12495 1133 1133 /*Make a copy of the original input: */ 1134 1134 input=(Input*)this->inputs->GetInput(enum_type); 1135 if(!input)_error2_(" 1135 if(!input)_error2_("could not find old input with enum: " << EnumToStringx(enum_type)); 1136 1136 1137 1137 /*ArtificialNoise: */ … … 1153 1153 new_inputs[i]=(Input*)this->inputs->GetInput(enums[2*i+0]); 1154 1154 old_inputs[i]=(Input*)this->inputs->GetInput(enums[2*i+1]); 1155 if(!new_inputs[i])_error2_(" 1156 if(!old_inputs[i])_error2_(" 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])); 1157 1157 } 1158 1158 … … 1186 1186 this->inputs->AddInput(new DoubleInput(name,(IssmDouble)scalar)); 1187 1187 } 1188 else _error2_(" 1188 else _error2_("could not recognize nature of vector from code " << code); 1189 1189 1190 1190 } … … 1268 1268 this->inputs->AddInput(new DoubleInput(vector_enum,(IssmDouble)vector[index])); 1269 1269 } 1270 else _error2_(" 1270 else _error2_("could not recognize nature of vector from code " << code); 1271 1271 } 1272 1272 else { … … 1464 1464 /*Make a copy of the original input: */ 1465 1465 input=(Input*)this->inputs->GetInput(enum_type); 1466 if(!input)_error2_(" 1466 if(!input)_error2_("could not find old input with enum: " << EnumToStringx(enum_type)); 1467 1467 1468 1468 /*Scale: */ … … 1894 1894 /*FUNCTION Penta::InputUpdateFromVector(int* vector, int name, int type);{{{*/ 1895 1895 void Penta::InputUpdateFromVector(int* vector, int name, int type){ 1896 _error2_(" 1896 _error2_("not supported yet!"); 1897 1897 } 1898 1898 /*}}}*/ 1899 1899 /*FUNCTION Penta::InputUpdateFromVector(bool* vector, int name, int type);{{{*/ 1900 1900 void Penta::InputUpdateFromVector(bool* vector, int name, int type){ 1901 _error2_(" 1901 _error2_("not supported yet!"); 1902 1902 } 1903 1903 /*}}}*/ … … 5622 5622 /*FUNCTION Penta::InputUpdateFromVectorDakota(int* vector, int name, int type);{{{*/ 5623 5623 void Penta::InputUpdateFromVectorDakota(int* vector, int name, int type){ 5624 _error2_(" 5624 _error2_("not supported yet!"); 5625 5625 } 5626 5626 /*}}}*/ 5627 5627 /*FUNCTION Penta::InputUpdateFromVectorDakota(bool* vector, int name, int type);{{{*/ 5628 5628 void Penta::InputUpdateFromVectorDakota(bool* vector, int name, int type){ 5629 _error2_(" 5629 _error2_("not supported yet!"); 5630 5630 } 5631 5631 /*}}}*/ -
issm/trunk-jpl/src/c/objects/Elements/Tria.cpp
r12494 r12495 1232 1232 /*Make a copy of the original input: */ 1233 1233 input=(Input*)this->inputs->GetInput(enum_type); 1234 if(!input)_error2_(" 1234 if(!input)_error2_("could not find old input with enum: " << EnumToStringx(enum_type)); 1235 1235 1236 1236 /*ArtificialNoise: */ … … 1252 1252 new_inputs[i]=(Input*)this->inputs->GetInput(enums[2*i+0]); 1253 1253 old_inputs[i]=(Input*)this->inputs->GetInput(enums[2*i+1]); 1254 if(!new_inputs[i])_error2_(" 1255 if(!old_inputs[i])_error2_(" 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])); 1256 1256 } 1257 1257 … … 1282 1282 else 1283 1283 _error2_("object " << EnumToStringx(object_enum) << " not supported yet"); 1284 if(!oldinput)_error2_(" 1284 if(!oldinput)_error2_("could not find old input with enum: " << EnumToStringx(enum_type)); 1285 1285 newinput=(Input*)oldinput->copy(); 1286 1286 … … 1312 1312 /*Make a copy of the original input: */ 1313 1313 input=(Input*)this->inputs->GetInput(enum_type); 1314 if(!input)_error2_(" 1314 if(!input)_error2_("could not find old input with enum: " << EnumToStringx(enum_type)); 1315 1315 1316 1316 /*Scale: */ … … 1634 1634 /*FUNCTION Tria::InputUpdateFromVector(int* vector, int name, int type);{{{*/ 1635 1635 void Tria::InputUpdateFromVector(int* vector, int name, int type){ 1636 _error2_(" 1636 _error2_("not supported yet!"); 1637 1637 } 1638 1638 /*}}}*/ 1639 1639 /*FUNCTION Tria::InputUpdateFromVector(bool* vector, int name, int type);{{{*/ 1640 1640 void Tria::InputUpdateFromVector(bool* vector, int name, int type){ 1641 _error2_(" 1641 _error2_("not supported yet!"); 1642 1642 } 1643 1643 /*}}}*/ … … 1657 1657 this->inputs->AddInput(new DoubleInput(name,(int)scalar)); 1658 1658 } 1659 else _error2_(" 1659 else _error2_("could not recognize nature of vector from code " << code); 1660 1660 1661 1661 } … … 1739 1739 this->inputs->AddInput(new DoubleInput(vector_enum,(IssmDouble)vector[index])); 1740 1740 } 1741 else _error2_(" 1741 else _error2_("could not recognize nature of vector from code " << code); 1742 1742 } 1743 1743 else { … … 5433 5433 /*FUNCTION Tria::InputUpdateFromVectorDakota(int* vector, int name, int type);{{{*/ 5434 5434 void Tria::InputUpdateFromVectorDakota(int* vector, int name, int type){ 5435 _error2_(" 5435 _error2_("not supported yet!"); 5436 5436 } 5437 5437 /*}}}*/ 5438 5438 /*FUNCTION Tria::InputUpdateFromVectorDakota(bool* vector, int name, int type);{{{*/ 5439 5439 void Tria::InputUpdateFromVectorDakota(bool* vector, int name, int type){ 5440 _error2_(" 5440 _error2_("not supported yet!"); 5441 5441 } 5442 5442 /*}}}*/ -
issm/trunk-jpl/src/c/objects/Hook.cpp
r12494 r12495 185 185 this->objects[i]=(Object*)dataset->GetObjectById(this->offsets+i,this->ids[i]); //remember the offset for later on. 186 186 /*check the id is correct!: */ 187 if (this->objects[i]->Id()!=this->ids[i]) _error2_(" 187 if (this->objects[i]->Id()!=this->ids[i]) _error2_("wrong id: " << this->objects[i]->Id() << " vs " << this->ids[i] << " in resolved pointer!"); 188 188 } 189 189 } … … 194 194 195 195 /*first, check that we only have one T object in our object list: */ 196 if (this->num!=1) _error2_(" 196 if (this->num!=1) _error2_("trying to delivery a single hook object when hook holds " << this->num << " objects" << "\n"); 197 197 198 198 /*check NULL: */ -
issm/trunk-jpl/src/c/objects/Inputs/BoolInput.cpp
r12493 r12495 112 112 /*}}}*/ 113 113 /*FUNCTION BoolInput::GetInputValue(int* pvalue){{{*/ 114 void BoolInput::GetInputValue(int* pvalue){_error2_(" 114 void BoolInput::GetInputValue(int* pvalue){_error2_("not supported yet!");} 115 115 /*}}}*/ 116 116 /*FUNCTION BoolInput::GetInputValue(IssmPDouble* pvalue){{{*/ 117 void BoolInput::GetInputValue(IssmPDouble* pvalue){_error2_(" 117 void BoolInput::GetInputValue(IssmPDouble* pvalue){_error2_("not supported yet!");} 118 118 /*}}}*/ 119 119 /*FUNCTION BoolInput::GetInputValue(IssmPDouble* pvalue,GaussTria* gauss){{{*/ 120 void BoolInput::GetInputValue(IssmPDouble* pvalue,GaussTria* gauss){_error2_(" 120 void BoolInput::GetInputValue(IssmPDouble* pvalue,GaussTria* gauss){_error2_("not supported yet!");} 121 121 /*}}}*/ 122 122 /*FUNCTION BoolInput::GetInputValue(IssmPDouble* pvalue,GaussPenta* gauss){{{*/ 123 void BoolInput::GetInputValue(IssmPDouble* pvalue,GaussPenta* gauss){_error2_(" 123 void BoolInput::GetInputValue(IssmPDouble* pvalue,GaussPenta* gauss){_error2_("not supported yet!");} 124 124 /*}}}*/ 125 125 /*FUNCTION BoolInput::GetInputDerivativeValue(IssmPDouble* derivativevalues, IssmPDouble* xyz_list, GaussTria* gauss){{{*/ 126 void BoolInput::GetInputDerivativeValue(IssmPDouble* derivativevalues, IssmPDouble* xyz_list, GaussTria* gauss){_error2_(" 126 void BoolInput::GetInputDerivativeValue(IssmPDouble* derivativevalues, IssmPDouble* xyz_list, GaussTria* gauss){_error2_("not supported yet!");} 127 127 /*}}}*/ 128 128 /*FUNCTION BoolInput::GetInputDerivativeValue(IssmPDouble* derivativevalues, IssmPDouble* xyz_list, GaussPenta* gauss){{{*/ 129 void BoolInput::GetInputDerivativeValue(IssmPDouble* derivativevalues, IssmPDouble* xyz_list, GaussPenta* gauss){_error2_(" 129 void BoolInput::GetInputDerivativeValue(IssmPDouble* derivativevalues, IssmPDouble* xyz_list, GaussPenta* gauss){_error2_("not supported yet!");} 130 130 /*}}}*/ 131 131 /*FUNCTION BoolInput::ChangeEnum{{{*/ … … 184 184 void BoolInput::GetVectorFromInputs(Vector* vector,int* doflist){ 185 185 186 _error2_(" 186 _error2_("not supporte yet!"); 187 187 188 188 } … … 191 191 void BoolInput::GetValuesPtr(IssmPDouble** pvalues,int* pnum_values){ 192 192 193 _error2_(" 193 _error2_("not supported yet!"); 194 194 195 195 } -
issm/trunk-jpl/src/c/objects/Inputs/DoubleInput.cpp
r12493 r12495 132 132 /*}}}*/ 133 133 /*FUNCTION DoubleInput::GetInputDerivativeValue(IssmPDouble* derivativevalues, IssmPDouble* xyz_list, GaussTria* gauss){{{*/ 134 void DoubleInput::GetInputDerivativeValue(IssmPDouble* derivativevalues, IssmPDouble* xyz_list, GaussTria* gauss){_error2_(" 134 void DoubleInput::GetInputDerivativeValue(IssmPDouble* derivativevalues, IssmPDouble* xyz_list, GaussTria* gauss){_error2_("not supported yet!");} 135 135 /*}}}*/ 136 136 /*FUNCTION DoubleInput::GetInputDerivativeValue(IssmPDouble* derivativevalues, IssmPDouble* xyz_list, GaussPenta* gauss){{{*/ 137 void DoubleInput::GetInputDerivativeValue(IssmPDouble* derivativevalues, IssmPDouble* xyz_list, GaussPenta* gauss){_error2_(" 137 void DoubleInput::GetInputDerivativeValue(IssmPDouble* derivativevalues, IssmPDouble* xyz_list, GaussPenta* gauss){_error2_("not supported yet!");} 138 138 /*}}}*/ 139 139 /*FUNCTION DoubleInput::GetVxStrainRate2d(IssmPDouble* epsilonvx,IssmPDouble* xyz_list, GaussTria* gauss){{{*/ … … 253 253 void DoubleInput::GetVectorFromInputs(Vector* vector,int* doflist){ 254 254 255 _error2_(" 255 _error2_("not supporte yet!"); 256 256 257 257 } … … 260 260 void DoubleInput::GetValuesPtr(IssmPDouble** pvalues,int* pnum_values){ 261 261 262 _error2_(" 262 _error2_("not supported yet!"); 263 263 264 264 } -
issm/trunk-jpl/src/c/objects/Inputs/IntInput.cpp
r12493 r12495 99 99 ElementResult* IntInput::SpawnResult(int step, IssmPDouble time){ 100 100 101 _error2_(" 101 _error2_("not supported yet!"); 102 102 103 103 } … … 106 106 /*Object functions*/ 107 107 /*FUNCTION IntInput::GetInputValue(bool* pvalue) {{{*/ 108 void IntInput::GetInputValue(bool* pvalue){_error2_(" 108 void IntInput::GetInputValue(bool* pvalue){_error2_("not supported yet!");} 109 109 /*}}}*/ 110 110 /*FUNCTION IntInput::GetInputValue(int* pvalue){{{*/ … … 119 119 /*}}}*/ 120 120 /*FUNCTION IntInput::GetInputValue(IssmPDouble* pvalue,GaussTria* gauss){{{*/ 121 void IntInput::GetInputValue(IssmPDouble* pvalue,GaussTria* gauss){_error2_(" 121 void IntInput::GetInputValue(IssmPDouble* pvalue,GaussTria* gauss){_error2_("not supported yet!");} 122 122 /*}}}*/ 123 123 /*FUNCTION IntInput::GetInputValue(IssmPDouble* pvalue,GaussPenta* gauss){{{*/ 124 void IntInput::GetInputValue(IssmPDouble* pvalue,GaussPenta* gauss){_error2_(" 124 void IntInput::GetInputValue(IssmPDouble* pvalue,GaussPenta* gauss){_error2_("not supported yet!");} 125 125 /*}}}*/ 126 126 /*FUNCTION IntInput::GetInputDerivativeValue(IssmPDouble* derivativevalues, IssmPDouble* xyz_list, GaussTria* gauss){{{*/ 127 void IntInput::GetInputDerivativeValue(IssmPDouble* derivativevalues, IssmPDouble* xyz_list, GaussTria* gauss){_error2_(" 127 void IntInput::GetInputDerivativeValue(IssmPDouble* derivativevalues, IssmPDouble* xyz_list, GaussTria* gauss){_error2_("not supported yet!");} 128 128 /*}}}*/ 129 129 /*FUNCTION IntInput::GetInputDerivativeValue(IssmPDouble* derivativevalues, IssmPDouble* xyz_list, GaussPenta* gauss){{{*/ 130 void IntInput::GetInputDerivativeValue(IssmPDouble* derivativevalues, IssmPDouble* xyz_list, GaussPenta* gauss){_error2_(" 130 void IntInput::GetInputDerivativeValue(IssmPDouble* derivativevalues, IssmPDouble* xyz_list, GaussPenta* gauss){_error2_("not supported yet!");} 131 131 /*}}}*/ 132 132 /*FUNCTION IntInput::ChangeEnum{{{*/ … … 182 182 void IntInput::GetVectorFromInputs(Vector* vector,int* doflist){ 183 183 184 _error2_(" 184 _error2_("not supporte yet!"); 185 185 186 186 } … … 189 189 void IntInput::GetValuesPtr(IssmPDouble** pvalues,int* pnum_values){ 190 190 191 _error2_(" 191 _error2_("not supported yet!"); 192 192 193 193 } -
issm/trunk-jpl/src/c/objects/IoModel.cpp
r12494 r12495 266 266 case 1: 267 267 /*Read the boolean and broadcast it to other cpus:*/ 268 if(fread(&booleanint,sizeof(int),1,this->fid)!=1) _error2_(" 268 if(fread(&booleanint,sizeof(int),1,this->fid)!=1) _error2_("could not read boolean "); 269 269 #ifdef _HAVE_MPI_ 270 270 MPI_Bcast(&booleanint,1,MPI_INT,0,MPI_COMM_WORLD); … … 277 277 case 2: 278 278 /*Read the integer and broadcast it to other cpus:*/ 279 if(fread(&integer,sizeof(int),1,this->fid)!=1) _error2_(" 279 if(fread(&integer,sizeof(int),1,this->fid)!=1) _error2_("could not read integer "); 280 280 #ifdef _HAVE_MPI_ 281 281 MPI_Bcast(&integer,1,MPI_INT,0,MPI_COMM_WORLD); … … 288 288 case 3: 289 289 /*Read the scalar and broadcast it to other cpus:*/ 290 if(fread(&scalar,sizeof(IssmPDouble),1,this->fid)!=1) _error2_(" 290 if(fread(&scalar,sizeof(IssmPDouble),1,this->fid)!=1) _error2_("could not read scalar "); 291 291 #ifdef _HAVE_MPI_ 292 292 MPI_Bcast(&scalar,1,MPI_DOUBLE,0,MPI_COMM_WORLD); … … 299 299 case 4: 300 300 /*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_(" 301 if(fread(&string_size,sizeof(int),1,this->fid)!=1) _error2_("could not read length of string "); 302 302 #ifdef _HAVE_MPI_ 303 303 MPI_Bcast(&string_size,1,MPI_INT,0,MPI_COMM_WORLD); … … 309 309 310 310 /*Read string, then broadcast: */ 311 if(fread(string,string_size*sizeof(char),1,this->fid)!=1)_error2_(" 311 if(fread(string,string_size*sizeof(char),1,this->fid)!=1)_error2_(" could not read string "); 312 312 #ifdef _HAVE_MPI_ 313 313 MPI_Bcast(string,string_size,MPI_CHAR,0,MPI_COMM_WORLD); … … 457 457 /*We have to read a boolean from disk. */ 458 458 if(my_rank==0){ 459 if(fread(&booleanint,sizeof(int),1,fid)!=1) _error2_(" 459 if(fread(&booleanint,sizeof(int),1,fid)!=1) _error2_("could not read boolean "); 460 460 } 461 461 #ifdef _HAVE_MPI_ … … 487 487 /*We have to read a integer from disk. First read the dimensions of the integer, then the integer: */ 488 488 if(my_rank==0){ 489 if(fread(&integer,sizeof(int),1,fid)!=1) _error2_(" 489 if(fread(&integer,sizeof(int),1,fid)!=1) _error2_("could not read integer "); 490 490 } 491 491 … … 518 518 /*We have to read a scalar from disk. First read the dimensions of the scalar, then the scalar: */ 519 519 if(my_rank==0){ 520 if(fread(&scalar,sizeof(IssmPDouble),1,fid)!=1)_error2_(" 520 if(fread(&scalar,sizeof(IssmPDouble),1,fid)!=1)_error2_("could not read scalar "); 521 521 } 522 522 #ifdef _HAVE_MPI_ … … 550 550 /*We have to read a string from disk. First read the dimensions of the string, then the string: */ 551 551 if(my_rank==0){ 552 if(fread(&string_size,sizeof(int),1,fid)!=1) _error2_(" 552 if(fread(&string_size,sizeof(int),1,fid)!=1) _error2_("could not read length of string "); 553 553 } 554 554 … … 564 564 /*Read string on node 0, then broadcast: */ 565 565 if(my_rank==0){ 566 if(fread(string,string_size*sizeof(char),1,fid)!=1)_error2_(" 566 if(fread(string,string_size*sizeof(char),1,fid)!=1)_error2_(" could not read string "); 567 567 } 568 568 #ifdef _HAVE_MPI_ … … 732 732 /*We have to read a bunch of strings from disk. First read the number of strings, and allocate: */ 733 733 if(my_rank==0){ 734 if(fread(&numstrings,sizeof(int),1,fid)!=1) _error2_(" 734 if(fread(&numstrings,sizeof(int),1,fid)!=1) _error2_("could not read length of string array"); 735 735 } 736 736 #ifdef _HAVE_MPI_ … … 747 747 748 748 if(my_rank==0){ 749 if(fread(&string_size,sizeof(int),1,fid)!=1) _error2_(" 749 if(fread(&string_size,sizeof(int),1,fid)!=1) _error2_("could not read length of string "); 750 750 } 751 751 #ifdef _HAVE_MPI_ … … 758 758 /*Read string on node 0, then broadcast: */ 759 759 if(my_rank==0){ 760 if(fread(string,string_size*sizeof(char),1,fid)!=1)_error2_(" 760 if(fread(string,string_size*sizeof(char),1,fid)!=1)_error2_(" could not read string "); 761 761 } 762 762 #ifdef _HAVE_MPI_ -
issm/trunk-jpl/src/c/objects/Loads/Riftfront.cpp
r12494 r12495 397 397 398 398 /*enum of element? */ 399 if(elements[0]->ObjectEnum()!=TriaEnum)_error2_(" 399 if(elements[0]->ObjectEnum()!=TriaEnum)_error2_("only Tria element allowed for Riftfront load!"); 400 400 tria1=(Tria*)elements[0]; 401 401 tria2=(Tria*)elements[1]; … … 410 410 tria1->GetInputValue(&h[0],nodes[0],ThicknessEnum); 411 411 tria2->GetInputValue(&h[1],nodes[1],ThicknessEnum); 412 if (h[0]!=h[1])_error2_(" 412 if (h[0]!=h[1])_error2_("different thicknesses not supported for rift fronts"); 413 413 thickness=h[0]; 414 414 … … 488 488 489 489 /*enum of element? */ 490 if(elements[0]->ObjectEnum()!=TriaEnum)_error2_(" 490 if(elements[0]->ObjectEnum()!=TriaEnum)_error2_("only Tria element allowed for Riftfront load!"); 491 491 tria1=(Tria*)elements[0]; 492 492 tria2=(Tria*)elements[1]; … … 504 504 tria1->GetInputValue(&h[0],nodes[0],ThicknessEnum); 505 505 tria2->GetInputValue(&h[1],nodes[1],ThicknessEnum); 506 if (h[0]!=h[1])_error2_(" 506 if (h[0]!=h[1])_error2_("different thicknesses not supported for rift fronts"); 507 507 thickness=h[0]; 508 508 tria1->GetInputValue(&b[0],nodes[0],BedEnum); 509 509 tria2->GetInputValue(&b[1],nodes[1],BedEnum); 510 if (b[0]!=b[1])_error2_(" 510 if (b[0]!=b[1])_error2_("different beds not supported for rift fronts"); 511 511 bed=b[0]; 512 512 … … 585 585 586 586 /*enum of element? */ 587 if(elements[0]->ObjectEnum()!=TriaEnum)_error2_(" 587 if(elements[0]->ObjectEnum()!=TriaEnum)_error2_("only Tria element allowed for Riftfront load!"); 588 588 589 589 /*recover elements on both side of rift: */ … … 706 706 707 707 /*enum of element? */ 708 if(elements[0]->ObjectEnum()!=TriaEnum)_error2_(" 708 if(elements[0]->ObjectEnum()!=TriaEnum)_error2_("only Tria element allowed for Riftfront load!"); 709 709 710 710 /*recover elements on both side of rift: */ … … 751 751 752 752 /*enum of element? */ 753 if(elements[0]->ObjectEnum()!=TriaEnum)_error2_(" 753 if(elements[0]->ObjectEnum()!=TriaEnum)_error2_("only Tria element allowed for Riftfront load!"); 754 754 755 755 /*recover elements on both side of rift: */ … … 794 794 795 795 /*enum of element? */ 796 if(elements[0]->ObjectEnum()!=TriaEnum)_error2_(" 796 if(elements[0]->ObjectEnum()!=TriaEnum)_error2_("only Tria element allowed for Riftfront load!"); 797 797 798 798 /*recover elements on both side of rift: */ … … 844 844 845 845 /*enum of element? */ 846 if(elements[0]->ObjectEnum()!=TriaEnum)_error2_(" 846 if(elements[0]->ObjectEnum()!=TriaEnum)_error2_("only Tria element allowed for Riftfront load!"); 847 847 848 848 /*recover elements on both side of rift: */ -
issm/trunk-jpl/src/c/objects/Materials/Matice.cpp
r12493 r12495 750 750 #endif 751 751 else{ 752 _error2_(" 752 _error2_("Mesh type not supported yet!"); 753 753 } 754 754 -
issm/trunk-jpl/src/c/objects/Numerics/ElementMatrix.cpp
r12493 r12495 295 295 } 296 296 else{ 297 _error2_(" 297 _error2_("non dofsymmetrical matrix AddToGlobal routine not support yet!"); 298 298 } 299 299 … … 332 332 } 333 333 else{ 334 _error2_(" 334 _error2_("non dofsymmetrical matrix AddToGlobal routine not support yet!"); 335 335 } 336 336 -
issm/trunk-jpl/src/c/shared/Alloc/alloc.cpp
r12493 r12495 31 31 void* memptr=NULL; 32 32 33 if(!size)_error2_(" 33 if(!size)_error2_("attempting to 0 size allocation!"); 34 34 35 35 /* Use the c library to do the allocation: */ -
issm/trunk-jpl/src/c/shared/Numerics/GaussPoints.cpp
r12494 r12495 1670 1670 if (iter >= MAX_GAUS_ITER) { 1671 1671 xDelete<IssmPDouble>(work); 1672 _error2_(" 1672 _error2_("Max iterations exceeded for l=" << MAX_GAUS_ITER); 1673 1673 } 1674 1674 } -
issm/trunk-jpl/src/c/shared/Numerics/IsInputConverged.cpp
r12494 r12495 53 53 else eps=0; 54 54 } 55 else _error2_(" 55 else _error2_("convergence criterion " << EnumToStringx(criterion_enum) << " not supported yet!"); 56 56 57 57 /*Assign output pointers:*/ -
issm/trunk-jpl/src/c/shared/Numerics/Synchronize.sh
r12365 r12495 135 135 void SetVerbosityLevel(int level){ 136 136 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 << ")"); 138 138 139 139 verbositylevel = level; -
issm/trunk-jpl/src/c/shared/Numerics/UnitConversion.cpp
r12493 r12495 29 29 if(direction_enum==IuToExtEnum) for(i=0;i<numvalues;i++)values[i]=values[i]*scale; 30 30 else if(direction_enum==ExtToIuEnum) for(i=0;i<numvalues;i++)values[i]=values[i]/scale; 31 else _error2_(" 31 else _error2_("wrong direction for unit conversion, either IuToExtEnum or ExtToIuEnum. "); 32 32 33 33 } -
issm/trunk-jpl/src/c/shared/String/DescriptorIndex.cpp
r12494 r12495 23 23 /*retrieve first token, separated by underscore: */ 24 24 pch = strtok (descriptor,"_"); 25 if(!pch)_error2_(" 25 if(!pch)_error2_("descriptor " << descriptor << " is not correctly formatted!"); 26 26 27 27 if (strncmp(pch,"scaled",6)==0){ 28 28 /*we have a scaled variable. recover the root: */ 29 29 pch = strtok (NULL, "_"); 30 if(!pch)_error2_(" 30 if(!pch)_error2_("scaled descriptor " << descriptor << " is not correctly formatted!"); 31 31 memcpy(root,pch,(strlen(pch)+1)*sizeof(char)); 32 32 … … 44 44 /*we have an indexed variable. recover the root: */ 45 45 pch = strtok (NULL, "_"); 46 if(!pch)_error2_(" 46 if(!pch)_error2_("indexed descriptor " << descriptor << " is not correctly formatted!"); 47 47 memcpy(root,pch,(strlen(pch)+1)*sizeof(char)); 48 48 /*now recover the index: */ 49 49 pch = strtok (NULL, "_"); 50 if(!pch)_error2_(" 50 if(!pch)_error2_("indexed descriptor " << descriptor << " is not correctly formatted!"); 51 51 sscanf(pch,"%i",pindex); 52 52 return IndexedEnum; … … 55 55 /*we have an indexed variable. recover the root: */ 56 56 pch = strtok (NULL, "_"); 57 if(!pch)_error2_(" 57 if(!pch)_error2_("nodal descriptor " << descriptor << " is not correctly formatted!"); 58 58 memcpy(root,pch,(strlen(pch)+1)*sizeof(char)); 59 59 /*now recover the index: */ 60 60 pch = strtok (NULL, "_"); 61 if(!pch)_error2_(" 61 if(!pch)_error2_("nodal descriptor " << descriptor << " is not correctly formatted!"); 62 62 sscanf(pch,"%i",pindex); 63 63 return NodalEnum; -
issm/trunk-jpl/src/c/shared/Threads/LaunchThread.cpp
r12493 r12495 44 44 45 45 if(pthread_create(threads+i,NULL,function,(void*)(handles+i))){ 46 _error2_(" 46 _error2_("pthread_create error"); 47 47 } 48 48 } 49 49 for(i=0;i<num_threads;i++){ 50 50 if(pthread_join(threads[i],(void**)&status)){ 51 _error2_(" 51 _error2_("pthread_join error"); 52 52 } 53 53 } -
issm/trunk-jpl/src/c/toolkits/plapack/patches/PlapackInvertMatrix.cpp
r12493 r12495 51 51 52 52 /*Some dimensions checks: */ 53 if (mA!=nA) _error2_(" 53 if (mA!=nA) _error2_("trying to take the invert of a non-square matrix!"); 54 54 55 55 /* Set default Plapack parameters */
Note:
See TracChangeset
for help on using the changeset viewer.