Changeset 13055
- Timestamp:
- 08/15/12 18:02:10 (13 years ago)
- Location:
- issm/trunk-jpl
- Files:
-
- 168 edited
Legend:
- Unmodified
- Added
- Removed
-
issm/trunk-jpl/configure.ac
r13046 r13055 22 22 AM_PROG_CC_C_O 23 23 AM_PROG_AR 24 AC_PROG_RANLIB 24 25 25 #Libtool 26 LT_INIT 26 # To produce shared libraries uncomment LT_INIT. In theory, Libtool can be initialized 27 # even if all linking is static, since, if not shared libraries are to be produce, libtool 28 # will act simply as a wrapper around AR and Ranlib. 29 #LT_INIT 27 30 28 31 #Run issm_options.m4 -
issm/trunk-jpl/m4/issm_options.m4
r13046 r13055 15 15 dnl }}} 16 16 dnl shared build {{{ 17 AC_ARG_ENABLE([sharedlibs], dnl feature 18 AS_HELP_STRING([--enable-sharedlibs], [produce libISSM.so.0]), dnl help string 19 [enable_sharedlibs=$enableval], dnl action if given 20 [enable_sharedlibs=no]) dnl action if not given 21 AM_CONDITIONAL([SHAREDLIBS], [test x$enable_sharedlibs = xyes]) 22 dnl }}} 23 24 dnl shared build {{{ 25 AC_ARG_ENABLE([version], dnl feature 26 AS_HELP_STRING([--enable-version], [produce libISSM.so.0]), dnl help string 27 [enable_version=$enableval], dnl action if given 28 [enable_version=no]) dnl action if not given 29 AM_CONDITIONAL([VERSION], [test x$enable_VERSION = xyes]) 17 AC_ARG_ENABLE([shared], dnl feature 18 AS_HELP_STRING([--enable-shared], [produce libISSM.so.0]), dnl help string 19 [enable_shared=$enableval], dnl action if given 20 [enable_shared=no]) dnl action if not given 21 AM_CONDITIONAL([SHARED], [test $enable_shared = yes]) 30 22 dnl }}} 31 23 … … 597 589 ;; 598 590 esac 599 591 600 592 METISINCL=-I"$METIS_ROOT/include" 601 593 AC_DEFINE([_METIS_VERSION_],[5],[ Metis version number]) … … 614 606 AC_MSG_CHECKING(for mpi) 615 607 AC_ARG_WITH([mpi-lib], 616 AS_HELP_STRING([--with-mpi-lib = o ptions],[mpi options, for ex: "-L$MPIROOT -lmpich]),608 AS_HELP_STRING([--with-mpi-lib = otions],[mpi options, for ex: "-L$MPIROOT -lmpich]), 617 609 [MPILIB=$withval],[MPILIB=""]) 618 610 … … 628 620 else 629 621 HAVE_MPI=yes 630 MPIINCL=-I"$MPI_INCLUDE "622 MPIINCL=-I"$MPI_INCLUDE/" 631 623 AC_DEFINE([_HAVE_MPI_],[1],[with Mpi in ISSM src]) 632 624 AC_DEFINE([HAVE_MPI],[1],[Mpi Flag for Dakota (DO NOT REMOVE)]) -
issm/trunk-jpl/src/c/Container/DataSet.cpp
r13036 r13055 133 133 vector<Object*>::iterator object; 134 134 135 if(this==NULL)_error _("trying to echo a NULL dataset");135 if(this==NULL)_error2_("trying to echo a NULL dataset"); 136 136 137 137 _pprintLine_("DataSet echo: " << objects.size() << " objects"); … … 150 150 vector<Object*>::iterator object; 151 151 152 if(this==NULL)_error _("trying to echo a NULL dataset");152 if(this==NULL)_error2_("trying to echo a NULL dataset"); 153 153 154 154 _pprintLine_("DataSet echo: " << objects.size() << " objects"); … … 194 194 195 195 _assert_(this); 196 if(!sorted)_error _("trying to binary search on a non-sorted dataset!");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: */ 199 199 if(!binary_search(&id_offset,eid, sorted_ids,objects.size())){ 200 _error _("could not find object with id " << eid << " in DataSet " << EnumToStringx(enum_type));200 _error2_("could not find object with id " << eid << " in DataSet " << EnumToStringx(enum_type)); 201 201 } 202 202 … … 259 259 /*Only sort if we are not already sorted: */ 260 260 if(!sorted){ 261 _error _("not implemented yet!");262 } 263 } 264 /*}}}*/ 261 _error2_("not implemented yet!"); 262 } 263 } 264 /*}}}*/ -
issm/trunk-jpl/src/c/Container/Elements.cpp
r13036 r13055 203 203 /*see what the first element of this partition has in stock (this is common to all partitions)*/ 204 204 if(my_rank==minrank){ 205 if(this->Size()==0) _error _("Cannot write results because there is no element??");205 if(this->Size()==0) _error2_("Cannot write results because there is no element??"); 206 206 Element* element=(Element*)this->GetObjectByOffset(0); 207 207 element->ListResultsInfo(&resultsenums,&resultssizes,&resultstimes,&resultssteps,&numberofresults); … … 232 232 if(resultssizes[i]==P1Enum) vectorsize=numberofvertices; 233 233 else if(resultssizes[i]==P0Enum) vectorsize=numberofelements; 234 else _error _("Unkown result size: " << EnumToStringx(resultssizes[i]));234 else _error2_("Unkown result size: " << EnumToStringx(resultssizes[i])); 235 235 vector=new Vector(vectorsize); 236 236 -
issm/trunk-jpl/src/c/Container/Inputs.cpp
r13036 r13055 57 57 /*we could not find an input with the correct enum type. No defaults values were provided, 58 58 * error out: */ 59 _error _("could not find input with enum type " << enum_type << " (" << EnumToStringx(enum_type) << ")");59 _error2_("could not find input with enum type " << enum_type << " (" << EnumToStringx(enum_type) << ")"); 60 60 } 61 61 … … 85 85 /*we could not find an input with the correct enum type. No defaults values were provided, 86 86 * error out: */ 87 _error _("could not find input with enum type " << enum_type << " (" << EnumToStringx(enum_type) << ")");87 _error2_("could not find input with enum type " << enum_type << " (" << EnumToStringx(enum_type) << ")"); 88 88 } 89 89 … … 113 113 /*we could not find an input with the correct enum type. No defaults values were provided, 114 114 * error out: */ 115 _error _("could not find input with enum type " << enum_type << " (" << EnumToStringx(enum_type) << ")");115 _error2_("could not find input with enum type " << enum_type << " (" << EnumToStringx(enum_type) << ")"); 116 116 } 117 117 … … 141 141 /*we could not find an input with the correct enum type. No defaults values were provided, 142 142 * error out: */ 143 _error _("could not find input with enum type " << enum_type << " (" << EnumToStringx(enum_type) << ")");143 _error2_("could not find input with enum type " << enum_type << " (" << EnumToStringx(enum_type) << ")"); 144 144 } 145 145 … … 213 213 214 214 /*some checks: */ 215 if(!constrain_input) _error _("input " << EnumToStringx(constrain_enum) << " could not be found!");215 if(!constrain_input) _error2_("input " << EnumToStringx(constrain_enum) << " could not be found!"); 216 216 217 217 /*Apply ContrainMin: */ … … 254 254 } 255 255 else{ 256 _error _("Input " << EnumToStringx(enumtype) << " not found");256 _error2_("Input " << EnumToStringx(enumtype) << " not found"); 257 257 } 258 258 … … 275 275 } 276 276 else{ 277 _error _("Input " << EnumToStringx(enumtype) << " not found");277 _error2_("Input " << EnumToStringx(enumtype) << " not found"); 278 278 } 279 279 … … 296 296 } 297 297 else{ 298 _error _("Input " << EnumToStringx(enumtype) << " not found");298 _error2_("Input " << EnumToStringx(enumtype) << " not found"); 299 299 } 300 300 … … 317 317 } 318 318 else{ 319 _error _("Input " << EnumToStringx(enumtype) << " not found");319 _error2_("Input " << EnumToStringx(enumtype) << " not found"); 320 320 } 321 321 … … 369 369 /*Make a copy of the original input: */ 370 370 original=(Input*)this->GetInput(original_enum); 371 if(!original)_error _("could not find input with enum: " << EnumToStringx(original_enum));371 if(!original)_error2_("could not find input with enum: " << EnumToStringx(original_enum)); 372 372 copy=(Input*)original->copy(); 373 373 … … 416 416 417 417 /*some checks: */ 418 if(!xinput) _error _("input " << EnumToStringx(MeshXEnum) << " could not be found!");419 if(!yinput) _error _("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!"); 420 420 421 421 /*Apply AXPY: */ -
issm/trunk-jpl/src/c/Container/Observations.cpp
r13036 r13055 58 58 options->Get(&maxtrimming,"maxtrimming",+1.e+21); 59 59 options->Get(&minspacing,"minspacing",0.01); 60 if(minspacing<=0) _error _("minspacing must > 0");60 if(minspacing<=0) _error2_("minspacing must > 0"); 61 61 62 62 /*Get Minimum box size*/ 63 63 if(options->GetOption("boxlength")){ 64 64 options->Get(&minlength,"boxlength"); 65 if(minlength<=0)_error _("boxlength should be a positive number");65 if(minlength<=0)_error2_("boxlength should be a positive number"); 66 66 maxdepth=int(log(max(xmax-xmin,ymax-ymin)/minlength +1)/log(2.0)); 67 67 } … … 383 383 SolverxSeq(&GinvZ, Gamma,obs,n_obs); // Gamma^-1 Z 384 384 #else 385 _error _("GSL is required");385 _error2_("GSL is required"); 386 386 #endif 387 387 -
issm/trunk-jpl/src/c/Container/Options.cpp
r13036 r13055 47 47 48 48 /*Also, check the option name*/ 49 if(!in_option->name) _error _("input option has an empty name");50 if(strchr(in_option->name,'.')) _error _("Option \"" << in_option->name << "\" has a protected character \".\"");51 if(strchr(in_option->name,'[')) _error _("Option \"" << in_option->name << "\" has a protected character \"[\"");52 if(strchr(in_option->name,']')) _error _("Option \"" << in_option->name << "\" has a protected character \"]\"");49 if(!in_option->name) _error2_("input option has an empty name"); 50 if(strchr(in_option->name,'.')) _error2_("Option \"" << in_option->name << "\" has a protected character \".\""); 51 if(strchr(in_option->name,'[')) _error2_("Option \"" << in_option->name << "\" has a protected character \"[\""); 52 if(strchr(in_option->name,']')) _error2_("Option \"" << in_option->name << "\" has a protected character \"]\""); 53 53 54 54 /*Finally, check that no option of the same name already exists in the dataset*/ … … 57 57 option=(Option*)(*object); 58 58 if (!strcmp(option->name,in_option->name)){ 59 _error _("Options \"" << in_option->name << "\" found multiple times");59 _error2_("Options \"" << in_option->name << "\" found multiple times"); 60 60 break; 61 61 } … … 83 83 /*Else, the Option does not exist, no default provided*/ 84 84 else{ 85 _error _("option of name \"" << name << "\" not found, and no default value has been provided");85 _error2_("option of name \"" << name << "\" not found, and no default value has been provided"); 86 86 } 87 87 } … … 121 121 /*Else, the Option does not exist, no default provided*/ 122 122 else{ 123 _error _("option of name \"" << name << "\" not found, and no default value has been provided");123 _error2_("option of name \"" << name << "\" not found, and no default value has been provided"); 124 124 } 125 125 } … … 159 159 /*Else, the Option does not exist, no default provided*/ 160 160 else{ 161 _error _("option of name \"" << name << "\" not found, and no default value has been provided");161 _error2_("option of name \"" << name << "\" not found, and no default value has been provided"); 162 162 } 163 163 } … … 199 199 /*Else, the Option does not exist, no default provided*/ 200 200 else{ 201 _error _("option of name \"" << name << "\" not found, and no default value has been provided");201 _error2_("option of name \"" << name << "\" not found, and no default value has been provided"); 202 202 } 203 203 … … 264 264 /*Else: not supported*/ 265 265 else{ 266 _error _("Cannot recover field \"" << name << "\" for an option of type " << EnumToStringx(option->ObjectEnum()));266 _error2_("Cannot recover field \"" << name << "\" for an option of type " << EnumToStringx(option->ObjectEnum())); 267 267 } 268 268 } … … 290 290 /*Else, the Option does not exist, no default provided*/ 291 291 else{ 292 _error _("option of name \"" << name << "\" not found, and no default value has been provided");292 _error2_("option of name \"" << name << "\" not found, and no default value has been provided"); 293 293 } 294 294 } … … 324 324 /*Else: not supported*/ 325 325 else{ 326 _error _("Cannot recover field \"" << name << "\" for an option of type " << EnumToStringx(option->ObjectEnum()));326 _error2_("Cannot recover field \"" << name << "\" for an option of type " << EnumToStringx(option->ObjectEnum())); 327 327 } 328 328 } -
issm/trunk-jpl/src/c/Container/Parameters.cpp
r13036 r13055 65 65 } 66 66 } 67 _error _("could not find parameter " << EnumToStringx(enum_type));67 _error2_("could not find parameter " << EnumToStringx(enum_type)); 68 68 } 69 69 /*}}}*/ … … 82 82 } 83 83 } 84 _error _("could not find parameter " << EnumToStringx(enum_type));84 _error2_("could not find parameter " << EnumToStringx(enum_type)); 85 85 } 86 86 /*}}}*/ … … 99 99 } 100 100 } 101 _error _("could not find parameter " << EnumToStringx(enum_type));101 _error2_("could not find parameter " << EnumToStringx(enum_type)); 102 102 } 103 103 /*}}}*/ … … 116 116 } 117 117 } 118 _error _("could not find parameter " << EnumToStringx(enum_type));118 _error2_("could not find parameter " << EnumToStringx(enum_type)); 119 119 } 120 120 /*}}}*/ … … 133 133 } 134 134 } 135 _error _("could not find parameter " << EnumToStringx(enum_type));135 _error2_("could not find parameter " << EnumToStringx(enum_type)); 136 136 137 137 } … … 151 151 } 152 152 } 153 _error _("could not find parameter " << EnumToStringx(enum_type));153 _error2_("could not find parameter " << EnumToStringx(enum_type)); 154 154 155 155 } … … 169 169 } 170 170 } 171 _error _("could not find parameter " << EnumToStringx(enum_type));171 _error2_("could not find parameter " << EnumToStringx(enum_type)); 172 172 173 173 } … … 187 187 } 188 188 } 189 _error _("could not find parameter " << EnumToStringx(enum_type));189 _error2_("could not find parameter " << EnumToStringx(enum_type)); 190 190 191 191 } … … 205 205 } 206 206 } 207 _error _("could not find parameter " << EnumToStringx(enum_type));207 _error2_("could not find parameter " << EnumToStringx(enum_type)); 208 208 209 209 } … … 223 223 } 224 224 } 225 _error _("could not find parameter " << EnumToStringx(enum_type));225 _error2_("could not find parameter " << EnumToStringx(enum_type)); 226 226 227 227 } … … 241 241 } 242 242 } 243 _error _("could not find parameter " << EnumToStringx(enum_type));243 _error2_("could not find parameter " << EnumToStringx(enum_type)); 244 244 } 245 245 /*}}}*/ … … 258 258 } 259 259 } 260 _error _("could not find parameter " << EnumToStringx(enum_type));260 _error2_("could not find parameter " << EnumToStringx(enum_type)); 261 261 262 262 } … … 276 276 } 277 277 } 278 _error _("could not find parameter " << EnumToStringx(enum_type));278 _error2_("could not find parameter " << EnumToStringx(enum_type)); 279 279 280 280 } … … 294 294 } 295 295 } 296 _error _("could not find parameter " << EnumToStringx(enum_type));296 _error2_("could not find parameter " << EnumToStringx(enum_type)); 297 297 } 298 298 /*}}}*/ -
issm/trunk-jpl/src/c/EnumDefinitions/Synchronize.sh
r13054 r13055 107 107 #Add header to pythonenum file{{{ 108 108 cat <<END > $ISSM_DIR/src/m/enum/EnumDefinitions.py 109 from StringToEnum import StringToEnum110 111 109 """ 112 110 … … 168 166 """ 169 167 170 return StringToEnum('$NAME') [0]168 return StringToEnum('$NAME') 171 169 172 170 END -
issm/trunk-jpl/src/c/Makefile.am
r13051 r13055 6 6 lib_LIBRARIES = libISSMCore.a libISSMOverload.a 7 7 8 if SHAREDLIBS 9 lib_LTLIBRARIES = libISSMCore.la libISSMOverload.la libISSM.la10 endif8 #if SHARED 9 #lib_LTLIBRARIES = libISSMCore.la libISSMOverload.la libISSM.la 10 #endif 11 11 if PYTHON 12 12 lib_LIBRARIES += libISSMPython.a 13 13 endif 14 14 if MATLAB 15 if SHAREDLIBS 16 lib_LTLIBRARIES += libISSMMatlab.la17 endif15 #if SHARED 16 #lib_LTLIBRARIES += libISSMMatlab.la 17 #endif 18 18 lib_LIBRARIES += libISSMMatlab.a 19 19 endif 20 20 if MODULES 21 if SHAREDLIBS 22 lib_LTLIBRARIES += libISSMModules.la23 endif21 #if SHARED 22 #lib_LTLIBRARIES += libISSMModules.la 23 #endif 24 24 lib_LIBRARIES += libISSMModules.a 25 25 endif … … 1011 1011 libISSMCore_a_CXXFLAGS = $(ALLCXXFLAGS) 1012 1012 1013 if SHAREDLIBS 1014 libISSM_la_SOURCES = solutions/issm.cpp1015 libISSM_la_LIBADD = libISSMCore.la libISSMOverload.la1016 1017 libISSMCore_la_SOURCES = $(issm_sources)1018 libISSMCore_la_LIBADD = $(PETSCLIB) $(TAOLIB) $(PLAPACKLIB) $(MUMPSLIB) $(SUPERLULIB) $(SPOOLESLIB) $(SCALAPACKLIB) $(BLACSLIB) $(HYPRELIB) $(SPAILIB) $(PROMETHEUSLIB) $(PASTIXLIB) $(MLLIB) $(DAKOTALIB) $(METISLIB) $(CHACOLIB) $(SCOTCHLIB) $(BLASLAPACKLIB) $(MKLLIB) $(MPILIB) $(MATHLIB) $(FORTRANLIB) $(GRAPHICSLIB) $(MULTITHREADINGLIB) $(OSLIBS) $(GSLLIB) $(ADOLCLIB)1019 1020 libISSMOverload_la_SOURCES = ./shared/String/stricmp.c1021 endif1013 #if SHARED 1014 #libISSM_la_SOURCES = solutions/issm.cpp 1015 #libISSM_la_LIBADD = libISSMCore.la libISSMOverload.la 1016 # 1017 #libISSMCore_la_SOURCES = $(issm_sources) 1018 #libISSMCore_la_LIBADD = $(PETSCLIB) $(TAOLIB) $(PLAPACKLIB) $(MUMPSLIB) $(SUPERLULIB) $(SPOOLESLIB) $(SCALAPACKLIB) $(BLACSLIB) $(HYPRELIB) $(SPAILIB) $(PROMETHEUSLIB) $(PASTIXLIB) $(MLLIB) $(DAKOTALIB) $(METISLIB) $(CHACOLIB) $(SCOTCHLIB) $(BLASLAPACKLIB) $(MKLLIB) $(MPILIB) $(MATHLIB) $(FORTRANLIB) $(GRAPHICSLIB) $(MULTITHREADINGLIB) $(OSLIBS) $(GSLLIB) $(ADOLCLIB) 1019 # 1020 #libISSMOverload_la_SOURCES = ./shared/String/stricmp.c 1021 #endif 1022 1022 1023 1023 if MODULES 1024 if SHAREDLIBS 1025 libISSMModules_la_SOURCES = $(module_sources)1026 libISSMModules_la_SOURCES += $(bamg_sources)1027 libISSMModules_la_SOURCES += $(kriging_sources)1028 libISSMModules_la_SOURCES += $(kml_sources)1029 endif1024 #if SHARED 1025 #libISSMModules_la_SOURCES = $(module_sources) 1026 #libISSMModules_la_SOURCES += $(bamg_sources) 1027 #libISSMModules_la_SOURCES += $(kriging_sources) 1028 #libISSMModules_la_SOURCES += $(kml_sources) 1029 #endif 1030 1030 libISSMModules_a_SOURCES = $(module_sources) 1031 1031 libISSMModules_a_SOURCES += $(bamg_sources) … … 1033 1033 libISSMModules_a_SOURCES += $(kml_sources) 1034 1034 libISSMModules_a_CXXFLAGS = $(ALLCXXFLAGS) 1035 libISSMModules_a_LIBADD = ./libISSMCore.a1036 1035 endif 1037 1036 … … 1042 1041 1043 1042 if MATLAB 1044 if SHAREDLIBS 1045 libISSMMatlab_la_SOURCES = $(matlab_sources)1046 endif1043 #if SHARED 1044 #libISSMMatlab_la_SOURCES = $(matlab_sources) 1045 #endif 1047 1046 libISSMMatlab_a_SOURCES = $(matlab_sources) 1048 1047 libISSMMatlab_a_CXXFLAGS= $(ALLCXXFLAGS) 1049 1048 endif 1050 1049 1051 if VERSION1052 AM_LDFLAGS =1053 else1054 AM_LDFLAGS = -avoid-version1055 endif1056 1050 #}}} 1057 1051 #Overload library, to overload any non-standard symbols. {{{ -
issm/trunk-jpl/src/c/classes/DofIndexing.cpp
r13036 r13055 143 143 else this->sdoflist=NULL; 144 144 } 145 else _error _("set of enum type " << EnumToStringx(setenum) << " not supported yet!");145 else _error2_("set of enum type " << EnumToStringx(setenum) << " not supported yet!"); 146 146 } 147 147 /*}}}*/ -
issm/trunk-jpl/src/c/classes/Hook.cpp
r13036 r13055 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]) _error _("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!"); 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) _error _("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"); 197 197 198 198 /*check NULL: */ 199 if (this->objects==NULL) _error _("hook is not pointing to any object, objects pointer is NULL");199 if (this->objects==NULL) _error2_("hook is not pointing to any object, objects pointer is NULL"); 200 200 201 201 return *objects; … … 246 246 247 247 /*Else, check that we are requesting a half of num*/ 248 if (numindices>this->num) _error _("Cannot spawn hook with " << numindices << " objects from a Hook of " << this->num << " objects");248 if (numindices>this->num) _error2_("Cannot spawn hook with " << numindices << " objects from a Hook of " << this->num << " objects"); 249 249 250 250 /*go pickup the correct objects, ids and offsets :*/ 251 251 output->num=numindices; 252 if(output->num<1) _error _("Trying to spawn an empty ElementProperties!");252 if(output->num<1) _error2_("Trying to spawn an empty ElementProperties!"); 253 253 254 254 output->objects=xNew<Object*>(output->num); -
issm/trunk-jpl/src/c/classes/gauss/GaussPenta.cpp
r13036 r13055 119 119 } 120 120 else{ 121 _error _("Penta not supported yet");121 _error2_("Penta not supported yet"); 122 122 } 123 123 … … 159 159 } 160 160 else{ 161 _error _("Tria not supported yet");161 _error2_("Tria not supported yet"); 162 162 } 163 163 … … 221 221 } 222 222 else{ 223 _error _("Tria not supported yet (user provided indices " << index1 << " " << index2 << " " << index3 << " " << index4 << ")");223 _error2_("Tria not supported yet (user provided indices " << index1 << " " << index2 << " " << index3 << " " << index4 << ")"); 224 224 } 225 225 … … 340 340 break; 341 341 default: 342 _error _("vertex index should be in [0 5]");342 _error2_("vertex index should be in [0 5]"); 343 343 344 344 } … … 359 359 } 360 360 else{ 361 _error _("Tria not supported yet");361 _error2_("Tria not supported yet"); 362 362 } 363 363 -
issm/trunk-jpl/src/c/classes/gauss/GaussTria.cpp
r13036 r13055 80 80 } 81 81 else 82 _error _("The 2 indices provided are not supported yet (user provided " << index1 << " and " << index2 << ")");82 _error2_("The 2 indices provided are not supported yet (user provided " << index1 << " and " << index2 << ")"); 83 83 84 84 /*Initialize static fields as undefined*/ … … 178 178 } 179 179 else 180 _error _("The 2 indices provided are not supported yet (user provided " << index1 << " and " << index2 << ")");180 _error2_("The 2 indices provided are not supported yet (user provided " << index1 << " and " << index2 << ")"); 181 181 182 182 } … … 241 241 break; 242 242 default: 243 _error _("vertex index should be in [0 2]");243 _error2_("vertex index should be in [0 2]"); 244 244 245 245 } -
issm/trunk-jpl/src/c/classes/objects/Inputs/BoolInput.cpp
r13036 r13055 112 112 /*}}}*/ 113 113 /*FUNCTION BoolInput::GetInputValue(int* pvalue){{{*/ 114 void BoolInput::GetInputValue(int* pvalue){_error _("not supported yet!");}114 void BoolInput::GetInputValue(int* pvalue){_error2_("not supported yet!");} 115 115 /*}}}*/ 116 116 /*FUNCTION BoolInput::GetInputValue(IssmDouble* pvalue){{{*/ 117 void BoolInput::GetInputValue(IssmDouble* pvalue){_error _("not supported yet!");}117 void BoolInput::GetInputValue(IssmDouble* pvalue){_error2_("not supported yet!");} 118 118 /*}}}*/ 119 119 /*FUNCTION BoolInput::GetInputValue(IssmDouble* pvalue,GaussTria* gauss){{{*/ 120 void BoolInput::GetInputValue(IssmDouble* pvalue,GaussTria* gauss){_error _("not supported yet!");}120 void BoolInput::GetInputValue(IssmDouble* pvalue,GaussTria* gauss){_error2_("not supported yet!");} 121 121 /*}}}*/ 122 122 /*FUNCTION BoolInput::GetInputValue(IssmDouble* pvalue,GaussPenta* gauss){{{*/ 123 void BoolInput::GetInputValue(IssmDouble* pvalue,GaussPenta* gauss){_error _("not supported yet!");}123 void BoolInput::GetInputValue(IssmDouble* pvalue,GaussPenta* gauss){_error2_("not supported yet!");} 124 124 /*}}}*/ 125 125 /*FUNCTION BoolInput::GetInputDerivativeValue(IssmDouble* derivativevalues, IssmDouble* xyz_list, GaussTria* gauss){{{*/ 126 void BoolInput::GetInputDerivativeValue(IssmDouble* derivativevalues, IssmDouble* xyz_list, GaussTria* gauss){_error _("not supported yet!");}126 void BoolInput::GetInputDerivativeValue(IssmDouble* derivativevalues, IssmDouble* xyz_list, GaussTria* gauss){_error2_("not supported yet!");} 127 127 /*}}}*/ 128 128 /*FUNCTION BoolInput::GetInputDerivativeValue(IssmDouble* derivativevalues, IssmDouble* xyz_list, GaussPenta* gauss){{{*/ 129 void BoolInput::GetInputDerivativeValue(IssmDouble* derivativevalues, IssmDouble* xyz_list, GaussPenta* gauss){_error _("not supported yet!");}129 void BoolInput::GetInputDerivativeValue(IssmDouble* derivativevalues, IssmDouble* xyz_list, GaussPenta* gauss){_error2_("not supported yet!");} 130 130 /*}}}*/ 131 131 /*FUNCTION BoolInput::ChangeEnum{{{*/ … … 161 161 162 162 default: 163 _error _("not implemented yet");163 _error2_("not implemented yet"); 164 164 } 165 165 … … 176 176 void BoolInput::GetVectorFromInputs(Vector* vector,int* doflist){ 177 177 178 _error _("not supporte yet!");178 _error2_("not supporte yet!"); 179 179 180 180 } … … 183 183 void BoolInput::GetValuesPtr(IssmDouble** pvalues,int* pnum_values){ 184 184 185 _error _("not supported yet!");185 _error2_("not supported yet!"); 186 186 187 187 } -
issm/trunk-jpl/src/c/classes/objects/Inputs/BoolInput.h
r13036 r13055 37 37 int InstanceEnum(); 38 38 Input* SpawnTriaInput(int* indices); 39 Input* PointwiseDivide(Input* inputB){_error _("not implemented yet");};40 Input* PointwiseMin(Input* inputB){_error _("not implemented yet");};41 Input* PointwiseMax(Input* inputB){_error _("not implemented yet");};39 Input* PointwiseDivide(Input* inputB){_error2_("not implemented yet");}; 40 Input* PointwiseMin(Input* inputB){_error2_("not implemented yet");}; 41 Input* PointwiseMax(Input* inputB){_error2_("not implemented yet");}; 42 42 ElementResult* SpawnResult(int step, IssmDouble time); 43 43 void Configure(Parameters* parameters); 44 void AddTimeValues(IssmDouble* values,int step,IssmDouble time){_error _("not supported yet");};44 void AddTimeValues(IssmDouble* values,int step,IssmDouble time){_error2_("not supported yet");}; 45 45 /*}}}*/ 46 46 /*numerics: {{{*/ … … 50 50 void GetInputValue(IssmDouble* pvalue,GaussTria* gauss); 51 51 void GetInputValue(IssmDouble* pvalue,GaussPenta* gauss); 52 void GetInputValue(IssmDouble* pvalue,GaussTria* gauss,IssmDouble time){_error _("not implemented yet");};53 void GetInputValue(IssmDouble* pvalue,GaussPenta* gauss,IssmDouble time){_error _("not implemented yet");};54 void GetInputValue(IssmDouble* pvalue,GaussTria* gauss ,int index){_error _("not implemented yet");};55 void GetInputValue(IssmDouble* pvalue,GaussPenta* gauss ,int index){_error _("not implemented yet");};52 void GetInputValue(IssmDouble* pvalue,GaussTria* gauss,IssmDouble time){_error2_("not implemented yet");}; 53 void GetInputValue(IssmDouble* pvalue,GaussPenta* gauss,IssmDouble time){_error2_("not implemented yet");}; 54 void GetInputValue(IssmDouble* pvalue,GaussTria* gauss ,int index){_error2_("not implemented yet");}; 55 void GetInputValue(IssmDouble* pvalue,GaussPenta* gauss ,int index){_error2_("not implemented yet");}; 56 56 void GetInputDerivativeValue(IssmDouble* derivativevalues, IssmDouble* xyz_list, GaussTria* gauss); 57 57 void GetInputDerivativeValue(IssmDouble* derivativevalues, IssmDouble* xyz_list, GaussPenta* gauss); 58 void GetInputAverage(IssmDouble* pvalue){_error _("not implemented yet");};59 void GetVxStrainRate2d(IssmDouble* epsilonvx,IssmDouble* xyz_list, GaussTria* gauss){_error _("not implemented yet");};60 void GetVyStrainRate2d(IssmDouble* epsilonvy,IssmDouble* xyz_list, GaussTria* gauss){_error _("not implemented yet");};61 void GetVxStrainRate3d(IssmDouble* epsilonvx,IssmDouble* xyz_list, GaussPenta* gauss){_error _("not implemented yet");};62 void GetVyStrainRate3d(IssmDouble* epsilonvy,IssmDouble* xyz_list, GaussPenta* gauss){_error _("not implemented yet");};63 void GetVzStrainRate3d(IssmDouble* epsilonvz,IssmDouble* xyz_list, GaussPenta* gauss){_error _("not implemented yet");};64 void GetVxStrainRate3dPattyn(IssmDouble* epsilonvx,IssmDouble* xyz_list, GaussPenta* gauss){_error _("not implemented yet");};65 void GetVyStrainRate3dPattyn(IssmDouble* epsilonvy,IssmDouble* xyz_list, GaussPenta* gauss){_error _("not implemented yet");};58 void GetInputAverage(IssmDouble* pvalue){_error2_("not implemented yet");}; 59 void GetVxStrainRate2d(IssmDouble* epsilonvx,IssmDouble* xyz_list, GaussTria* gauss){_error2_("not implemented yet");}; 60 void GetVyStrainRate2d(IssmDouble* epsilonvy,IssmDouble* xyz_list, GaussTria* gauss){_error2_("not implemented yet");}; 61 void GetVxStrainRate3d(IssmDouble* epsilonvx,IssmDouble* xyz_list, GaussPenta* gauss){_error2_("not implemented yet");}; 62 void GetVyStrainRate3d(IssmDouble* epsilonvy,IssmDouble* xyz_list, GaussPenta* gauss){_error2_("not implemented yet");}; 63 void GetVzStrainRate3d(IssmDouble* epsilonvz,IssmDouble* xyz_list, GaussPenta* gauss){_error2_("not implemented yet");}; 64 void GetVxStrainRate3dPattyn(IssmDouble* epsilonvx,IssmDouble* xyz_list, GaussPenta* gauss){_error2_("not implemented yet");}; 65 void GetVyStrainRate3dPattyn(IssmDouble* epsilonvy,IssmDouble* xyz_list, GaussPenta* gauss){_error2_("not implemented yet");}; 66 66 void ChangeEnum(int newenumtype); 67 67 void SquareMin(IssmDouble* psquaremin, bool process_units,Parameters* parameters); 68 void ConstrainMin(IssmDouble minimum){_error _("not implemented yet");};69 IssmDouble InfinityNorm(void){_error _("InfinityNorm not implemented for booleans");};70 IssmDouble Max(void){_error _("Max not implemented for booleans");};71 IssmDouble MaxAbs(void){_error _("Max not implemented for booleans");};72 IssmDouble Min(void){_error _("Min not implemented for booleans");};73 IssmDouble MinAbs(void){_error _("Min not implemented for booleans");};68 void ConstrainMin(IssmDouble minimum){_error2_("not implemented yet");}; 69 IssmDouble InfinityNorm(void){_error2_("InfinityNorm not implemented for booleans");}; 70 IssmDouble Max(void){_error2_("Max not implemented for booleans");}; 71 IssmDouble MaxAbs(void){_error2_("Max not implemented for booleans");}; 72 IssmDouble Min(void){_error2_("Min not implemented for booleans");}; 73 IssmDouble MinAbs(void){_error2_("Min not implemented for booleans");}; 74 74 void Scale(IssmDouble scale_factor); 75 void ArtificialNoise(IssmDouble min,IssmDouble max){_error _("not implemented yet");};75 void ArtificialNoise(IssmDouble min,IssmDouble max){_error2_("not implemented yet");}; 76 76 void AXPY(Input* xinput,IssmDouble scalar); 77 void Constrain(IssmDouble cm_min, IssmDouble cm_max){_error _("Constrain not implemented for booleans");};77 void Constrain(IssmDouble cm_min, IssmDouble cm_max){_error2_("Constrain not implemented for booleans");}; 78 78 void Extrude(void); 79 void VerticallyIntegrate(Input* thickness_input){_error _("not supported yet");};79 void VerticallyIntegrate(Input* thickness_input){_error2_("not supported yet");}; 80 80 void GetVectorFromInputs(Vector* vector,int* doflist); 81 81 void GetValuesPtr(IssmDouble** pvalues,int* pnum_values); -
issm/trunk-jpl/src/c/classes/objects/Inputs/ControlInput.cpp
r13036 r13055 48 48 break; 49 49 default: 50 _error _("Input of Enum " << EnumToStringx(enum_input) << " not supported yet by ControlInput");50 _error2_("Input of Enum " << EnumToStringx(enum_input) << " not supported yet by ControlInput"); 51 51 } 52 52 gradient =NULL; … … 152 152 /*FUNCTION ControlInput::ScaleGradient{{{*/ 153 153 void ControlInput::ScaleGradient(IssmDouble scaling_factor){ 154 if(!gradient) _error _("Gradient of ControlInput " << EnumToStringx(enum_type) << " not found");154 if(!gradient) _error2_("Gradient of ControlInput " << EnumToStringx(enum_type) << " not found"); 155 155 gradient->Scale(scaling_factor); 156 156 }/*}}}*/ … … 170 170 break; 171 171 default: 172 _error _("more than 3 controls not implemented yet (Gradient " << this->control_id << " was requested). EnumDefinitions.h needs to be updated.");172 _error2_("more than 3 controls not implemented yet (Gradient " << this->control_id << " was requested). EnumDefinitions.h needs to be updated."); 173 173 } 174 174 … … 221 221 } 222 222 else{ 223 _error _("Data " << data << " not supported yet");223 _error2_("Data " << data << " not supported yet"); 224 224 } 225 225 }/*}}}*/ … … 258 258 /*FUNCTION ControlInput::SaveValue{{{*/ 259 259 void ControlInput::SaveValue(void){ 260 if(!values) _error _("Values of " << EnumToStringx(this->enum_type) << " not found");260 if(!values) _error2_("Values of " << EnumToStringx(this->enum_type) << " not found"); 261 261 262 262 if(savedvalues) delete this->savedvalues; … … 265 265 /*FUNCTION ControlInput::UpdateValue{{{*/ 266 266 void ControlInput::UpdateValue(IssmDouble scalar){ 267 if(!gradient) _error _("Gradient of " << EnumToStringx(this->enum_type) << " not found");268 if(!savedvalues) _error _("Values of " << EnumToStringx(this->enum_type) << " not found");267 if(!gradient) _error2_("Gradient of " << EnumToStringx(this->enum_type) << " not found"); 268 if(!savedvalues) _error2_("Values of " << EnumToStringx(this->enum_type) << " not found"); 269 269 270 270 if(values) delete this->values; -
issm/trunk-jpl/src/c/classes/objects/Inputs/ControlInput.h
r13036 r13055 41 41 int InstanceEnum(); 42 42 Input* SpawnTriaInput(int* indices); 43 Input* PointwiseDivide(Input* inputB){_error _("not implemented yet");};44 Input* PointwiseMin(Input* inputB){_error _("not implemented yet");};45 Input* PointwiseMax(Input* inputB){_error _("not implemented yet");};43 Input* PointwiseDivide(Input* inputB){_error2_("not implemented yet");}; 44 Input* PointwiseMin(Input* inputB){_error2_("not implemented yet");}; 45 Input* PointwiseMax(Input* inputB){_error2_("not implemented yet");}; 46 46 ElementResult* SpawnResult(int step, IssmDouble time); 47 void AddTimeValues(IssmDouble* values,int step,IssmDouble time){_error _("not supported yet");};47 void AddTimeValues(IssmDouble* values,int step,IssmDouble time){_error2_("not supported yet");}; 48 48 void Configure(Parameters* parameters); 49 49 /*}}}*/ … … 55 55 void GetInputValue(IssmDouble* pvalue,GaussTria* gauss); 56 56 void GetInputValue(IssmDouble* pvalue,GaussPenta* gauss); 57 void GetInputValue(IssmDouble* pvalue,GaussTria* gauss,IssmDouble time){_error _("not implemented yet");};58 void GetInputValue(IssmDouble* pvalue,GaussPenta* gauss,IssmDouble time){_error _("not implemented yet");};59 void GetInputValue(IssmDouble* pvalue,GaussTria* gauss ,int index){_error _("not implemented yet");};60 void GetInputValue(IssmDouble* pvalue,GaussPenta* gauss ,int index){_error _("not implemented yet");};57 void GetInputValue(IssmDouble* pvalue,GaussTria* gauss,IssmDouble time){_error2_("not implemented yet");}; 58 void GetInputValue(IssmDouble* pvalue,GaussPenta* gauss,IssmDouble time){_error2_("not implemented yet");}; 59 void GetInputValue(IssmDouble* pvalue,GaussTria* gauss ,int index){_error2_("not implemented yet");}; 60 void GetInputValue(IssmDouble* pvalue,GaussPenta* gauss ,int index){_error2_("not implemented yet");}; 61 61 void GetInputDerivativeValue(IssmDouble* derivativevalues, IssmDouble* xyz_list, GaussTria* gauss); 62 62 void GetInputDerivativeValue(IssmDouble* derivativevalues, IssmDouble* xyz_list, GaussPenta* gauss); 63 63 void GetInputAverage(IssmDouble* pvalue); 64 void GetVxStrainRate2d(IssmDouble* epsilonvx,IssmDouble* xyz_list, GaussTria* gauss){_error _("not implemented yet");};65 void GetVyStrainRate2d(IssmDouble* epsilonvy,IssmDouble* xyz_list, GaussTria* gauss){_error _("not implemented yet");};66 void GetVxStrainRate3d(IssmDouble* epsilonvx,IssmDouble* xyz_list, GaussPenta* gauss){_error _("not implemented yet");};67 void GetVyStrainRate3d(IssmDouble* epsilonvy,IssmDouble* xyz_list, GaussPenta* gauss){_error _("not implemented yet");};68 void GetVzStrainRate3d(IssmDouble* epsilonvz,IssmDouble* xyz_list, GaussPenta* gauss){_error _("not implemented yet");};69 void GetVxStrainRate3dPattyn(IssmDouble* epsilonvx,IssmDouble* xyz_list, GaussPenta* gauss){_error _("not implemented yet");};70 void GetVyStrainRate3dPattyn(IssmDouble* epsilonvy,IssmDouble* xyz_list, GaussPenta* gauss){_error _("not implemented yet");};71 void ChangeEnum(int newenumtype){_error _("not implemented yet");};72 void SquareMin(IssmDouble* psquaremin, bool process_units,Parameters* parameters){_error _("not implemented yet");};73 void ConstrainMin(IssmDouble minimum){_error _("not implemented yet");};74 void Scale(IssmDouble scale_factor){_error _("not implemented yet");};75 void ArtificialNoise(IssmDouble min,IssmDouble max){_error _("not implemented yet");};76 void AXPY(Input* xinput,IssmDouble scalar){_error _("not implemented yet");};64 void GetVxStrainRate2d(IssmDouble* epsilonvx,IssmDouble* xyz_list, GaussTria* gauss){_error2_("not implemented yet");}; 65 void GetVyStrainRate2d(IssmDouble* epsilonvy,IssmDouble* xyz_list, GaussTria* gauss){_error2_("not implemented yet");}; 66 void GetVxStrainRate3d(IssmDouble* epsilonvx,IssmDouble* xyz_list, GaussPenta* gauss){_error2_("not implemented yet");}; 67 void GetVyStrainRate3d(IssmDouble* epsilonvy,IssmDouble* xyz_list, GaussPenta* gauss){_error2_("not implemented yet");}; 68 void GetVzStrainRate3d(IssmDouble* epsilonvz,IssmDouble* xyz_list, GaussPenta* gauss){_error2_("not implemented yet");}; 69 void GetVxStrainRate3dPattyn(IssmDouble* epsilonvx,IssmDouble* xyz_list, GaussPenta* gauss){_error2_("not implemented yet");}; 70 void GetVyStrainRate3dPattyn(IssmDouble* epsilonvy,IssmDouble* xyz_list, GaussPenta* gauss){_error2_("not implemented yet");}; 71 void ChangeEnum(int newenumtype){_error2_("not implemented yet");}; 72 void SquareMin(IssmDouble* psquaremin, bool process_units,Parameters* parameters){_error2_("not implemented yet");}; 73 void ConstrainMin(IssmDouble minimum){_error2_("not implemented yet");}; 74 void Scale(IssmDouble scale_factor){_error2_("not implemented yet");}; 75 void ArtificialNoise(IssmDouble min,IssmDouble max){_error2_("not implemented yet");}; 76 void AXPY(Input* xinput,IssmDouble scalar){_error2_("not implemented yet");}; 77 77 void Constrain(void); 78 78 void Constrain(IssmDouble min,IssmDouble max); 79 IssmDouble InfinityNorm(void){_error _("not implemented yet");};80 IssmDouble Max(void){_error _("not implemented yet");};81 IssmDouble MaxAbs(void){_error _("not implemented yet");};82 IssmDouble Min(void){_error _("not implemented yet");};83 IssmDouble MinAbs(void){_error _("not implemented yet");};79 IssmDouble InfinityNorm(void){_error2_("not implemented yet");}; 80 IssmDouble Max(void){_error2_("not implemented yet");}; 81 IssmDouble MaxAbs(void){_error2_("not implemented yet");}; 82 IssmDouble Min(void){_error2_("not implemented yet");}; 83 IssmDouble MinAbs(void){_error2_("not implemented yet");}; 84 84 void Extrude(void); 85 85 void VerticallyIntegrate(Input* thickness_input); 86 86 void GetVectorFromInputs(Vector* vector,int* doflist,const char* data); 87 87 void GetVectorFromInputs(Vector* vector,int* doflist); 88 void GetValuesPtr(IssmDouble** pvalues,int* pnum_values){_error _("not implemented yet");};88 void GetValuesPtr(IssmDouble** pvalues,int* pnum_values){_error2_("not implemented yet");}; 89 89 ElementResult* SpawnGradient(int step, IssmDouble time); 90 90 void GetGradient(Vector* gradient_vec,int* doflist); -
issm/trunk-jpl/src/c/classes/objects/Inputs/DatasetInput.cpp
r13036 r13055 115 115 116 116 /*Get requested input within dataset*/ 117 if(index<0 || index > inputs->Size()-1) _error _("index requested (" << index << ") exceeds dataset size (" << inputs->Size() << ")");117 if(index<0 || index > inputs->Size()-1) _error2_("index requested (" << index << ") exceeds dataset size (" << inputs->Size() << ")"); 118 118 Input* input=(Input*)this->inputs->GetObjectByOffset(index); 119 119 -
issm/trunk-jpl/src/c/classes/objects/Inputs/DatasetInput.h
r13036 r13055 37 37 int InstanceEnum(); 38 38 Input* SpawnTriaInput(int* indices); 39 Input* PointwiseDivide(Input* inputB){_error _("not implemented yet");};40 Input* PointwiseMin(Input* inputB){_error _("not implemented yet");};41 Input* PointwiseMax(Input* inputB){_error _("not implemented yet");};42 ElementResult* SpawnResult(int step, IssmDouble time){_error _("not implemented yet");};43 void AddTimeValues(IssmDouble* values,int step,IssmDouble time){_error _("not supported yet");};39 Input* PointwiseDivide(Input* inputB){_error2_("not implemented yet");}; 40 Input* PointwiseMin(Input* inputB){_error2_("not implemented yet");}; 41 Input* PointwiseMax(Input* inputB){_error2_("not implemented yet");}; 42 ElementResult* SpawnResult(int step, IssmDouble time){_error2_("not implemented yet");}; 43 void AddTimeValues(IssmDouble* values,int step,IssmDouble time){_error2_("not supported yet");}; 44 44 void Configure(Parameters* parameters); 45 45 /*}}}*/ 46 46 /*numerics: {{{*/ 47 void GetInputValue(bool* pvalue){_error _("not implemented yet");};48 void GetInputValue(int* pvalue){_error _("not implemented yet");};49 void GetInputValue(IssmDouble* pvalue){_error _("not implemented yet");};50 void GetInputValue(IssmDouble* pvalue,GaussTria* gauss){_error _("not implemented yet");};51 void GetInputValue(IssmDouble* pvalue,GaussPenta* gauss){_error _("not implemented yet");};52 void GetInputValue(IssmDouble* pvalue,GaussTria* gauss,IssmDouble time){_error _("not implemented yet");};53 void GetInputValue(IssmDouble* pvalue,GaussPenta* gauss,IssmDouble time){_error _("not implemented yet");};47 void GetInputValue(bool* pvalue){_error2_("not implemented yet");}; 48 void GetInputValue(int* pvalue){_error2_("not implemented yet");}; 49 void GetInputValue(IssmDouble* pvalue){_error2_("not implemented yet");}; 50 void GetInputValue(IssmDouble* pvalue,GaussTria* gauss){_error2_("not implemented yet");}; 51 void GetInputValue(IssmDouble* pvalue,GaussPenta* gauss){_error2_("not implemented yet");}; 52 void GetInputValue(IssmDouble* pvalue,GaussTria* gauss,IssmDouble time){_error2_("not implemented yet");}; 53 void GetInputValue(IssmDouble* pvalue,GaussPenta* gauss,IssmDouble time){_error2_("not implemented yet");}; 54 54 void GetInputValue(IssmDouble* pvalue,GaussTria* gauss ,int index); 55 void GetInputValue(IssmDouble* pvalue,GaussPenta* gauss ,int index){_error _("not implemented yet");};56 void GetInputDerivativeValue(IssmDouble* derivativevalues, IssmDouble* xyz_list, GaussTria* gauss){_error _("not implemented yet");};57 void GetInputDerivativeValue(IssmDouble* derivativevalues, IssmDouble* xyz_list, GaussPenta* gauss){_error _("not implemented yet");};58 void GetInputAverage(IssmDouble* pvalue){_error _("not implemented yet");};59 void GetVxStrainRate2d(IssmDouble* epsilonvx,IssmDouble* xyz_list, GaussTria* gauss){_error _("not implemented yet");};60 void GetVyStrainRate2d(IssmDouble* epsilonvy,IssmDouble* xyz_list, GaussTria* gauss){_error _("not implemented yet");};61 void GetVxStrainRate3d(IssmDouble* epsilonvx,IssmDouble* xyz_list, GaussPenta* gauss){_error _("not implemented yet");};62 void GetVyStrainRate3d(IssmDouble* epsilonvy,IssmDouble* xyz_list, GaussPenta* gauss){_error _("not implemented yet");};63 void GetVzStrainRate3d(IssmDouble* epsilonvz,IssmDouble* xyz_list, GaussPenta* gauss){_error _("not implemented yet");};64 void GetVxStrainRate3dPattyn(IssmDouble* epsilonvx,IssmDouble* xyz_list, GaussPenta* gauss){_error _("not implemented yet");};65 void GetVyStrainRate3dPattyn(IssmDouble* epsilonvy,IssmDouble* xyz_list, GaussPenta* gauss){_error _("not implemented yet");};66 void ChangeEnum(int newenumtype){_error _("not implemented yet");};67 void SquareMin(IssmDouble* psquaremin, bool process_units,Parameters* parameters){_error _("not implemented yet");};68 void ConstrainMin(IssmDouble minimum){_error _("not implemented yet");};69 void Scale(IssmDouble scale_factor){_error _("not implemented yet");};70 void ArtificialNoise(IssmDouble min,IssmDouble max){_error _("not implemented yet");};71 void AXPY(Input* xinput,IssmDouble scalar){_error _("not implemented yet");};72 void Constrain(void){_error _("not implemented yet");};73 void Constrain(IssmDouble min,IssmDouble max){_error _("not implemented yet");};74 IssmDouble InfinityNorm(void){_error _("not implemented yet");};75 IssmDouble Max(void){_error _("not implemented yet");};76 IssmDouble MaxAbs(void){_error _("not implemented yet");};77 IssmDouble Min(void){_error _("not implemented yet");};78 IssmDouble MinAbs(void){_error _("not implemented yet");};79 void Extrude(void){_error _("not implemented yet");};80 void VerticallyIntegrate(Input* thickness_input){_error _("not implemented yet");};81 void GetVectorFromInputs(Vector* vector,int* doflist){_error _("not implemented yet");};82 void GetValuesPtr(IssmDouble** pvalues,int* pnum_values){_error _("not implemented yet");};83 ElementResult* SpawnGradient(int step, IssmDouble time){_error _("not implemented yet");};84 void GetGradient(Vector* gradient_vec,int* doflist){_error _("not implemented yet");};85 void ScaleGradient(IssmDouble scale){_error _("not implemented yet");};86 void SetGradient(Input* gradient_in){_error _("not implemented yet");};87 void UpdateValue(IssmDouble scalar){_error _("not implemented yet");};88 void SaveValue(void){_error _("not implemented yet");};55 void GetInputValue(IssmDouble* pvalue,GaussPenta* gauss ,int index){_error2_("not implemented yet");}; 56 void GetInputDerivativeValue(IssmDouble* derivativevalues, IssmDouble* xyz_list, GaussTria* gauss){_error2_("not implemented yet");}; 57 void GetInputDerivativeValue(IssmDouble* derivativevalues, IssmDouble* xyz_list, GaussPenta* gauss){_error2_("not implemented yet");}; 58 void GetInputAverage(IssmDouble* pvalue){_error2_("not implemented yet");}; 59 void GetVxStrainRate2d(IssmDouble* epsilonvx,IssmDouble* xyz_list, GaussTria* gauss){_error2_("not implemented yet");}; 60 void GetVyStrainRate2d(IssmDouble* epsilonvy,IssmDouble* xyz_list, GaussTria* gauss){_error2_("not implemented yet");}; 61 void GetVxStrainRate3d(IssmDouble* epsilonvx,IssmDouble* xyz_list, GaussPenta* gauss){_error2_("not implemented yet");}; 62 void GetVyStrainRate3d(IssmDouble* epsilonvy,IssmDouble* xyz_list, GaussPenta* gauss){_error2_("not implemented yet");}; 63 void GetVzStrainRate3d(IssmDouble* epsilonvz,IssmDouble* xyz_list, GaussPenta* gauss){_error2_("not implemented yet");}; 64 void GetVxStrainRate3dPattyn(IssmDouble* epsilonvx,IssmDouble* xyz_list, GaussPenta* gauss){_error2_("not implemented yet");}; 65 void GetVyStrainRate3dPattyn(IssmDouble* epsilonvy,IssmDouble* xyz_list, GaussPenta* gauss){_error2_("not implemented yet");}; 66 void ChangeEnum(int newenumtype){_error2_("not implemented yet");}; 67 void SquareMin(IssmDouble* psquaremin, bool process_units,Parameters* parameters){_error2_("not implemented yet");}; 68 void ConstrainMin(IssmDouble minimum){_error2_("not implemented yet");}; 69 void Scale(IssmDouble scale_factor){_error2_("not implemented yet");}; 70 void ArtificialNoise(IssmDouble min,IssmDouble max){_error2_("not implemented yet");}; 71 void AXPY(Input* xinput,IssmDouble scalar){_error2_("not implemented yet");}; 72 void Constrain(void){_error2_("not implemented yet");}; 73 void Constrain(IssmDouble min,IssmDouble max){_error2_("not implemented yet");}; 74 IssmDouble InfinityNorm(void){_error2_("not implemented yet");}; 75 IssmDouble Max(void){_error2_("not implemented yet");}; 76 IssmDouble MaxAbs(void){_error2_("not implemented yet");}; 77 IssmDouble Min(void){_error2_("not implemented yet");}; 78 IssmDouble MinAbs(void){_error2_("not implemented yet");}; 79 void Extrude(void){_error2_("not implemented yet");}; 80 void VerticallyIntegrate(Input* thickness_input){_error2_("not implemented yet");}; 81 void GetVectorFromInputs(Vector* vector,int* doflist){_error2_("not implemented yet");}; 82 void GetValuesPtr(IssmDouble** pvalues,int* pnum_values){_error2_("not implemented yet");}; 83 ElementResult* SpawnGradient(int step, IssmDouble time){_error2_("not implemented yet");}; 84 void GetGradient(Vector* gradient_vec,int* doflist){_error2_("not implemented yet");}; 85 void ScaleGradient(IssmDouble scale){_error2_("not implemented yet");}; 86 void SetGradient(Input* gradient_in){_error2_("not implemented yet");}; 87 void UpdateValue(IssmDouble scalar){_error2_("not implemented yet");}; 88 void SaveValue(void){_error2_("not implemented yet");}; 89 89 /*}}}*/ 90 90 -
issm/trunk-jpl/src/c/classes/objects/Inputs/DoubleInput.cpp
r13036 r13055 108 108 /*FUNCTION DoubleInput::GetInputValue(bool* pvalue) {{{*/ 109 109 void DoubleInput::GetInputValue(bool* pvalue){ 110 _error _("Double input of enum " << EnumToStringx(enum_type) << " cannot return a boolean");110 _error2_("Double input of enum " << EnumToStringx(enum_type) << " cannot return a boolean"); 111 111 112 112 } … … 114 114 /*FUNCTION DoubleInput::GetInputValue(int* pvalue){{{*/ 115 115 void DoubleInput::GetInputValue(int* pvalue){ 116 _error _("Double input of enum " << enum_type << " (" << EnumToStringx(enum_type) << ") cannot return an integer");116 _error2_("Double input of enum " << enum_type << " (" << EnumToStringx(enum_type) << ") cannot return an integer"); 117 117 118 118 } … … 132 132 /*}}}*/ 133 133 /*FUNCTION DoubleInput::GetInputDerivativeValue(IssmDouble* derivativevalues, IssmDouble* xyz_list, GaussTria* gauss){{{*/ 134 void DoubleInput::GetInputDerivativeValue(IssmDouble* derivativevalues, IssmDouble* xyz_list, GaussTria* gauss){_error _("not supported yet!");}134 void DoubleInput::GetInputDerivativeValue(IssmDouble* derivativevalues, IssmDouble* xyz_list, GaussTria* gauss){_error2_("not supported yet!");} 135 135 /*}}}*/ 136 136 /*FUNCTION DoubleInput::GetInputDerivativeValue(IssmDouble* derivativevalues, IssmDouble* xyz_list, GaussPenta* gauss){{{*/ 137 void DoubleInput::GetInputDerivativeValue(IssmDouble* derivativevalues, IssmDouble* xyz_list, GaussPenta* gauss){_error _("not supported yet!");}137 void DoubleInput::GetInputDerivativeValue(IssmDouble* derivativevalues, IssmDouble* xyz_list, GaussPenta* gauss){_error2_("not supported yet!");} 138 138 /*}}}*/ 139 139 /*FUNCTION DoubleInput::GetVxStrainRate2d(IssmDouble* epsilonvx,IssmDouble* xyz_list, GaussTria* gauss){{{*/ … … 217 217 218 218 default: 219 _error _("not implemented yet");219 _error2_("not implemented yet"); 220 220 } 221 221 … … 253 253 void DoubleInput::GetVectorFromInputs(Vector* vector,int* doflist){ 254 254 255 _error _("not supporte yet!");255 _error2_("not supporte yet!"); 256 256 257 257 } … … 260 260 void DoubleInput::GetValuesPtr(IssmDouble** pvalues,int* pnum_values){ 261 261 262 _error _("not supported yet!");262 _error2_("not supported yet!"); 263 263 264 264 } … … 276 276 277 277 /*Check that input provided is a thickness*/ 278 if (thickness_input->InstanceEnum()!=ThicknessEnum) _error _("Input provided is not a Thickness (enum_type is " << EnumToStringx(thickness_input->InstanceEnum()) << ")");278 if (thickness_input->InstanceEnum()!=ThicknessEnum) _error2_("Input provided is not a Thickness (enum_type is " << EnumToStringx(thickness_input->InstanceEnum()) << ")"); 279 279 280 280 /*vertically integrate depending on type:*/ … … 287 287 288 288 default: 289 _error _("not implemented yet");289 _error2_("not implemented yet"); 290 290 } 291 291 } -
issm/trunk-jpl/src/c/classes/objects/Inputs/DoubleInput.h
r13036 r13055 40 40 Input* PointwiseMax(Input* inputB); 41 41 ElementResult* SpawnResult(int step, IssmDouble time); 42 void AddTimeValues(IssmDouble* values,int step,IssmDouble time){_error _("not supported yet");};42 void AddTimeValues(IssmDouble* values,int step,IssmDouble time){_error2_("not supported yet");}; 43 43 void Configure(Parameters* parameters); 44 44 /*}}}*/ … … 49 49 void GetInputValue(IssmDouble* pvalue,GaussTria* gauss); 50 50 void GetInputValue(IssmDouble* pvalue,GaussPenta* gauss); 51 void GetInputValue(IssmDouble* pvalue,GaussTria* gauss,IssmDouble time){_error _("not implemented yet");};52 void GetInputValue(IssmDouble* pvalue,GaussPenta* gauss,IssmDouble time){_error _("not implemented yet");};53 void GetInputValue(IssmDouble* pvalue,GaussTria* gauss ,int index){_error _("not implemented yet");};54 void GetInputValue(IssmDouble* pvalue,GaussPenta* gauss ,int index){_error _("not implemented yet");};51 void GetInputValue(IssmDouble* pvalue,GaussTria* gauss,IssmDouble time){_error2_("not implemented yet");}; 52 void GetInputValue(IssmDouble* pvalue,GaussPenta* gauss,IssmDouble time){_error2_("not implemented yet");}; 53 void GetInputValue(IssmDouble* pvalue,GaussTria* gauss ,int index){_error2_("not implemented yet");}; 54 void GetInputValue(IssmDouble* pvalue,GaussPenta* gauss ,int index){_error2_("not implemented yet");}; 55 55 void GetInputDerivativeValue(IssmDouble* derivativevalues, IssmDouble* xyz_list, GaussTria* gauss); 56 56 void GetInputDerivativeValue(IssmDouble* derivativevalues, IssmDouble* xyz_list, GaussPenta* gauss); … … 67 67 void ConstrainMin(IssmDouble minimum); 68 68 void Scale(IssmDouble scale_factor); 69 void ArtificialNoise(IssmDouble min,IssmDouble max){_error _("not implemented yet");};69 void ArtificialNoise(IssmDouble min,IssmDouble max){_error2_("not implemented yet");}; 70 70 void AXPY(Input* xinput,IssmDouble scalar); 71 71 void Constrain(IssmDouble cm_min, IssmDouble cm_max); 72 IssmDouble InfinityNorm(void){_error _("not implemented yet");};72 IssmDouble InfinityNorm(void){_error2_("not implemented yet");}; 73 73 IssmDouble Max(void); 74 74 IssmDouble MaxAbs(void); 75 75 IssmDouble Min(void); 76 76 IssmDouble MinAbs(void); 77 void Extrude(void){_error _("not supported yet");};77 void Extrude(void){_error2_("not supported yet");}; 78 78 void VerticallyIntegrate(Input* thickness_input); 79 79 void GetVectorFromInputs(Vector* vector,int* doflist); -
issm/trunk-jpl/src/c/classes/objects/Inputs/IntInput.cpp
r13036 r13055 99 99 ElementResult* IntInput::SpawnResult(int step, IssmDouble time){ 100 100 101 _error _("not supported yet!");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){_error _("not supported yet!");}108 void IntInput::GetInputValue(bool* pvalue){_error2_("not supported yet!");} 109 109 /*}}}*/ 110 110 /*FUNCTION IntInput::GetInputValue(int* pvalue){{{*/ … … 115 115 /*FUNCTION IntInput::GetInputValue(IssmDouble* pvalue){{{*/ 116 116 void IntInput::GetInputValue(IssmDouble* pvalue){ 117 _error _("IntInput cannot return a IssmDouble in parallel");117 _error2_("IntInput cannot return a IssmDouble in parallel"); 118 118 } 119 119 /*}}}*/ 120 120 /*FUNCTION IntInput::GetInputValue(IssmDouble* pvalue,GaussTria* gauss){{{*/ 121 void IntInput::GetInputValue(IssmDouble* pvalue,GaussTria* gauss){_error _("not supported yet!");}121 void IntInput::GetInputValue(IssmDouble* pvalue,GaussTria* gauss){_error2_("not supported yet!");} 122 122 /*}}}*/ 123 123 /*FUNCTION IntInput::GetInputValue(IssmDouble* pvalue,GaussPenta* gauss){{{*/ 124 void IntInput::GetInputValue(IssmDouble* pvalue,GaussPenta* gauss){_error _("not supported yet!");}124 void IntInput::GetInputValue(IssmDouble* pvalue,GaussPenta* gauss){_error2_("not supported yet!");} 125 125 /*}}}*/ 126 126 /*FUNCTION IntInput::GetInputDerivativeValue(IssmDouble* derivativevalues, IssmDouble* xyz_list, GaussTria* gauss){{{*/ 127 void IntInput::GetInputDerivativeValue(IssmDouble* derivativevalues, IssmDouble* xyz_list, GaussTria* gauss){_error _("not supported yet!");}127 void IntInput::GetInputDerivativeValue(IssmDouble* derivativevalues, IssmDouble* xyz_list, GaussTria* gauss){_error2_("not supported yet!");} 128 128 /*}}}*/ 129 129 /*FUNCTION IntInput::GetInputDerivativeValue(IssmDouble* derivativevalues, IssmDouble* xyz_list, GaussPenta* gauss){{{*/ 130 void IntInput::GetInputDerivativeValue(IssmDouble* derivativevalues, IssmDouble* xyz_list, GaussPenta* gauss){_error _("not supported yet!");}130 void IntInput::GetInputDerivativeValue(IssmDouble* derivativevalues, IssmDouble* xyz_list, GaussPenta* gauss){_error2_("not supported yet!");} 131 131 /*}}}*/ 132 132 /*FUNCTION IntInput::ChangeEnum{{{*/ … … 166 166 167 167 default: 168 _error _("not implemented yet");168 _error2_("not implemented yet"); 169 169 } 170 170 … … 182 182 void IntInput::GetVectorFromInputs(Vector* vector,int* doflist){ 183 183 184 _error _("not supporte yet!");184 _error2_("not supporte yet!"); 185 185 186 186 } … … 189 189 void IntInput::GetValuesPtr(IssmDouble** pvalues,int* pnum_values){ 190 190 191 _error _("not supported yet!");191 _error2_("not supported yet!"); 192 192 193 193 } -
issm/trunk-jpl/src/c/classes/objects/Inputs/IntInput.h
r13036 r13055 37 37 int InstanceEnum(); 38 38 Input* SpawnTriaInput(int* indices); 39 Input* PointwiseDivide(Input* inputB){_error _("not implemented yet");};40 Input* PointwiseMin(Input* inputB){_error _("not implemented yet");};41 Input* PointwiseMax(Input* inputB){_error _("not implemented yet");};39 Input* PointwiseDivide(Input* inputB){_error2_("not implemented yet");}; 40 Input* PointwiseMin(Input* inputB){_error2_("not implemented yet");}; 41 Input* PointwiseMax(Input* inputB){_error2_("not implemented yet");}; 42 42 ElementResult* SpawnResult(int step, IssmDouble time); 43 void AddTimeValues(IssmDouble* values,int step,IssmDouble time){_error _("not supported yet");};43 void AddTimeValues(IssmDouble* values,int step,IssmDouble time){_error2_("not supported yet");}; 44 44 void Configure(Parameters* parameters); 45 45 /*}}}*/ … … 50 50 void GetInputValue(IssmDouble* pvalue,GaussTria* gauss); 51 51 void GetInputValue(IssmDouble* pvalue,GaussPenta* gauss); 52 void GetInputValue(IssmDouble* pvalue,GaussTria* gauss,IssmDouble time){_error _("not implemented yet");};53 void GetInputValue(IssmDouble* pvalue,GaussPenta* gauss,IssmDouble time){_error _("not implemented yet");};54 void GetInputValue(IssmDouble* pvalue,GaussTria* gauss ,int index){_error _("not implemented yet");};55 void GetInputValue(IssmDouble* pvalue,GaussPenta* gauss ,int index){_error _("not implemented yet");};52 void GetInputValue(IssmDouble* pvalue,GaussTria* gauss,IssmDouble time){_error2_("not implemented yet");}; 53 void GetInputValue(IssmDouble* pvalue,GaussPenta* gauss,IssmDouble time){_error2_("not implemented yet");}; 54 void GetInputValue(IssmDouble* pvalue,GaussTria* gauss ,int index){_error2_("not implemented yet");}; 55 void GetInputValue(IssmDouble* pvalue,GaussPenta* gauss ,int index){_error2_("not implemented yet");}; 56 56 void GetInputDerivativeValue(IssmDouble* derivativevalues, IssmDouble* xyz_list, GaussTria* gauss); 57 57 void GetInputDerivativeValue(IssmDouble* derivativevalues, IssmDouble* xyz_list, GaussPenta* gauss); 58 void GetInputAverage(IssmDouble* pvalue){_error _("not implemented yet");};59 void GetVxStrainRate2d(IssmDouble* epsilonvx,IssmDouble* xyz_list, GaussTria* gauss){_error _("not implemented yet");};60 void GetVyStrainRate2d(IssmDouble* epsilonvy,IssmDouble* xyz_list, GaussTria* gauss){_error _("not implemented yet");};61 void GetVxStrainRate3d(IssmDouble* epsilonvx,IssmDouble* xyz_list, GaussPenta* gauss){_error _("not implemented yet");};62 void GetVyStrainRate3d(IssmDouble* epsilonvy,IssmDouble* xyz_list, GaussPenta* gauss){_error _("not implemented yet");};63 void GetVzStrainRate3d(IssmDouble* epsilonvz,IssmDouble* xyz_list, GaussPenta* gauss){_error _("not implemented yet");};64 void GetVxStrainRate3dPattyn(IssmDouble* epsilonvx,IssmDouble* xyz_list, GaussPenta* gauss){_error _("not implemented yet");};65 void GetVyStrainRate3dPattyn(IssmDouble* epsilonvy,IssmDouble* xyz_list, GaussPenta* gauss){_error _("not implemented yet");};58 void GetInputAverage(IssmDouble* pvalue){_error2_("not implemented yet");}; 59 void GetVxStrainRate2d(IssmDouble* epsilonvx,IssmDouble* xyz_list, GaussTria* gauss){_error2_("not implemented yet");}; 60 void GetVyStrainRate2d(IssmDouble* epsilonvy,IssmDouble* xyz_list, GaussTria* gauss){_error2_("not implemented yet");}; 61 void GetVxStrainRate3d(IssmDouble* epsilonvx,IssmDouble* xyz_list, GaussPenta* gauss){_error2_("not implemented yet");}; 62 void GetVyStrainRate3d(IssmDouble* epsilonvy,IssmDouble* xyz_list, GaussPenta* gauss){_error2_("not implemented yet");}; 63 void GetVzStrainRate3d(IssmDouble* epsilonvz,IssmDouble* xyz_list, GaussPenta* gauss){_error2_("not implemented yet");}; 64 void GetVxStrainRate3dPattyn(IssmDouble* epsilonvx,IssmDouble* xyz_list, GaussPenta* gauss){_error2_("not implemented yet");}; 65 void GetVyStrainRate3dPattyn(IssmDouble* epsilonvy,IssmDouble* xyz_list, GaussPenta* gauss){_error2_("not implemented yet");}; 66 66 void ChangeEnum(int newenumtype); 67 67 void SquareMin(IssmDouble* psquaremin, bool process_units,Parameters* parameters); 68 void ConstrainMin(IssmDouble minimum){_error _("not implemented yet");};68 void ConstrainMin(IssmDouble minimum){_error2_("not implemented yet");}; 69 69 void Scale(IssmDouble scale_factor); 70 void ArtificialNoise(IssmDouble min,IssmDouble max){_error _("not implemented yet");};70 void ArtificialNoise(IssmDouble min,IssmDouble max){_error2_("not implemented yet");}; 71 71 void AXPY(Input* xinput,IssmDouble scalar); 72 72 void Constrain(IssmDouble cm_min, IssmDouble cm_max); 73 IssmDouble InfinityNorm(void){_error _("InfinityNorm not implemented for integers");};74 IssmDouble Max(void){_error _("Max not implemented for integers");};75 IssmDouble MaxAbs(void){_error _("Max not implemented for integers");};76 IssmDouble Min(void){_error _("Min not implemented for integers");};77 IssmDouble MinAbs(void){_error _("Min not implemented for integers");};78 void Extrude(void){_error _("not supported yet");};79 void VerticallyIntegrate(Input* thickness_input){_error _("not supported yet");};73 IssmDouble InfinityNorm(void){_error2_("InfinityNorm not implemented for integers");}; 74 IssmDouble Max(void){_error2_("Max not implemented for integers");}; 75 IssmDouble MaxAbs(void){_error2_("Max not implemented for integers");}; 76 IssmDouble Min(void){_error2_("Min not implemented for integers");}; 77 IssmDouble MinAbs(void){_error2_("Min not implemented for integers");}; 78 void Extrude(void){_error2_("not supported yet");}; 79 void VerticallyIntegrate(Input* thickness_input){_error2_("not supported yet");}; 80 80 void GetVectorFromInputs(Vector* vector,int* doflist); 81 81 void GetValuesPtr(IssmDouble** pvalues,int* pnum_values); -
issm/trunk-jpl/src/c/classes/objects/Inputs/PentaP1Input.cpp
r13036 r13055 455 455 case ControlInputEnum:{ 456 456 ControlInput* cont_input=(ControlInput*)xinput; 457 if(cont_input->values->ObjectEnum()!=PentaP1InputEnum) _error _("not supported yet");457 if(cont_input->values->ObjectEnum()!=PentaP1InputEnum) _error2_("not supported yet"); 458 458 PentaP1Input* cast_input=(PentaP1Input*)cont_input->values; 459 459 for(i=0;i<numnodes;i++)this->values[i]=this->values[i]+scalar*(cast_input->values[i]);} 460 460 return; 461 461 default: 462 _error _("not implemented yet");462 _error2_("not implemented yet"); 463 463 } 464 464 … … 495 495 496 496 /*Check that input provided is a thickness*/ 497 if (thickness_input->InstanceEnum()!=ThicknessEnum) _error _("Input provided is not a Thickness (enum_type is " << EnumToStringx(thickness_input->InstanceEnum()) << ")");497 if (thickness_input->InstanceEnum()!=ThicknessEnum) _error2_("Input provided is not a Thickness (enum_type is " << EnumToStringx(thickness_input->InstanceEnum()) << ")"); 498 498 499 499 /*Get Thickness value pointer*/ … … 511 511 512 512 default: 513 _error _("not implemented yet");513 _error2_("not implemented yet"); 514 514 } 515 515 } … … 529 529 530 530 /*Check that inputB is of the same type*/ 531 if (inputB->ObjectEnum()!=PentaP1InputEnum) _error _("Operation not permitted because inputB is of type " << EnumToStringx(inputB->ObjectEnum()));531 if (inputB->ObjectEnum()!=PentaP1InputEnum) _error2_("Operation not permitted because inputB is of type " << EnumToStringx(inputB->ObjectEnum())); 532 532 xinputB=(PentaP1Input*)inputB; 533 533 … … 560 560 561 561 /*Check that inputB is of the same type*/ 562 if (inputB->ObjectEnum()!=PentaP1InputEnum) _error _("Operation not permitted because inputB is of type " << EnumToStringx(inputB->ObjectEnum()));562 if (inputB->ObjectEnum()!=PentaP1InputEnum) _error2_("Operation not permitted because inputB is of type " << EnumToStringx(inputB->ObjectEnum())); 563 563 xinputB=(PentaP1Input*)inputB; 564 564 … … 591 591 592 592 /*Check that inputB is of the same type*/ 593 if (inputB->ObjectEnum()!=PentaP1InputEnum) _error _("Operation not permitted because inputB is of type " << EnumToStringx(inputB->ObjectEnum()));593 if (inputB->ObjectEnum()!=PentaP1InputEnum) _error2_("Operation not permitted because inputB is of type " << EnumToStringx(inputB->ObjectEnum())); 594 594 xinputB=(PentaP1Input*)inputB; 595 595 -
issm/trunk-jpl/src/c/classes/objects/Inputs/PentaP1Input.h
r13036 r13055 41 41 Input* PointwiseMax(Input* inputB); 42 42 ElementResult* SpawnResult(int step, IssmDouble time); 43 void AddTimeValues(IssmDouble* values,int step,IssmDouble time){_error _("not supported yet");};43 void AddTimeValues(IssmDouble* values,int step,IssmDouble time){_error2_("not supported yet");}; 44 44 void Configure(Parameters* parameters); 45 45 /*}}}*/ 46 46 /*numerics: {{{*/ 47 void GetInputValue(bool* pvalue){_error _("not implemented yet");};48 void GetInputValue(int* pvalue){_error _("not implemented yet");};49 void GetInputValue(IssmDouble* pvalue){_error _("not implemented yet");};50 void GetInputValue(IssmDouble* pvalue,GaussTria* gauss){_error _("not implemented yet");};47 void GetInputValue(bool* pvalue){_error2_("not implemented yet");}; 48 void GetInputValue(int* pvalue){_error2_("not implemented yet");}; 49 void GetInputValue(IssmDouble* pvalue){_error2_("not implemented yet");}; 50 void GetInputValue(IssmDouble* pvalue,GaussTria* gauss){_error2_("not implemented yet");}; 51 51 void GetInputValue(IssmDouble* pvalue,GaussPenta* gauss); 52 void GetInputValue(IssmDouble* pvalue,GaussTria* gauss,IssmDouble time){_error _("not implemented yet");};53 void GetInputValue(IssmDouble* pvalue,GaussPenta* gauss,IssmDouble time){_error _("not implemented yet");};54 void GetInputValue(IssmDouble* pvalue,GaussTria* gauss ,int index){_error _("not implemented yet");};55 void GetInputValue(IssmDouble* pvalue,GaussPenta* gauss ,int index){_error _("not implemented yet");};56 void GetInputDerivativeValue(IssmDouble* derivativevalues, IssmDouble* xyz_list, GaussTria* gauss){_error _("not implemented yet");};52 void GetInputValue(IssmDouble* pvalue,GaussTria* gauss,IssmDouble time){_error2_("not implemented yet");}; 53 void GetInputValue(IssmDouble* pvalue,GaussPenta* gauss,IssmDouble time){_error2_("not implemented yet");}; 54 void GetInputValue(IssmDouble* pvalue,GaussTria* gauss ,int index){_error2_("not implemented yet");}; 55 void GetInputValue(IssmDouble* pvalue,GaussPenta* gauss ,int index){_error2_("not implemented yet");}; 56 void GetInputDerivativeValue(IssmDouble* derivativevalues, IssmDouble* xyz_list, GaussTria* gauss){_error2_("not implemented yet");}; 57 57 void GetInputDerivativeValue(IssmDouble* derivativevalues, IssmDouble* xyz_list, GaussPenta* gauss); 58 58 void GetInputAverage(IssmDouble* pvalue); 59 void GetVxStrainRate2d(IssmDouble* epsilonvx,IssmDouble* xyz_list, GaussTria* gauss){_error _("not implemented yet");};60 void GetVyStrainRate2d(IssmDouble* epsilonvy,IssmDouble* xyz_list, GaussTria* gauss){_error _("not implemented yet");};59 void GetVxStrainRate2d(IssmDouble* epsilonvx,IssmDouble* xyz_list, GaussTria* gauss){_error2_("not implemented yet");}; 60 void GetVyStrainRate2d(IssmDouble* epsilonvy,IssmDouble* xyz_list, GaussTria* gauss){_error2_("not implemented yet");}; 61 61 void GetVxStrainRate3d(IssmDouble* epsilonvx,IssmDouble* xyz_list, GaussPenta* gauss); 62 62 void GetVyStrainRate3d(IssmDouble* epsilonvy,IssmDouble* xyz_list, GaussPenta* gauss); … … 69 69 void ConstrainMin(IssmDouble minimum); 70 70 void Scale(IssmDouble scale_factor); 71 void ArtificialNoise(IssmDouble min,IssmDouble max){_error _("not implemented yet");};71 void ArtificialNoise(IssmDouble min,IssmDouble max){_error2_("not implemented yet");}; 72 72 void AXPY(Input* xinput,IssmDouble scalar); 73 73 void Constrain(IssmDouble cm_min, IssmDouble cm_max); -
issm/trunk-jpl/src/c/classes/objects/Inputs/TransientInput.cpp
r13036 r13055 482 482 } 483 483 } 484 if(!found)_error _("did not find time interval on which to interpolate forcing values!");484 if(!found)_error2_("did not find time interval on which to interpolate forcing values!"); 485 485 486 486 /*Assign output pointer*/ -
issm/trunk-jpl/src/c/classes/objects/Inputs/TransientInput.h
r13036 r13055 40 40 int InstanceEnum(); 41 41 Input* SpawnTriaInput(int* indices); 42 Input* PointwiseDivide(Input* forcingB){_error _("not implemented yet");};43 Input* PointwiseMin(Input* forcingB){_error _("not implemented yet");};44 Input* PointwiseMax(Input* forcingB){_error _("not implemented yet");};42 Input* PointwiseDivide(Input* forcingB){_error2_("not implemented yet");}; 43 Input* PointwiseMin(Input* forcingB){_error2_("not implemented yet");}; 44 Input* PointwiseMax(Input* forcingB){_error2_("not implemented yet");}; 45 45 ElementResult* SpawnResult(int step, IssmDouble time); 46 46 void Configure(Parameters* parameters); 47 47 /*}}}*/ 48 48 /*numerics: {{{*/ 49 void GetInputValue(bool* pvalue){_error _("not implemented yet");};50 void GetInputValue(int* pvalue){_error _("not implemented yet");};51 void GetInputValue(IssmDouble* pvalue){_error _("not implemented yet");};49 void GetInputValue(bool* pvalue){_error2_("not implemented yet");}; 50 void GetInputValue(int* pvalue){_error2_("not implemented yet");}; 51 void GetInputValue(IssmDouble* pvalue){_error2_("not implemented yet");}; 52 52 void GetInputValue(IssmDouble* pvalue,GaussTria* gauss); 53 53 void GetInputValue(IssmDouble* pvalue,GaussPenta* gauss); 54 54 void GetInputValue(IssmDouble* pvalue,GaussTria* gauss,IssmDouble time); 55 55 void GetInputValue(IssmDouble* pvalue,GaussPenta* gauss,IssmDouble time); 56 void GetInputValue(IssmDouble* pvalue,GaussTria* gauss ,int index){_error _("not implemented yet");};57 void GetInputValue(IssmDouble* pvalue,GaussPenta* gauss ,int index){_error _("not implemented yet");};56 void GetInputValue(IssmDouble* pvalue,GaussTria* gauss ,int index){_error2_("not implemented yet");}; 57 void GetInputValue(IssmDouble* pvalue,GaussPenta* gauss ,int index){_error2_("not implemented yet");}; 58 58 void GetInputDerivativeValue(IssmDouble* derivativevalues, IssmDouble* xyz_list, GaussTria* gauss); 59 void GetInputDerivativeValue(IssmDouble* derivativevalues, IssmDouble* xyz_list, GaussPenta* gauss){_error _("not implemented yet");};59 void GetInputDerivativeValue(IssmDouble* derivativevalues, IssmDouble* xyz_list, GaussPenta* gauss){_error2_("not implemented yet");}; 60 60 void GetInputAverage(IssmDouble* pvalue); 61 void GetVxStrainRate2d(IssmDouble* epsilonvx,IssmDouble* xyz_list, GaussTria* gauss){_error _("not implemented yet");};62 void GetVyStrainRate2d(IssmDouble* epsilonvy,IssmDouble* xyz_list, GaussTria* gauss){_error _("not implemented yet");};63 void GetVxStrainRate3d(IssmDouble* epsilonvx,IssmDouble* xyz_list, GaussPenta* gauss){_error _("not implemented yet");};64 void GetVyStrainRate3d(IssmDouble* epsilonvy,IssmDouble* xyz_list, GaussPenta* gauss){_error _("not implemented yet");};65 void GetVzStrainRate3d(IssmDouble* epsilonvz,IssmDouble* xyz_list, GaussPenta* gauss){_error _("not implemented yet");};66 void GetVxStrainRate3dPattyn(IssmDouble* epsilonvx,IssmDouble* xyz_list, GaussPenta* gauss){_error _("not implemented yet");};67 void GetVyStrainRate3dPattyn(IssmDouble* epsilonvy,IssmDouble* xyz_list, GaussPenta* gauss){_error _("not implemented yet");};61 void GetVxStrainRate2d(IssmDouble* epsilonvx,IssmDouble* xyz_list, GaussTria* gauss){_error2_("not implemented yet");}; 62 void GetVyStrainRate2d(IssmDouble* epsilonvy,IssmDouble* xyz_list, GaussTria* gauss){_error2_("not implemented yet");}; 63 void GetVxStrainRate3d(IssmDouble* epsilonvx,IssmDouble* xyz_list, GaussPenta* gauss){_error2_("not implemented yet");}; 64 void GetVyStrainRate3d(IssmDouble* epsilonvy,IssmDouble* xyz_list, GaussPenta* gauss){_error2_("not implemented yet");}; 65 void GetVzStrainRate3d(IssmDouble* epsilonvz,IssmDouble* xyz_list, GaussPenta* gauss){_error2_("not implemented yet");}; 66 void GetVxStrainRate3dPattyn(IssmDouble* epsilonvx,IssmDouble* xyz_list, GaussPenta* gauss){_error2_("not implemented yet");}; 67 void GetVyStrainRate3dPattyn(IssmDouble* epsilonvy,IssmDouble* xyz_list, GaussPenta* gauss){_error2_("not implemented yet");}; 68 68 void ChangeEnum(int newenumtype); 69 69 70 70 void SquareMin(IssmDouble* psquaremin, bool process_units,Parameters* parameters); 71 void ConstrainMin(IssmDouble minimum){_error _("not implemented yet");};72 void Scale(IssmDouble scale_factor){_error _("not implemented yet");};73 void ArtificialNoise(IssmDouble min,IssmDouble max){_error _("not implemented yet");};74 void AXPY(Input* xforcing,IssmDouble scalar){_error _("not implemented yet");};75 void Constrain(IssmDouble cm_min, IssmDouble cm_max){_error _("not implemented yet");};71 void ConstrainMin(IssmDouble minimum){_error2_("not implemented yet");}; 72 void Scale(IssmDouble scale_factor){_error2_("not implemented yet");}; 73 void ArtificialNoise(IssmDouble min,IssmDouble max){_error2_("not implemented yet");}; 74 void AXPY(Input* xforcing,IssmDouble scalar){_error2_("not implemented yet");}; 75 void Constrain(IssmDouble cm_min, IssmDouble cm_max){_error2_("not implemented yet");}; 76 76 IssmDouble InfinityNorm(void); 77 77 IssmDouble Max(void); … … 80 80 IssmDouble MinAbs(void); 81 81 void Extrude(void); 82 void VerticallyIntegrate(Input* thickness_forcing){_error _("not supported yet");};82 void VerticallyIntegrate(Input* thickness_forcing){_error2_("not supported yet");}; 83 83 void GetVectorFromInputs(Vector* vector,int* doflist); 84 void GetValuesPtr(IssmDouble** pvalues,int* pnum_values){_error _("not supported yet");};85 void GetTimeValues(IssmDouble* values,IssmDouble time){_error _("not implemented yet");};84 void GetValuesPtr(IssmDouble** pvalues,int* pnum_values){_error2_("not supported yet");}; 85 void GetTimeValues(IssmDouble* values,IssmDouble time){_error2_("not implemented yet");}; 86 86 Input* GetTimeInput(IssmDouble time); 87 87 /*}}}*/ -
issm/trunk-jpl/src/c/classes/objects/Inputs/TriaP1Input.cpp
r13036 r13055 323 323 324 324 default : 325 _error _("not implemented yet");325 _error2_("not implemented yet"); 326 326 } 327 327 … … 368 368 369 369 /*Check that inputB is of the same type*/ 370 if (inputB->ObjectEnum()!=TriaP1InputEnum) _error _("Operation not permitted because inputB is of type " << EnumToStringx(inputB->ObjectEnum()));370 if (inputB->ObjectEnum()!=TriaP1InputEnum) _error2_("Operation not permitted because inputB is of type " << EnumToStringx(inputB->ObjectEnum())); 371 371 xinputB=(TriaP1Input*)inputB; 372 372 … … 399 399 400 400 /*Check that inputB is of the same type*/ 401 if (inputB->ObjectEnum()!=TriaP1InputEnum) _error _("Operation not permitted because inputB is of type " << EnumToStringx(inputB->ObjectEnum()));401 if (inputB->ObjectEnum()!=TriaP1InputEnum) _error2_("Operation not permitted because inputB is of type " << EnumToStringx(inputB->ObjectEnum())); 402 402 xinputB=(TriaP1Input*)inputB; 403 403 -
issm/trunk-jpl/src/c/classes/objects/Inputs/TriaP1Input.h
r13036 r13055 37 37 int InstanceEnum(); 38 38 Input* SpawnTriaInput(int* indices); 39 Input* PointwiseDivide(Input* inputB){_error _("not implemented yet");};39 Input* PointwiseDivide(Input* inputB){_error2_("not implemented yet");}; 40 40 Input* PointwiseMin(Input* inputB); 41 41 Input* PointwiseMax(Input* inputB); 42 42 ElementResult* SpawnResult(int step, IssmDouble time); 43 void AddTimeValues(IssmDouble* values,int step,IssmDouble time){_error _("not supported yet");};43 void AddTimeValues(IssmDouble* values,int step,IssmDouble time){_error2_("not supported yet");}; 44 44 void Configure(Parameters* parameters); 45 45 /*}}}*/ 46 46 /*numerics: {{{*/ 47 void GetInputValue(bool* pvalue){_error _("not implemented yet");}48 void GetInputValue(int* pvalue){_error _("not implemented yet");}49 void GetInputValue(IssmDouble* pvalue){_error _("not implemented yet");}47 void GetInputValue(bool* pvalue){_error2_("not implemented yet");} 48 void GetInputValue(int* pvalue){_error2_("not implemented yet");} 49 void GetInputValue(IssmDouble* pvalue){_error2_("not implemented yet");} 50 50 void GetInputValue(IssmDouble* pvalue,GaussTria* gauss); 51 void GetInputValue(IssmDouble* pvalue,GaussPenta* gauss){_error _("not implemented yet");};52 void GetInputValue(IssmDouble* pvalue,GaussTria* gauss,IssmDouble time){_error _("not implemented yet");};53 void GetInputValue(IssmDouble* pvalue,GaussPenta* gauss,IssmDouble time){_error _("not implemented yet");};54 void GetInputValue(IssmDouble* pvalue,GaussTria* gauss ,int index){_error _("not implemented yet");};55 void GetInputValue(IssmDouble* pvalue,GaussPenta* gauss,int index){_error _("not implemented yet");};51 void GetInputValue(IssmDouble* pvalue,GaussPenta* gauss){_error2_("not implemented yet");}; 52 void GetInputValue(IssmDouble* pvalue,GaussTria* gauss,IssmDouble time){_error2_("not implemented yet");}; 53 void GetInputValue(IssmDouble* pvalue,GaussPenta* gauss,IssmDouble time){_error2_("not implemented yet");}; 54 void GetInputValue(IssmDouble* pvalue,GaussTria* gauss ,int index){_error2_("not implemented yet");}; 55 void GetInputValue(IssmDouble* pvalue,GaussPenta* gauss,int index){_error2_("not implemented yet");}; 56 56 void GetInputDerivativeValue(IssmDouble* derivativevalues, IssmDouble* xyz_list, GaussTria* gauss); 57 void GetInputDerivativeValue(IssmDouble* derivativevalues, IssmDouble* xyz_list, GaussPenta* gauss){_error _("not implemented yet");};57 void GetInputDerivativeValue(IssmDouble* derivativevalues, IssmDouble* xyz_list, GaussPenta* gauss){_error2_("not implemented yet");}; 58 58 void GetInputAverage(IssmDouble* pvalue); 59 59 void GetVxStrainRate2d(IssmDouble* epsilonvx,IssmDouble* xyz_list, GaussTria* gauss); 60 60 void GetVyStrainRate2d(IssmDouble* epsilonvy,IssmDouble* xyz_list, GaussTria* gauss); 61 void GetVxStrainRate3d(IssmDouble* epsilonvx,IssmDouble* xyz_list, GaussPenta* gauss){_error _("not implemented yet");};62 void GetVyStrainRate3d(IssmDouble* epsilonvy,IssmDouble* xyz_list, GaussPenta* gauss){_error _("not implemented yet");};63 void GetVzStrainRate3d(IssmDouble* epsilonvz,IssmDouble* xyz_list, GaussPenta* gauss){_error _("not implemented yet");};64 void GetVxStrainRate3dPattyn(IssmDouble* epsilonvx,IssmDouble* xyz_list, GaussPenta* gauss){_error _("not implemented yet");};65 void GetVyStrainRate3dPattyn(IssmDouble* epsilonvy,IssmDouble* xyz_list, GaussPenta* gauss){_error _("not implemented yet");};61 void GetVxStrainRate3d(IssmDouble* epsilonvx,IssmDouble* xyz_list, GaussPenta* gauss){_error2_("not implemented yet");}; 62 void GetVyStrainRate3d(IssmDouble* epsilonvy,IssmDouble* xyz_list, GaussPenta* gauss){_error2_("not implemented yet");}; 63 void GetVzStrainRate3d(IssmDouble* epsilonvz,IssmDouble* xyz_list, GaussPenta* gauss){_error2_("not implemented yet");}; 64 void GetVxStrainRate3dPattyn(IssmDouble* epsilonvx,IssmDouble* xyz_list, GaussPenta* gauss){_error2_("not implemented yet");}; 65 void GetVyStrainRate3dPattyn(IssmDouble* epsilonvy,IssmDouble* xyz_list, GaussPenta* gauss){_error2_("not implemented yet");}; 66 66 void ChangeEnum(int newenumtype); 67 67 … … 77 77 IssmDouble Min(void); 78 78 IssmDouble MinAbs(void); 79 void Extrude(void){_error _("not supported yet");};80 void VerticallyIntegrate(Input* thickness_input){_error _("not supported yet");};79 void Extrude(void){_error2_("not supported yet");}; 80 void VerticallyIntegrate(Input* thickness_input){_error2_("not supported yet");}; 81 81 void GetVectorFromInputs(Vector* vector,int* doflist); 82 82 void GetValuesPtr(IssmDouble** pvalues,int* pnum_values); -
issm/trunk-jpl/src/c/classes/objects/KML/KMLFileReadUtils.cpp
r13036 r13055 259 259 260 260 if (strncmp(&ktag[0],"<" ,1) || strncmp(&ktag[strlen(ktag)-1],">",1)) 261 _error _("KMLFileTagName -- Missing tag delimiters in " << ktag << ".\n");261 _error2_("KMLFileTagName -- Missing tag delimiters in " << ktag << ".\n"); 262 262 263 263 /* strtok modifies ktag, so work on copy */ … … 355 355 NULL,NULL)) || 356 356 (kstr[0] == '<')) 357 _error _("KMLFileTokenParse -- Missing integer field for " << ktag << ".\n");357 _error2_("KMLFileTokenParse -- Missing integer field for " << ktag << ".\n"); 358 358 359 359 sscanf(kstr,"%d",pival); … … 368 368 (kstr[1] != '/') || 369 369 (strncmp(&(kstr[2]),&(ktag[1]),strlen(ktag)-1))) 370 {_error _("KMLFileTokenParse -- Missing closing tag for " << ktag << ".\n");}370 {_error2_("KMLFileTokenParse -- Missing closing tag for " << ktag << ".\n");} 371 371 else 372 372 xDelete<char>(kstr); … … 388 388 NULL,NULL)) || 389 389 (kstr[0] == '<')) 390 {_error _("KMLFileTokenParse -- Missing bool field for " << ktag << ".\n");}390 {_error2_("KMLFileTokenParse -- Missing bool field for " << ktag << ".\n");} 391 391 392 392 sscanf(kstr,"%d",&ival); … … 402 402 (kstr[1] != '/') || 403 403 (strncmp(&(kstr[2]),&(ktag[1]),strlen(ktag)-1))) 404 {_error _("KMLFileTokenParse -- Missing closing tag for " << ktag << ".\n");}404 {_error2_("KMLFileTokenParse -- Missing closing tag for " << ktag << ".\n");} 405 405 else 406 406 xDelete<char>(kstr); … … 433 433 NULL,NULL)) || 434 434 (kstr[0] == '<')) 435 _error _("KMLFileTokenParse -- Missing string field for " << ktag << ".\n");435 _error2_("KMLFileTokenParse -- Missing string field for " << ktag << ".\n"); 436 436 437 437 if (!pstr) { … … 463 463 (kstr[1] != '/') || 464 464 (strncmp(&(kstr[2]),&(ktag[1]),strlen(ktag)-1))) 465 {_error _("KMLFileTokenParse -- Missing closing tag for " << ktag << ".\n");}465 {_error2_("KMLFileTokenParse -- Missing closing tag for " << ktag << ".\n");} 466 466 else 467 467 xDelete<char>(kstr); … … 484 484 NULL,NULL)) || 485 485 (kstr[0] == '<')) 486 {_error _("KMLFileTokenParse -- Missing integer field for " << ktag << ".\n");}486 {_error2_("KMLFileTokenParse -- Missing integer field for " << ktag << ".\n");} 487 487 488 488 sscanf(kstr,"%g",pfval); … … 497 497 (kstr[1] != '/') || 498 498 (strncmp(&(kstr[2]),&(ktag[1]),strlen(ktag)-1))) 499 {_error _("KMLFileTokenParse -- Missing closing tag for " << ktag << ".\n");}499 {_error2_("KMLFileTokenParse -- Missing closing tag for " << ktag << ".\n");} 500 500 else 501 501 xDelete<char>(kstr); … … 518 518 NULL,NULL)) || 519 519 (kstr[0] == '<')) 520 _error _("KMLFileTokenParse -- Missing integer field for " << ktag << ".\n");520 _error2_("KMLFileTokenParse -- Missing integer field for " << ktag << ".\n"); 521 521 522 522 sscanf(kstr,"%lg",pdval); … … 531 531 (kstr[1] != '/') || 532 532 (strncmp(&(kstr[2]),&(ktag[1]),strlen(ktag)-1))) 533 {_error _("KMLFileTokenParse -- Missing closing tag for " << ktag << ".\n");}533 {_error2_("KMLFileTokenParse -- Missing closing tag for " << ktag << ".\n");} 534 534 else 535 535 xDelete<char>(kstr); … … 556 556 NULL,NULL)) || 557 557 (kstr[0] == '<')) 558 _error _("KMLFileTokenParse -- Missing double [m] field for " << ktag << ".\n");558 _error2_("KMLFileTokenParse -- Missing double [m] field for " << ktag << ".\n"); 559 559 560 560 if (!*pdval) … … 570 570 i++; 571 571 if (maxlen && (maxlen < i+1)) 572 _error _("KMLFileTokenParse -- Double [m] field too short for " << ktag << ".\n");572 _error2_("KMLFileTokenParse -- Double [m] field too short for " << ktag << ".\n"); 573 573 sscanf(ktok,"%lg",&((*pdval)[i])); 574 574 ktok=strtok(NULL,delim); … … 595 595 (kstr[1] != '/') || 596 596 (strncmp(&(kstr[2]),&(ktag[1]),strlen(ktag)-1))) 597 {_error _("KMLFileTokenParse -- Missing closing tag for " << ktag << ".\n");}597 {_error2_("KMLFileTokenParse -- Missing closing tag for " << ktag << ".\n");} 598 598 else 599 599 xDelete<char>(kstr); … … 622 622 NULL,NULL)) || 623 623 (kstr[0] == '<')) 624 _error _("KMLFileTokenParse -- Missing double [m x n] field for " << ktag << ".\n");624 _error2_("KMLFileTokenParse -- Missing double [m x n] field for " << ktag << ".\n"); 625 625 626 626 if (!*pdval) … … 636 636 i++; 637 637 if (maxlen && (maxlen*n < i+1)) 638 _error _("KMLFileTokenParse -- Double [m x n] field too short for " << ktag << ".\n");638 _error2_("KMLFileTokenParse -- Double [m x n] field too short for " << ktag << ".\n"); 639 639 j=(j+1) % n; 640 640 sscanf(ktok,"%lg",&((*pdval)[i])); … … 665 665 (kstr[1] != '/') || 666 666 (strncmp(&(kstr[2]),&(ktag[1]),strlen(ktag)-1))) 667 {_error _("KMLFileTokenParse -- Missing closing tag for " << ktag << ".\n");}667 {_error2_("KMLFileTokenParse -- Missing closing tag for " << ktag << ".\n");} 668 668 else 669 669 xDelete<char>(kstr); … … 712 712 else if ((kstr[0] == '<') && 713 713 (kstr[1] == '/')) { 714 _error _("KMLFileTagSkip -- Unexpected closing tag " << kstr << ".\n");714 _error2_("KMLFileTagSkip -- Unexpected closing tag " << kstr << ".\n"); 715 715 } 716 716 … … 718 718 } 719 719 720 _error _("KMLFileTokenParse -- Corresponding closing tag for " << ktag << " not found.\n");720 _error2_("KMLFileTokenParse -- Corresponding closing tag for " << ktag << " not found.\n"); 721 721 722 722 return(0); -
issm/trunk-jpl/src/c/classes/objects/KML/KML_Attribute.h
r13036 r13055 30 30 virtual void DeepEcho(); 31 31 virtual void DeepEcho(const char* indent); 32 int Id(){_error _("Not implemented yet.");};33 int MyRank(){_error _("Not implemented yet.");};34 void Marshall(char** pmarshalled_dataset){_error _("Not implemented yet.");};35 int MarshallSize(){_error _("Not implemented yet.");};36 void Demarshall(char** pmarshalled_dataset){_error _("Not implemented yet.");};37 int ObjectEnum(){_error _("Not implemented yet.");};38 Object* copy(){_error _("Not implemented yet.");};32 int Id(){_error2_("Not implemented yet.");}; 33 int MyRank(){_error2_("Not implemented yet.");}; 34 void Marshall(char** pmarshalled_dataset){_error2_("Not implemented yet.");}; 35 int MarshallSize(){_error2_("Not implemented yet.");}; 36 void Demarshall(char** pmarshalled_dataset){_error2_("Not implemented yet.");}; 37 int ObjectEnum(){_error2_("Not implemented yet.");}; 38 Object* copy(){_error2_("Not implemented yet.");}; 39 39 /*}}}*/ 40 40 -
issm/trunk-jpl/src/c/classes/objects/KML/KML_ColorStyle.cpp
r13036 r13055 93 93 return; 94 94 else if (!strncmp(kstr,"</",2)) 95 {_error _("KML_ColorStyle::Read -- Unexpected closing tag " << kstr);}95 {_error2_("KML_ColorStyle::Read -- Unexpected closing tag " << kstr);} 96 96 else if (strncmp(kstr,"<",1)) 97 {_error _("KML_ColorStyle::Read -- Unexpected field \"" << kstr << "\"");}97 {_error2_("KML_ColorStyle::Read -- Unexpected field \"" << kstr << "\"");} 98 98 99 99 else if (!strcmp(kstr,"<color>")) -
issm/trunk-jpl/src/c/classes/objects/KML/KML_ColorStyle.h
r13036 r13055 35 35 void Write(FILE* fid,const char* indent); 36 36 void Read(FILE* fid,char* kstr); 37 int Id(){_error _("Not implemented yet.");};38 int MyRank(){_error _("Not implemented yet.");};39 void Marshall(char** pmarshalled_dataset){_error _("Not implemented yet.");};40 int MarshallSize(){_error _("Not implemented yet.");};41 void Demarshall(char** pmarshalled_dataset){_error _("Not implemented yet.");};42 int ObjectEnum(){_error _("Not implemented yet.");};43 Object* copy(){_error _("Not implemented yet.");};37 int Id(){_error2_("Not implemented yet.");}; 38 int MyRank(){_error2_("Not implemented yet.");}; 39 void Marshall(char** pmarshalled_dataset){_error2_("Not implemented yet.");}; 40 int MarshallSize(){_error2_("Not implemented yet.");}; 41 void Demarshall(char** pmarshalled_dataset){_error2_("Not implemented yet.");}; 42 int ObjectEnum(){_error2_("Not implemented yet.");}; 43 Object* copy(){_error2_("Not implemented yet.");}; 44 44 /*}}}*/ 45 45 -
issm/trunk-jpl/src/c/classes/objects/KML/KML_Container.h
r13036 r13055 33 33 void Read(FILE* fid,char* kstr); 34 34 void WriteExp(FILE* fid,const char* nstr,int sgn,double cm,double sp); 35 int Id(){_error _("Not implemented yet.");};36 int MyRank(){_error _("Not implemented yet.");};37 void Marshall(char** pmarshalled_dataset){_error _("Not implemented yet.");};38 int MarshallSize(){_error _("Not implemented yet.");};39 void Demarshall(char** pmarshalled_dataset){_error _("Not implemented yet.");};40 int ObjectEnum(){_error _("Not implemented yet.");};41 Object* copy(){_error _("Not implemented yet.");};35 int Id(){_error2_("Not implemented yet.");}; 36 int MyRank(){_error2_("Not implemented yet.");}; 37 void Marshall(char** pmarshalled_dataset){_error2_("Not implemented yet.");}; 38 int MarshallSize(){_error2_("Not implemented yet.");}; 39 void Demarshall(char** pmarshalled_dataset){_error2_("Not implemented yet.");}; 40 int ObjectEnum(){_error2_("Not implemented yet.");}; 41 Object* copy(){_error2_("Not implemented yet.");}; 42 42 /*}}}*/ 43 43 -
issm/trunk-jpl/src/c/classes/objects/KML/KML_Document.cpp
r13036 r13055 106 106 } 107 107 else if (!strncmp(kstri,"</",2)) 108 {_error _("KML_Document::Read -- Unexpected closing tag " << kstri << ".\n");}108 {_error2_("KML_Document::Read -- Unexpected closing tag " << kstri << ".\n");} 109 109 else if (strncmp(kstri,"<",1)) 110 {_error _("KML_Document::Read -- Unexpected field \"" << kstri << "\".\n");}110 {_error2_("KML_Document::Read -- Unexpected field \"" << kstri << "\".\n");} 111 111 112 112 else if (!strncmp(kstri,"<",1)) -
issm/trunk-jpl/src/c/classes/objects/KML/KML_Feature.cpp
r13036 r13055 149 149 return; 150 150 else if (!strncmp(kstr,"</",2)) 151 {_error _("KML_Feature::Read -- Unexpected closing tag " << kstr);}151 {_error2_("KML_Feature::Read -- Unexpected closing tag " << kstr);} 152 152 else if (strncmp(kstr,"<",1)) 153 {_error _("KML_Feature::Read -- Unexpected field \"" << kstr << "\"");}153 {_error2_("KML_Feature::Read -- Unexpected field \"" << kstr << "\"");} 154 154 155 155 else if (!strncmp(kstr,"<Style", 6)) { -
issm/trunk-jpl/src/c/classes/objects/KML/KML_Feature.h
r13036 r13055 44 44 void Write(FILE* fid,const char* indent); 45 45 void Read(FILE* fid,char* kstr); 46 int Id(){_error _("Not implemented yet.");};47 int MyRank(){_error _("Not implemented yet.");};48 void Marshall(char** pmarshalled_dataset){_error _("Not implemented yet.");};49 int MarshallSize(){_error _("Not implemented yet.");};50 void Demarshall(char** pmarshalled_dataset){_error _("Not implemented yet.");};51 int ObjectEnum(){_error _("Not implemented yet.");};52 Object* copy(){_error _("Not implemented yet.");};46 int Id(){_error2_("Not implemented yet.");}; 47 int MyRank(){_error2_("Not implemented yet.");}; 48 void Marshall(char** pmarshalled_dataset){_error2_("Not implemented yet.");}; 49 int MarshallSize(){_error2_("Not implemented yet.");}; 50 void Demarshall(char** pmarshalled_dataset){_error2_("Not implemented yet.");}; 51 int ObjectEnum(){_error2_("Not implemented yet.");}; 52 Object* copy(){_error2_("Not implemented yet.");}; 53 53 /*}}}*/ 54 54 -
issm/trunk-jpl/src/c/classes/objects/KML/KML_File.cpp
r13036 r13055 107 107 } 108 108 else if (!strncmp(kstri,"</",2)) 109 {_error _("KML_File::Read -- Unexpected closing tag " << kstri << ".");}109 {_error2_("KML_File::Read -- Unexpected closing tag " << kstri << ".");} 110 110 else if (strncmp(kstri,"<",1)) 111 {_error _("KML_File::Read -- Unexpected field \"" << kstri << "\"");}111 {_error2_("KML_File::Read -- Unexpected field \"" << kstri << "\"");} 112 112 113 113 else if (!strncmp(kstri,"<",1)) -
issm/trunk-jpl/src/c/classes/objects/KML/KML_Folder.cpp
r13036 r13055 106 106 } 107 107 else if (!strncmp(kstri,"</",2)) 108 {_error _("KML_Folder::Read -- Unexpected closing tag " << kstri << ".\n");}108 {_error2_("KML_Folder::Read -- Unexpected closing tag " << kstri << ".\n");} 109 109 else if (strncmp(kstri,"<",1)) 110 {_error _("KML_Folder::Read -- Unexpected field \"" << kstri << "\".\n");}110 {_error2_("KML_Folder::Read -- Unexpected field \"" << kstri << "\".\n");} 111 111 112 112 else if (!strncmp(kstri,"<",1)) -
issm/trunk-jpl/src/c/classes/objects/KML/KML_Geometry.cpp
r13036 r13055 79 79 return; 80 80 else if (!strncmp(kstr,"</",2)) 81 {_error _("KML_Geometry::Read -- Unexpected closing tag " << kstr << ".\n");}81 {_error2_("KML_Geometry::Read -- Unexpected closing tag " << kstr << ".\n");} 82 82 else if (strncmp(kstr,"<",1)) 83 {_error _("KML_Geometry::Read -- Unexpected field \"" << kstr << "\".\n");}83 {_error2_("KML_Geometry::Read -- Unexpected field \"" << kstr << "\".\n");} 84 84 85 85 else if (!strncmp(kstr,"<",1)) -
issm/trunk-jpl/src/c/classes/objects/KML/KML_Geometry.h
r13036 r13055 29 29 void Write(FILE* fid,const char* indent); 30 30 void Read(FILE* fid,char* kstr); 31 int Id(){_error _("Not implemented yet.");};32 int MyRank(){_error _("Not implemented yet.");};33 void Marshall(char** pmarshalled_dataset){_error _("Not implemented yet.");};34 int MarshallSize(){_error _("Not implemented yet.");};35 void Demarshall(char** pmarshalled_dataset){_error _("Not implemented yet.");};36 int ObjectEnum(){_error _("Not implemented yet.");};37 Object* copy(){_error _("Not implemented yet.");};31 int Id(){_error2_("Not implemented yet.");}; 32 int MyRank(){_error2_("Not implemented yet.");}; 33 void Marshall(char** pmarshalled_dataset){_error2_("Not implemented yet.");}; 34 int MarshallSize(){_error2_("Not implemented yet.");}; 35 void Demarshall(char** pmarshalled_dataset){_error2_("Not implemented yet.");}; 36 int ObjectEnum(){_error2_("Not implemented yet.");}; 37 Object* copy(){_error2_("Not implemented yet.");}; 38 38 /*}}}*/ 39 39 -
issm/trunk-jpl/src/c/classes/objects/KML/KML_GroundOverlay.cpp
r13036 r13055 131 131 } 132 132 else if (!strncmp(kstri,"</",2)) 133 {_error _("KML_GroundOverlay::Read -- Unexpected closing tag " << kstri << ".\n");}133 {_error2_("KML_GroundOverlay::Read -- Unexpected closing tag " << kstri << ".\n");} 134 134 else if (strncmp(kstri,"<",1)) 135 {_error _("KML_GroundOverlay::Read -- Unexpected field \"" << kstri << "\".\n");}135 {_error2_("KML_GroundOverlay::Read -- Unexpected field \"" << kstri << "\".\n");} 136 136 137 137 else if (!strcmp(kstri,"<altitude>")) -
issm/trunk-jpl/src/c/classes/objects/KML/KML_Icon.cpp
r13036 r13055 145 145 } 146 146 else if (!strncmp(kstri,"</",2)) 147 {_error _("KML_Icon::Read -- Unexpected closing tag " << kstri << ".\n");}147 {_error2_("KML_Icon::Read -- Unexpected closing tag " << kstri << ".\n");} 148 148 else if (strncmp(kstri,"<",1)) 149 {_error _("KML_Icon::Read -- Unexpected field \"" << kstri << "\".\n");}149 {_error2_("KML_Icon::Read -- Unexpected field \"" << kstri << "\".\n");} 150 150 151 151 else if (!strcmp(kstri,"<href>")) -
issm/trunk-jpl/src/c/classes/objects/KML/KML_Icon.h
r13036 r13055 44 44 void Write(FILE* fid,const char* indent); 45 45 void Read(FILE* fid,char* kstr); 46 int Id(){_error _("Not implemented yet.");};47 int MyRank(){_error _("Not implemented yet.");};48 void Marshall(char** pmarshalled_dataset){_error _("Not implemented yet.");};49 int MarshallSize(){_error _("Not implemented yet.");};50 void Demarshall(char** pmarshalled_dataset){_error _("Not implemented yet.");};51 int ObjectEnum(){_error _("Not implemented yet.");};52 Object* copy(){_error _("Not implemented yet.");};46 int Id(){_error2_("Not implemented yet.");}; 47 int MyRank(){_error2_("Not implemented yet.");}; 48 void Marshall(char** pmarshalled_dataset){_error2_("Not implemented yet.");}; 49 int MarshallSize(){_error2_("Not implemented yet.");}; 50 void Demarshall(char** pmarshalled_dataset){_error2_("Not implemented yet.");}; 51 int ObjectEnum(){_error2_("Not implemented yet.");}; 52 Object* copy(){_error2_("Not implemented yet.");}; 53 53 /*}}}*/ 54 54 -
issm/trunk-jpl/src/c/classes/objects/KML/KML_LatLonBox.cpp
r13036 r13055 121 121 } 122 122 else if (!strncmp(kstri,"</",2)) 123 {_error _("KML_LatLonBox::Read -- Unexpected closing tag " << kstri << ".\n");}123 {_error2_("KML_LatLonBox::Read -- Unexpected closing tag " << kstri << ".\n");} 124 124 else if (strncmp(kstri,"<",1)) 125 {_error _("KML_LatLonBox::Read -- Unexpected field \"" << kstri << "\".\n");}125 {_error2_("KML_LatLonBox::Read -- Unexpected field \"" << kstri << "\".\n");} 126 126 127 127 else if (!strcmp(kstri,"<north>")) -
issm/trunk-jpl/src/c/classes/objects/KML/KML_LatLonBox.h
r13036 r13055 35 35 void Write(FILE* fid,const char* indent); 36 36 void Read(FILE* fid,char* kstr); 37 int Id(){_error _("Not implemented yet.");};38 int MyRank(){_error _("Not implemented yet.");};39 void Marshall(char** pmarshalled_dataset){_error _("Not implemented yet.");};40 int MarshallSize(){_error _("Not implemented yet.");};41 void Demarshall(char** pmarshalled_dataset){_error _("Not implemented yet.");};42 int ObjectEnum(){_error _("Not implemented yet.");};43 Object* copy(){_error _("Not implemented yet.");};37 int Id(){_error2_("Not implemented yet.");}; 38 int MyRank(){_error2_("Not implemented yet.");}; 39 void Marshall(char** pmarshalled_dataset){_error2_("Not implemented yet.");}; 40 int MarshallSize(){_error2_("Not implemented yet.");}; 41 void Demarshall(char** pmarshalled_dataset){_error2_("Not implemented yet.");}; 42 int ObjectEnum(){_error2_("Not implemented yet.");}; 43 Object* copy(){_error2_("Not implemented yet.");}; 44 44 /*}}}*/ 45 45 -
issm/trunk-jpl/src/c/classes/objects/KML/KML_LineString.h
r13036 r13055 38 38 void Read(FILE* fid,char* kstr); 39 39 void WriteExp(FILE* fid,const char* nstr,int sgn,double cm,double sp); 40 int Id(){_error _("Not implemented yet.");};41 int MyRank(){_error _("Not implemented yet.");};42 void Marshall(char** pmarshalled_dataset){_error _("Not implemented yet.");};43 int MarshallSize(){_error _("Not implemented yet.");};44 void Demarshall(char** pmarshalled_dataset){_error _("Not implemented yet.");};45 int ObjectEnum(){_error _("Not implemented yet.");};46 Object* copy(){_error _("Not implemented yet.");};40 int Id(){_error2_("Not implemented yet.");}; 41 int MyRank(){_error2_("Not implemented yet.");}; 42 void Marshall(char** pmarshalled_dataset){_error2_("Not implemented yet.");}; 43 int MarshallSize(){_error2_("Not implemented yet.");}; 44 void Demarshall(char** pmarshalled_dataset){_error2_("Not implemented yet.");}; 45 int ObjectEnum(){_error2_("Not implemented yet.");}; 46 Object* copy(){_error2_("Not implemented yet.");}; 47 47 /*}}}*/ 48 48 -
issm/trunk-jpl/src/c/classes/objects/KML/KML_LineStyle.cpp
r13036 r13055 113 113 } 114 114 else if (!strncmp(kstri,"</",2)) 115 {_error _("KML_LineStyle::Read -- Unexpected closing tag " << kstri << ".\n");}115 {_error2_("KML_LineStyle::Read -- Unexpected closing tag " << kstri << ".\n");} 116 116 else if (strncmp(kstri,"<",1)) 117 {_error _("KML_LineStyle::Read -- Unexpected field \"" << kstri << "\".\n");}117 {_error2_("KML_LineStyle::Read -- Unexpected field \"" << kstri << "\".\n");} 118 118 119 119 else if (!strcmp(kstri,"<width>")) -
issm/trunk-jpl/src/c/classes/objects/KML/KML_LinearRing.cpp
r13036 r13055 139 139 } 140 140 else if (!strncmp(kstri,"</",2)) 141 {_error _("KML_LinearRing::Read -- Unexpected closing tag " << kstri << ".\n");}141 {_error2_("KML_LinearRing::Read -- Unexpected closing tag " << kstri << ".\n");} 142 142 else if (strncmp(kstri,"<",1)) 143 {_error _("KML_LinearRing::Read -- Unexpected field \"" << kstri << "\".\n");}143 {_error2_("KML_LinearRing::Read -- Unexpected field \"" << kstri << "\".\n");} 144 144 145 145 else if (!strcmp(kstri,"<extrude>")) -
issm/trunk-jpl/src/c/classes/objects/KML/KML_LinearRing.h
r13036 r13055 38 38 void Read(FILE* fid,char* kstr); 39 39 void WriteExp(FILE* fid,const char* nstr,int sgn,double cm,double sp); 40 int Id(){_error _("Not implemented yet.");};41 int MyRank(){_error _("Not implemented yet.");};42 void Marshall(char** pmarshalled_dataset){_error _("Not implemented yet.");};43 int MarshallSize(){_error _("Not implemented yet.");};44 void Demarshall(char** pmarshalled_dataset){_error _("Not implemented yet.");};45 int ObjectEnum(){_error _("Not implemented yet.");};46 Object* copy(){_error _("Not implemented yet.");};40 int Id(){_error2_("Not implemented yet.");}; 41 int MyRank(){_error2_("Not implemented yet.");}; 42 void Marshall(char** pmarshalled_dataset){_error2_("Not implemented yet.");}; 43 int MarshallSize(){_error2_("Not implemented yet.");}; 44 void Demarshall(char** pmarshalled_dataset){_error2_("Not implemented yet.");}; 45 int ObjectEnum(){_error2_("Not implemented yet.");}; 46 Object* copy(){_error2_("Not implemented yet.");}; 47 47 /*}}}*/ 48 48 -
issm/trunk-jpl/src/c/classes/objects/KML/KML_MultiGeometry.cpp
r13036 r13055 140 140 } 141 141 else if (!strncmp(kstri,"</",2)) 142 {_error _("KML_MultiGeometry::Read -- Unexpected closing tag " << kstri << ".\n");}142 {_error2_("KML_MultiGeometry::Read -- Unexpected closing tag " << kstri << ".\n");} 143 143 else if (strncmp(kstri,"<",1)) 144 {_error _("KML_MultiGeometry::Read -- Unexpected field \"" << kstri << "\".\n");}144 {_error2_("KML_MultiGeometry::Read -- Unexpected field \"" << kstri << "\".\n");} 145 145 146 146 else if (!strncmp(kstri,"<Point", 6)) { -
issm/trunk-jpl/src/c/classes/objects/KML/KML_Object.h
r13036 r13055 31 31 virtual void DeepEcho(); 32 32 virtual void DeepEcho(const char* indent); 33 int Id(){_error _("Not implemented yet.");};34 int MyRank(){_error _("Not implemented yet.");};35 void Marshall(char** pmarshalled_dataset){_error _("Not implemented yet.");};36 int MarshallSize(){_error _("Not implemented yet.");};37 void Demarshall(char** pmarshalled_dataset){_error _("Not implemented yet.");};38 int ObjectEnum(){_error _("Not implemented yet.");};39 Object* copy(){_error _("Not implemented yet.");};33 int Id(){_error2_("Not implemented yet.");}; 34 int MyRank(){_error2_("Not implemented yet.");}; 35 void Marshall(char** pmarshalled_dataset){_error2_("Not implemented yet.");}; 36 int MarshallSize(){_error2_("Not implemented yet.");}; 37 void Demarshall(char** pmarshalled_dataset){_error2_("Not implemented yet.");}; 38 int ObjectEnum(){_error2_("Not implemented yet.");}; 39 Object* copy(){_error2_("Not implemented yet.");}; 40 40 /*}}}*/ 41 41 -
issm/trunk-jpl/src/c/classes/objects/KML/KML_Overlay.h
r13036 r13055 36 36 void Write(FILE* fid,const char* indent); 37 37 void Read(FILE* fid,char* kstr); 38 int Id(){_error _("Not implemented yet.");};39 int MyRank(){_error _("Not implemented yet.");};40 void Marshall(char** pmarshalled_dataset){_error _("Not implemented yet.");};41 int MarshallSize(){_error _("Not implemented yet.");};42 void Demarshall(char** pmarshalled_dataset){_error _("Not implemented yet.");};43 int ObjectEnum(){_error _("Not implemented yet.");};44 Object* copy(){_error _("Not implemented yet.");};38 int Id(){_error2_("Not implemented yet.");}; 39 int MyRank(){_error2_("Not implemented yet.");}; 40 void Marshall(char** pmarshalled_dataset){_error2_("Not implemented yet.");}; 41 int MarshallSize(){_error2_("Not implemented yet.");}; 42 void Demarshall(char** pmarshalled_dataset){_error2_("Not implemented yet.");}; 43 int ObjectEnum(){_error2_("Not implemented yet.");}; 44 Object* copy(){_error2_("Not implemented yet.");}; 45 45 /*}}}*/ 46 46 -
issm/trunk-jpl/src/c/classes/objects/KML/KML_Placemark.cpp
r13036 r13055 140 140 } 141 141 else if (!strncmp(kstri,"</",2)) 142 {_error _("KML_Placemark::Read -- Unexpected closing tag " << kstri << ".\n");}142 {_error2_("KML_Placemark::Read -- Unexpected closing tag " << kstri << ".\n");} 143 143 else if (strncmp(kstri,"<",1)) 144 {_error _("KML_Placemark::Read -- Unexpected field \"" << kstri << "\".\n");}144 {_error2_("KML_Placemark::Read -- Unexpected field \"" << kstri << "\".\n");} 145 145 146 146 else if (!strncmp(kstri,"<Point", 6)) { -
issm/trunk-jpl/src/c/classes/objects/KML/KML_Placemark.h
r13036 r13055 34 34 void Read(FILE* fid,char* kstr); 35 35 void WriteExp(FILE* fid,const char* nstr,int sgn,double cm,double sp); 36 int Id(){_error _("Not implemented yet.");};37 int MyRank(){_error _("Not implemented yet.");};38 void Marshall(char** pmarshalled_dataset){_error _("Not implemented yet.");};39 int MarshallSize(){_error _("Not implemented yet.");};40 void Demarshall(char** pmarshalled_dataset){_error _("Not implemented yet.");};41 int ObjectEnum(){_error _("Not implemented yet.");};42 Object* copy(){_error _("Not implemented yet.");};36 int Id(){_error2_("Not implemented yet.");}; 37 int MyRank(){_error2_("Not implemented yet.");}; 38 void Marshall(char** pmarshalled_dataset){_error2_("Not implemented yet.");}; 39 int MarshallSize(){_error2_("Not implemented yet.");}; 40 void Demarshall(char** pmarshalled_dataset){_error2_("Not implemented yet.");}; 41 int ObjectEnum(){_error2_("Not implemented yet.");}; 42 Object* copy(){_error2_("Not implemented yet.");}; 43 43 /*}}}*/ 44 44 -
issm/trunk-jpl/src/c/classes/objects/KML/KML_Point.cpp
r13036 r13055 126 126 } 127 127 else if (!strncmp(kstri,"</",2)) 128 {_error _("KML_Point::Read -- Unexpected closing tag " << kstri << ".\n");}128 {_error2_("KML_Point::Read -- Unexpected closing tag " << kstri << ".\n");} 129 129 else if (strncmp(kstri,"<",1)) 130 {_error _("KML_Point::Read -- Unexpected field \"" << kstri << "\".\n");}130 {_error2_("KML_Point::Read -- Unexpected field \"" << kstri << "\".\n");} 131 131 132 132 else if (!strcmp(kstri,"<extrude>")) -
issm/trunk-jpl/src/c/classes/objects/KML/KML_Point.h
r13036 r13055 36 36 void Read(FILE* fid,char* kstr); 37 37 void WriteExp(FILE* fid,const char* nstr,int sgn,double cm,double sp); 38 int Id(){_error _("Not implemented yet.");};39 int MyRank(){_error _("Not implemented yet.");};40 void Marshall(char** pmarshalled_dataset){_error _("Not implemented yet.");};41 int MarshallSize(){_error _("Not implemented yet.");};42 void Demarshall(char** pmarshalled_dataset){_error _("Not implemented yet.");};43 int ObjectEnum(){_error _("Not implemented yet.");};44 Object* copy(){_error _("Not implemented yet.");};38 int Id(){_error2_("Not implemented yet.");}; 39 int MyRank(){_error2_("Not implemented yet.");}; 40 void Marshall(char** pmarshalled_dataset){_error2_("Not implemented yet.");}; 41 int MarshallSize(){_error2_("Not implemented yet.");}; 42 void Demarshall(char** pmarshalled_dataset){_error2_("Not implemented yet.");}; 43 int ObjectEnum(){_error2_("Not implemented yet.");}; 44 Object* copy(){_error2_("Not implemented yet.");}; 45 45 /*}}}*/ 46 46 -
issm/trunk-jpl/src/c/classes/objects/KML/KML_PolyStyle.cpp
r13036 r13055 117 117 } 118 118 else if (!strncmp(kstri,"</",2)) 119 {_error _("KML_PolyStyle::Read -- Unexpected closing tag " << kstri << ".\n");}119 {_error2_("KML_PolyStyle::Read -- Unexpected closing tag " << kstri << ".\n");} 120 120 else if (strncmp(kstri,"<",1)) 121 {_error _("KML_PolyStyle::Read -- Unexpected field \"" << kstri << "\".\n");}121 {_error2_("KML_PolyStyle::Read -- Unexpected field \"" << kstri << "\".\n");} 122 122 123 123 else if (!strcmp(kstri,"<fill>")) -
issm/trunk-jpl/src/c/classes/objects/KML/KML_PolyStyle.h
r13036 r13055 32 32 void Write(FILE* fid,const char* indent); 33 33 void Read(FILE* fid,char* kstr); 34 int Id(){_error _("Not implemented yet.");};35 int MyRank(){_error _("Not implemented yet.");};36 void Marshall(char** pmarshalled_dataset){_error _("Not implemented yet.");};37 int MarshallSize(){_error _("Not implemented yet.");};38 void Demarshall(char** pmarshalled_dataset){_error _("Not implemented yet.");};39 int ObjectEnum(){_error _("Not implemented yet.");};40 Object* copy(){_error _("Not implemented yet.");};34 int Id(){_error2_("Not implemented yet.");}; 35 int MyRank(){_error2_("Not implemented yet.");}; 36 void Marshall(char** pmarshalled_dataset){_error2_("Not implemented yet.");}; 37 int MarshallSize(){_error2_("Not implemented yet.");}; 38 void Demarshall(char** pmarshalled_dataset){_error2_("Not implemented yet.");}; 39 int ObjectEnum(){_error2_("Not implemented yet.");}; 40 Object* copy(){_error2_("Not implemented yet.");}; 41 41 /*}}}*/ 42 42 -
issm/trunk-jpl/src/c/classes/objects/KML/KML_Polygon.h
r13036 r13055 40 40 void Read(FILE* fid,char* kstr); 41 41 void WriteExp(FILE* fid,const char* nstr,int sgn,double cm,double sp); 42 int Id(){_error _("Not implemented yet.");};43 int MyRank(){_error _("Not implemented yet.");};44 void Marshall(char** pmarshalled_dataset){_error _("Not implemented yet.");};45 int MarshallSize(){_error _("Not implemented yet.");};46 void Demarshall(char** pmarshalled_dataset){_error _("Not implemented yet.");};47 int ObjectEnum(){_error _("Not implemented yet.");};48 Object* copy(){_error _("Not implemented yet.");};42 int Id(){_error2_("Not implemented yet.");}; 43 int MyRank(){_error2_("Not implemented yet.");}; 44 void Marshall(char** pmarshalled_dataset){_error2_("Not implemented yet.");}; 45 int MarshallSize(){_error2_("Not implemented yet.");}; 46 void Demarshall(char** pmarshalled_dataset){_error2_("Not implemented yet.");}; 47 int ObjectEnum(){_error2_("Not implemented yet.");}; 48 Object* copy(){_error2_("Not implemented yet.");}; 49 49 /*}}}*/ 50 50 -
issm/trunk-jpl/src/c/classes/objects/KML/KML_Style.cpp
r13036 r13055 189 189 } 190 190 else if (!strncmp(kstri,"</",2)) 191 {_error _("KML_Style::Read -- Unexpected closing tag " << kstri << ".\n");}191 {_error2_("KML_Style::Read -- Unexpected closing tag " << kstri << ".\n");} 192 192 else if (strncmp(kstri,"<",1)) 193 {_error _("KML_Style::Read -- Unexpected field \"" << kstri << "\".\n");}193 {_error2_("KML_Style::Read -- Unexpected field \"" << kstri << "\".\n");} 194 194 195 195 // else if (!strncmp(kstri,"<IconStyle",10)) { -
issm/trunk-jpl/src/c/classes/objects/KML/KML_StyleSelector.cpp
r13036 r13055 83 83 return; 84 84 else if (!strncmp(kstr,"</",2)) 85 {_error _("KML_StyleSelector::Read -- Unexpected closing tag " << kstr << ".\n");}85 {_error2_("KML_StyleSelector::Read -- Unexpected closing tag " << kstr << ".\n");} 86 86 else if (strncmp(kstr,"<",1)) 87 {_error _("KML_StyleSelector::Read -- Unexpected field \"" << kstr << "\".\n");}87 {_error2_("KML_StyleSelector::Read -- Unexpected field \"" << kstr << "\".\n");} 88 88 89 89 else if (!strncmp(kstr,"<",1)) -
issm/trunk-jpl/src/c/classes/objects/KML/KML_StyleSelector.h
r13036 r13055 29 29 void Write(FILE* fid,const char* indent); 30 30 void Read(FILE* fid,char* kstr); 31 int Id(){_error _("Not implemented yet.");};32 int MyRank(){_error _("Not implemented yet.");};33 void Marshall(char** pmarshalled_dataset){_error _("Not implemented yet.");};34 int MarshallSize(){_error _("Not implemented yet.");};35 void Demarshall(char** pmarshalled_dataset){_error _("Not implemented yet.");};36 int ObjectEnum(){_error _("Not implemented yet.");};37 Object* copy(){_error _("Not implemented yet.");};31 int Id(){_error2_("Not implemented yet.");}; 32 int MyRank(){_error2_("Not implemented yet.");}; 33 void Marshall(char** pmarshalled_dataset){_error2_("Not implemented yet.");}; 34 int MarshallSize(){_error2_("Not implemented yet.");}; 35 void Demarshall(char** pmarshalled_dataset){_error2_("Not implemented yet.");}; 36 int ObjectEnum(){_error2_("Not implemented yet.");}; 37 Object* copy(){_error2_("Not implemented yet.");}; 38 38 /*}}}*/ 39 39 -
issm/trunk-jpl/src/c/classes/objects/KML/KML_SubStyle.h
r13036 r13055 29 29 void Write(FILE* fid,const char* indent); 30 30 void Read(FILE* fid,char* kstr); 31 int Id(){_error _("Not implemented yet.");};32 int MyRank(){_error _("Not implemented yet.");};33 void Marshall(char** pmarshalled_dataset){_error _("Not implemented yet.");};34 int MarshallSize(){_error _("Not implemented yet.");};35 void Demarshall(char** pmarshalled_dataset){_error _("Not implemented yet.");};36 int ObjectEnum(){_error _("Not implemented yet.");};37 Object* copy(){_error _("Not implemented yet.");};31 int Id(){_error2_("Not implemented yet.");}; 32 int MyRank(){_error2_("Not implemented yet.");}; 33 void Marshall(char** pmarshalled_dataset){_error2_("Not implemented yet.");}; 34 int MarshallSize(){_error2_("Not implemented yet.");}; 35 void Demarshall(char** pmarshalled_dataset){_error2_("Not implemented yet.");}; 36 int ObjectEnum(){_error2_("Not implemented yet.");}; 37 Object* copy(){_error2_("Not implemented yet.");}; 38 38 /*}}}*/ 39 39 -
issm/trunk-jpl/src/c/classes/objects/KML/KML_Unknown.cpp
r13036 r13055 160 160 } 161 161 else if (!strncmp(kstri,"</",2)) 162 {_error _("KML_Unknown::Read -- Unexpected closing tag " << kstri << ".\n");}162 {_error2_("KML_Unknown::Read -- Unexpected closing tag " << kstri << ".\n");} 163 163 164 164 else if (strncmp(kstri,"<",1)) { -
issm/trunk-jpl/src/c/classes/objects/Materials/Matice.cpp
r13051 r13055 194 194 /*Get input (either in element or material)*/ 195 195 Input* input=inputs->GetInput(input_enum); 196 if(!input) _error _("Input " << EnumToStringx(input_enum) << " not found in material");196 if(!input) _error2_("Input " << EnumToStringx(input_enum) << " not found in material"); 197 197 198 198 /*We found the enum. Use its values to fill into the vector, using the vertices ids: */ … … 200 200 break; 201 201 202 default: _error _("element " << EnumToStringx(element->ObjectEnum()) << " not implemented yet");202 default: _error2_("element " << EnumToStringx(element->ObjectEnum()) << " not implemented yet"); 203 203 } 204 204 } … … 260 260 261 261 /*Checks in debugging mode*/ 262 if(viscosity<=0) _error _("Negative viscosity");262 if(viscosity<=0) _error2_("Negative viscosity"); 263 263 _assert_(B>0); 264 264 _assert_(n>0); … … 331 331 332 332 /*Checks in debugging mode*/ 333 if(viscosity3d<=0) _error _("Negative viscosity");333 if(viscosity3d<=0) _error2_("Negative viscosity"); 334 334 _assert_(B>0); 335 335 _assert_(n>0); … … 403 403 404 404 /*Checks in debugging mode*/ 405 if(viscosity3d<=0) _error _("Negative viscosity");405 if(viscosity3d<=0) _error2_("Negative viscosity"); 406 406 _assert_(B>0); 407 407 _assert_(n>0); … … 564 564 return; 565 565 } 566 default: _error _("element " << EnumToStringx(element->ObjectEnum()) << " not implemented yet");567 } 568 default: _error _("type " << type << " (" << EnumToStringx(type) << ") not implemented yet");566 default: _error2_("element " << EnumToStringx(element->ObjectEnum()) << " not implemented yet"); 567 } 568 default: _error2_("type " << type << " (" << EnumToStringx(type) << ") not implemented yet"); 569 569 } 570 570 } … … 622 622 return; 623 623 } 624 default: _error _("element " << EnumToStringx(element->ObjectEnum()) << " not implemented yet");625 } 626 default: _error _("type " << type << " (" << EnumToStringx(type) << ") not implemented yet");624 default: _error2_("element " << EnumToStringx(element->ObjectEnum()) << " not implemented yet"); 625 } 626 default: _error2_("type " << type << " (" << EnumToStringx(type) << ") not implemented yet"); 627 627 } 628 628 … … 764 764 #endif 765 765 else{ 766 _error _("Mesh type not supported yet!");766 _error2_("Mesh type not supported yet!"); 767 767 } 768 768 -
issm/trunk-jpl/src/c/classes/objects/Materials/Matpar.h
r13036 r13055 62 62 void InputUpdateFromConstant(bool constant, int name); 63 63 void InputUpdateFromSolution(IssmDouble* solution); 64 void InputUpdateFromIoModel(int index, IoModel* iomodel){_error _("not implemented yet");};64 void InputUpdateFromIoModel(int index, IoModel* iomodel){_error2_("not implemented yet");}; 65 65 /*}}}*/ 66 66 /*Material virtual functions resolution: {{{*/ 67 void InputDuplicate(int original_enum,int new_enum){_error _("not implemented yet");};67 void InputDuplicate(int original_enum,int new_enum){_error2_("not implemented yet");}; 68 68 void Configure(Elements* elements); 69 69 void GetVectorFromInputs(Vector* vector,int input_enum){return;} -
issm/trunk-jpl/src/c/include/macros.h
r13036 r13055 23 23 #define _printf_(flag,...) do{if(flag) PrintfFunction(__VA_ARGS__);}while(0) 24 24 /*}}}*/ 25 /* _error_ {{{*/ 26 /*Error exception macro*/ 27 #ifdef _INTEL_WIN_ 28 #define _error_(...)\ 29 throw ErrorException(exprintf(__VA_ARGS__)) 30 #else 31 #define _error_(...)\ 32 throw ErrorException(__FILE__,__func__,__LINE__,exprintf(__VA_ARGS__)) 33 #endif 34 /*}}}*/ 25 35 /* _error2_ {{{*/ 26 36 /*new Error exception macro*/ 27 37 #ifdef _INTEL_WIN_ 28 #define _error _(StreamArgs)\38 #define _error2_(StreamArgs)\ 29 39 do{std::ostringstream aLoNgAnDwEiRdLoCaLnAmeFoRtHiSmAcRoOnLy; \ 30 40 aLoNgAnDwEiRdLoCaLnAmeFoRtHiSmAcRoOnLy << StreamArgs << std::ends; \ 31 41 throw ErrorException(aLoNgAnDwEiRdLoCaLnAmeFoRtHiSmAcRoOnLy.str());}while(0) 32 42 #else 33 #define _error _(StreamArgs)\43 #define _error2_(StreamArgs)\ 34 44 do{std::ostringstream aLoNgAnDwEiRdLoCaLnAmeFoRtHiSmAcRoOnLy; \ 35 45 aLoNgAnDwEiRdLoCaLnAmeFoRtHiSmAcRoOnLy << StreamArgs << std::ends; \ … … 65 75 #ifdef _ISSM_DEBUG_ 66 76 #define _assert_(statement)\ 67 if (!(statement)) _error_("Assertion \" "<<#statement<<"\" failed, please report bug to "<<PACKAGE_BUGREPORT)77 if (!(statement)) _error_("Assertion \"%s\" failed, please report bug to %s",#statement,PACKAGE_BUGREPORT) 68 78 #else 69 79 #define _assert_(ignore)\ -
issm/trunk-jpl/src/c/io/Disk/pfclose.cpp
r13036 r13055 18 18 extern int my_rank; 19 19 _assert_(fid); 20 if(fclose(fid)!=0)_error _("could not close file " << filename);20 if(fclose(fid)!=0)_error2_("could not close file " << filename); 21 21 } -
issm/trunk-jpl/src/c/io/Disk/pfopen.cpp
r13036 r13055 20 20 /*Open handle to data on disk: */ 21 21 fid=fopen(filename,format); 22 if(fid==NULL) _error _("could not open file " << filename << " for binary reading or writing");22 if(fid==NULL) _error2_("could not open file " << filename << " for binary reading or writing"); 23 23 24 24 return fid; -
issm/trunk-jpl/src/c/matlab/io/CheckNumMatlabArguments.cpp
r13036 r13055 22 22 /* special case: */ 23 23 function(); 24 _error _("usage: see above");24 _error2_("usage: see above"); 25 25 } 26 26 else if (nlhs!=NLHS || nrhs!=NRHS ) { 27 27 function(); 28 _error _("usage error.");28 _error2_("usage error."); 29 29 } 30 30 return 1; -
issm/trunk-jpl/src/c/matlab/io/FetchMatlabData.cpp
r13036 r13055 48 48 else{ 49 49 /*This is an error: we don't have the correct input!: */ 50 _error _("Input parameter of class " << mxGetClassName(dataref) << " not supported yet");50 _error2_("Input parameter of class " << mxGetClassName(dataref) << " not supported yet"); 51 51 } 52 52 … … 89 89 else{ 90 90 /*This is an error: we don't have the correct input!: */ 91 _error _("Input parameter of class " << mxGetClassName(dataref) << " not supported yet");91 _error2_("Input parameter of class " << mxGetClassName(dataref) << " not supported yet"); 92 92 } 93 93 … … 134 134 else{ 135 135 /*This is an error: we don't have the correct input!: */ 136 _error _("Input parameter of class " << mxGetClassName(dataref) << " not supported yet");136 _error2_("Input parameter of class " << mxGetClassName(dataref) << " not supported yet"); 137 137 } 138 138 … … 176 176 else{ 177 177 /*This is an error: we don't have the correct input!: */ 178 _error _("Input parameter of class " << mxGetClassName(dataref) << " not supported yet");178 _error2_("Input parameter of class " << mxGetClassName(dataref) << " not supported yet"); 179 179 } 180 180 … … 238 238 else{ 239 239 /*This is an error: we don't have the correct input!: */ 240 _error _("Input parameter of class " << mxGetClassName(dataref) << " not supported yet");240 _error2_("Input parameter of class " << mxGetClassName(dataref) << " not supported yet"); 241 241 } 242 242 … … 269 269 else{ 270 270 /*This is an error: we don't have the correct input!: */ 271 _error _("Input parameter of class " << mxGetClassName(dataref) << " not supported yet");271 _error2_("Input parameter of class " << mxGetClassName(dataref) << " not supported yet"); 272 272 } 273 273 … … 301 301 else{ 302 302 /*This is an error: we don't have the correct input!: */ 303 _error _("Input parameter of class " << mxGetClassName(dataref) << " not supported yet");303 _error2_("Input parameter of class " << mxGetClassName(dataref) << " not supported yet"); 304 304 } 305 305 … … 333 333 else{ 334 334 /*This is an error: we don't have the correct input!: */ 335 _error _("Input parameter of class " << mxGetClassName(dataref) << " not supported yet");335 _error2_("Input parameter of class " << mxGetClassName(dataref) << " not supported yet"); 336 336 } 337 337 … … 365 365 else{ 366 366 /*This is an error: we don't have the correct input!: */ 367 _error _("Input parameter of class " << mxGetClassName(dataref) << " not supported yet");367 _error2_("Input parameter of class " << mxGetClassName(dataref) << " not supported yet"); 368 368 } 369 369 … … 381 381 /*Ok, the string should be coming directly from the matlab workspace: */ 382 382 if (!mxIsClass(dataref,"char")){ 383 _error _("input data_type is not a string!");383 _error2_("input data_type is not a string!"); 384 384 } 385 385 else{ … … 416 416 else{ 417 417 /*This is an error: we don't have the correct input!: */ 418 _error _("Input parameter of class " << mxGetClassName(dataref) << " not supported yet");418 _error2_("Input parameter of class " << mxGetClassName(dataref) << " not supported yet"); 419 419 } 420 420 … … 434 434 435 435 if (!mxIsClass(dataref,"double")){ 436 _error _("input data_type is not a double!");436 _error2_("input data_type is not a double!"); 437 437 } 438 438 else{ … … 451 451 452 452 if (!mxIsClass(dataref,"double")){ 453 _error _("input data_type is not a scalar!");453 _error2_("input data_type is not a scalar!"); 454 454 } 455 455 else{ … … 468 468 469 469 if (mxIsClass(dataref,"logical")){ 470 if(mxGetM(dataref)!=1) _error _("input data is not of size 1x1");471 if(mxGetN(dataref)!=1) _error _("input data is not of size 1x1");470 if(mxGetM(dataref)!=1) _error2_("input data is not of size 1x1"); 471 if(mxGetN(dataref)!=1) _error2_("input data is not of size 1x1"); 472 472 mxbool_ptr=mxGetLogicals(dataref); 473 473 } 474 474 else{ 475 _error _("input data_type is not a bool!");475 _error2_("input data_type is not a bool!"); 476 476 } 477 477 … … 495 495 else{ 496 496 /*This is an error: we don't have the correct input!: */ 497 _error _("Input parameter of class " << mxGetClassName(dataref) << " not supported yet");497 _error2_("Input parameter of class " << mxGetClassName(dataref) << " not supported yet"); 498 498 } 499 499 … … 519 519 else{ 520 520 /*This is an error: we don't have the correct input!: */ 521 _error _("Input parameter of class " << mxGetClassName(dataref) << " not supported yet");521 _error2_("Input parameter of class " << mxGetClassName(dataref) << " not supported yet"); 522 522 } 523 523 … … 620 620 /*Fetch all options*/ 621 621 for (int i=istart; i<nrhs; i=i+2){ 622 if (!mxIsClass(pdataref[i],"char")) _error _("Argument " << i+1 << " must be name of option");622 if (!mxIsClass(pdataref[i],"char")) _error2_("Argument " << i+1 << " must be name of option"); 623 623 624 624 FetchData(&name,pdataref[i]); 625 if(i+1 == nrhs) _error _("Argument " << i+2 << " must exist and be value of option \"" << name << "\".");625 if(i+1 == nrhs) _error2_("Argument " << i+2 << " must exist and be value of option \"" << name << "\"."); 626 626 627 627 option=(Option*)OptionParse(name,&pdataref[i+1]); -
issm/trunk-jpl/src/c/matlab/io/MatlabMatrixToDoubleMatrix.cpp
r13036 r13055 119 119 } 120 120 else{ 121 _error _("Matlab matrix type Not implemented yet");121 _error2_("Matlab matrix type Not implemented yet"); 122 122 } 123 123 -
issm/trunk-jpl/src/c/matlab/io/MatlabVectorToDoubleVector.cpp
r13036 r13055 46 46 47 47 /*Check that input is actualy a vector*/ 48 if (cols!=1) _error _("input vector of size " << rows << "x" << cols << " should have only one column");48 if (cols!=1) _error2_("input vector of size " << rows << "x" << cols << " should have only one column"); 49 49 50 50 nz=(int)((double)nnz/(double)rows); … … 77 77 78 78 /*Check that input is actualy a vector*/ 79 if (cols!=1) _error _("input vector of size " << rows << "x" << cols << " should have only one column");79 if (cols!=1) _error2_("input vector of size " << rows << "x" << cols << " should have only one column"); 80 80 81 81 /*allocate and memcpy*/ -
issm/trunk-jpl/src/c/matlab/io/OptionParse.cpp
r13036 r13055 27 27 /*check and parse the value */ 28 28 if (!mxIsClass(prhs[0],"double")){ 29 _error _("Value of option \"" << odouble->name << "\" must be class \"double\", not class \"" << mxGetClassName(prhs[0]) <<"\".");29 _error2_("Value of option \"" << odouble->name << "\" must be class \"double\", not class \"" << mxGetClassName(prhs[0]) <<"\"."); 30 30 } 31 31 FetchData(&odouble->values,&odouble->numel,&odouble->ndims,&odouble->size,prhs[0]); … … 45 45 /*check and parse the value */ 46 46 if (!mxIsClass(prhs[0],"logical")){ 47 _error _("Value of option \"" << ological->name << "\" must be class \"logical\", not class \"" << mxGetClassName(prhs[0]) <<"\".");47 _error2_("Value of option \"" << ological->name << "\" must be class \"logical\", not class \"" << mxGetClassName(prhs[0]) <<"\"."); 48 48 } 49 49 FetchData(&ological->values,&ological->numel,&ological->ndims,&ological->size,prhs[0]); … … 63 63 /*check and parse the value */ 64 64 if (!mxIsClass(prhs[0],"char")){ 65 _error _("Value of option \"" << ochar->name << "\" must be class \"char\", not class \"" << mxGetClassName(prhs[0]) <<"\".");65 _error2_("Value of option \"" << ochar->name << "\" must be class \"char\", not class \"" << mxGetClassName(prhs[0]) <<"\"."); 66 66 } 67 67 FetchData(&ochar->values,&ochar->numel,&ochar->ndims,&ochar->size,prhs[0]); … … 87 87 /*check and parse the value */ 88 88 if (!mxIsClass(prhs[0],"struct")){ 89 _error _("Value of option \"" << ostruct->name << "\" must be class \"struct\", not class \"" << mxGetClassName(prhs[0]) <<"\".");89 _error2_("Value of option \"" << ostruct->name << "\" must be class \"struct\", not class \"" << mxGetClassName(prhs[0]) <<"\"."); 90 90 } 91 91 ostruct->numel=mxGetNumberOfElements(prhs[0]); … … 133 133 /*check and parse the value */ 134 134 if (!mxIsClass(prhs[0],"cell")){ 135 _error _("Value of option \"" << ocell->name << "\" must be class \"cell\", not class \"" << mxGetClassName(prhs[0]) <<"\".");135 _error2_("Value of option \"" << ocell->name << "\" must be class \"cell\", not class \"" << mxGetClassName(prhs[0]) <<"\"."); 136 136 } 137 137 … … 181 181 mxDestroyArray(lhs[0]); 182 182 } 183 else _error _("Second argument value of option \""<< name <<"\" is of unrecognized class \""<< mxGetClassName(prhs[0]) <<"\".");183 else _error2_("Second argument value of option \""<< name <<"\" is of unrecognized class \""<< mxGetClassName(prhs[0]) <<"\"."); 184 184 } 185 185 -
issm/trunk-jpl/src/c/modules/DakotaResponsesx/DakotaResponsesx.cpp
r13036 r13055 86 86 } 87 87 else if (flag==NodalEnum){ 88 _error _("nodal response functions not supported yet!");88 _error2_("nodal response functions not supported yet!"); 89 89 90 90 /*increment response_pointer :*/ … … 104 104 } 105 105 } 106 else _error _("flag type " << flag << " not supported yet for response analysis");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
r13036 r13055 23 23 /*retrieve first token, separated by underscore: */ 24 24 pch = strtok (descriptor,"_"); 25 if(!pch)_error _("descriptor " << descriptor << " is not correctly formatted!");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)_error _("scaled descriptor " << descriptor << " is not correctly formatted!");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)_error _("indexed descriptor " << descriptor << " is not correctly formatted!");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)_error _("indexed descriptor " << descriptor << " is not correctly formatted!");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)_error _("nodal descriptor " << descriptor << " is not correctly formatted!");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)_error _("nodal descriptor " << descriptor << " is not correctly formatted!");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/Dakotax/SpawnCoreParallel.cpp
r13036 r13055 72 72 if(control_analysis)solutioncore=&control_core; 73 73 #else 74 _error _("ISSM was not compiled with control capabilities, exiting!");74 _error2_("ISSM was not compiled with control capabilities, exiting!"); 75 75 #endif 76 76 -
issm/trunk-jpl/src/c/modules/ElementResponsex/ElementResponsex.cpp
r13036 r13055 39 39 #ifdef _HAVE_MPI_ 40 40 MPI_Allreduce ( &found,&sumfound,1,MPI_INT,MPI_SUM,MPI_COMM_WORLD); 41 if(!sumfound)_error _("could not find material with id" << index << " to compute ElementResponse");41 if(!sumfound)_error2_("could not find material with id" << index << " to compute ElementResponse"); 42 42 #endif 43 43 -
issm/trunk-jpl/src/c/modules/Exp2Kmlx/Exp2Kmlx.cpp
r13036 r13055 55 55 56 56 if (!DomainOutlineRead(&nprof,&pnvert,&pprofx,&pprofy,&closed,filexp)) 57 _error _("Error reading exp file.");57 _error2_("Error reading exp file."); 58 58 _pprintLine_("Exp2Kmlx -- Reading " << nprof << " exp profiles from file \"" << filexp << "\"."); 59 59 // for (i=0; i<nprof; i++) -
issm/trunk-jpl/src/c/modules/GetSolutionFromInputsx/GetSolutionFromInputsx.cpp
r13036 r13055 26 26 /*Get size of vector: */ 27 27 gsize=nodes->NumberOfDofs(configuration_type,GsetEnum); 28 if (gsize==0) _error _("Allocating a Vec of size 0 as gsize=0 for configuration: " << EnumToStringx(configuration_type));28 if (gsize==0) _error2_("Allocating a Vec of size 0 as gsize=0 for configuration: " << EnumToStringx(configuration_type)); 29 29 30 30 /*Initialize solution: */ -
issm/trunk-jpl/src/c/modules/GetVectorFromInputsx/GetVectorFromInputsx.cpp
r13036 r13055 32 32 } 33 33 else{ 34 _error _("vector type: " << EnumToStringx(type) << " not supported yet!");34 _error2_("vector type: " << EnumToStringx(type) << " not supported yet!"); 35 35 } 36 36 -
issm/trunk-jpl/src/c/modules/Gradjx/Gradjx.cpp
r13036 r13055 54 54 /*Check that gradient is clean*/ 55 55 norm_inf=gradient->Norm(NORM_INF); 56 if(norm_inf<=0) _error _("||∂J/∂α||∞ = 0 gradient norm is zero");57 if(xIsNan<IssmDouble>(norm_inf))_error _("||∂J/∂α||∞ = NaN gradient norm is NaN");56 if(norm_inf<=0) _error2_("||∂J/∂α||∞ = 0 gradient norm is zero"); 57 if(xIsNan<IssmDouble>(norm_inf))_error2_("||∂J/∂α||∞ = NaN gradient norm is NaN"); 58 58 59 59 /*Clean-up and assign output pointer*/ -
issm/trunk-jpl/src/c/modules/GroundinglineMigrationx/GroundinglineMigrationx.cpp
r13036 r13055 27 27 28 28 if(migration_style==NoneEnum) return; 29 if(migration_style!=AgressiveMigrationEnum && migration_style!=SoftMigrationEnum) _error _(EnumToStringx(migration_style) << " not supported yet!");29 if(migration_style!=AgressiveMigrationEnum && migration_style!=SoftMigrationEnum) _error2_(EnumToStringx(migration_style) << " not supported yet!"); 30 30 31 31 if(migration_style==SoftMigrationEnum){ -
issm/trunk-jpl/src/c/modules/InputUpdateFromDakotax/InputUpdateFromDakotax.cpp
r13036 r13055 95 95 } 96 96 else if (strncmp(descriptor,"indexed_",8)==0){ 97 _error _("indexed variables not supported yet!");97 _error2_("indexed variables not supported yet!"); 98 98 } 99 99 else if (strncmp(descriptor,"nodal_",8)==0){ 100 _error _("nodal variables not supported yet!");100 _error2_("nodal variables not supported yet!"); 101 101 } 102 102 else{ -
issm/trunk-jpl/src/c/modules/InterpFromGridToMeshx/InterpFromGridToMeshx.cpp
r13036 r13055 37 37 /*Some checks on arguments: */ 38 38 if ((M<2) || (N<2) || (nods<=0)){ 39 _error _("nothing to be done according to the dimensions of input matrices and vectors.");39 _error2_("nothing to be done according to the dimensions of input matrices and vectors."); 40 40 } 41 41 if (x_in[1]-x_in[0]<0){ 42 _error _("x coordinate vector should be increasing.\n use Matlab's command x=flipud(x), also flip the data matrix data=fliplr(data)");42 _error2_("x coordinate vector should be increasing.\n use Matlab's command x=flipud(x), also flip the data matrix data=fliplr(data)"); 43 43 } 44 44 if (y_in[1]-y_in[0]<0){ 45 _error _("y coordinate vector should be increasing.\n use Matlab's command y=flipud(y), also flip the data matrix data=flipud(data)");45 _error2_("y coordinate vector should be increasing.\n use Matlab's command y=flipud(y), also flip the data matrix data=flipud(data)"); 46 46 } 47 47 … … 69 69 } 70 70 else{ 71 _error _("x and y vectors length should be 1 or 0 more than data number of rows.");71 _error2_("x and y vectors length should be 1 or 0 more than data number of rows."); 72 72 } 73 73 -
issm/trunk-jpl/src/c/modules/InterpFromMesh2dx/InterpFromMesh2dx.cpp
r13036 r13055 40 40 /*some checks*/ 41 41 if (nels_data<1 || nods_data<3 || nods_prime==0){ 42 _error _("nothing to be done according to the mesh given in input");42 _error2_("nothing to be done according to the mesh given in input"); 43 43 } 44 44 … … 54 54 } 55 55 else{ 56 _error _("length of vector data not supported yet. It should be of length (number of nodes) or (number of elements)!");56 _error2_("length of vector data not supported yet. It should be of length (number of nodes) or (number of elements)!"); 57 57 } 58 58 59 59 if((numcontours) && (interpolation_type==2)){ 60 _error _("element interpolation_type with contours not supported yet!");60 _error2_("element interpolation_type with contours not supported yet!"); 61 61 } 62 62 -
issm/trunk-jpl/src/c/modules/InterpFromMeshToGridx/InterpFromMeshToGridx.cpp
r13036 r13055 30 30 /*some checks*/ 31 31 if (nels<1 || nods<3 || nlines<1 || ncols<1 || xposting==0 || yposting==0){ 32 _error _("nothing to be done according to the mesh given in input");32 _error2_("nothing to be done according to the mesh given in input"); 33 33 } 34 34 … … 41 41 } 42 42 else{ 43 _error _("length of vector data not supported yet. It should be of length (number of nodes) or (number of elements)!");43 _error2_("length of vector data not supported yet. It should be of length (number of nodes) or (number of elements)!"); 44 44 } 45 45 -
issm/trunk-jpl/src/c/modules/InterpFromMeshToMesh2dx/InterpFromMeshToMesh2dx.cpp
r13036 r13055 35 35 /*Checks*/ 36 36 if (M_data!=nods_data && M_data!=nels_data){ 37 _error _("data provided should have either " << nods_data << " or " << nels_data << " lines (not " << M_data << ")");37 _error2_("data provided should have either " << nods_data << " or " << nels_data << " lines (not " << M_data << ")"); 38 38 } 39 39 … … 138 138 for (j=0;j<N_data;j++){ 139 139 if (it<0 || it>=nels_data){ 140 _error _("Triangle number " << it << " not in [0 " << nels_data << "], report bug to developers");140 _error2_("Triangle number " << it << " not in [0 " << nels_data << "], report bug to developers"); 141 141 } 142 142 data_interp[i*N_data+j]=data[N_data*it+j]; -
issm/trunk-jpl/src/c/modules/InterpFromMeshToMesh3dx/InterpFromMeshToMesh3dx.cpp
r13036 r13055 27 27 /*some checks*/ 28 28 if (nels_data<1 || nods_data<6 || nods_prime==0){ 29 _error _("nothing to be done according to the mesh given in input");29 _error2_("nothing to be done according to the mesh given in input"); 30 30 } 31 31 … … 41 41 } 42 42 else{ 43 _error _("length of vector data not supported yet. It should be of length (number of nodes) or (number of elements)!");43 _error2_("length of vector data not supported yet. It should be of length (number of nodes) or (number of elements)!"); 44 44 } 45 45 -
issm/trunk-jpl/src/c/modules/IoModelToConstraintsx/IoModelToConstraintsx.cpp
r13036 r13055 38 38 fid=iomodel->SetFilePointerToData(&code, &vector_layout,vector_enum); 39 39 40 if(code!=7)_error _("expecting a IssmDouble vector for constraints with enum " << EnumToStringx(vector_enum));41 if(vector_layout!=1)_error _("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)); 42 42 43 43 /*Fetch vector:*/ … … 99 99 } 100 100 else{ 101 _error _("Size of field " << EnumToStringx(vector_enum) << " not supported");101 _error2_("Size of field " << EnumToStringx(vector_enum) << " not supported"); 102 102 } 103 103 -
issm/trunk-jpl/src/c/modules/KMLMeshWritex/KMLMeshWritex.cpp
r13036 r13055 133 133 } 134 134 else 135 _error _("Nodal connectivity table needs more than specified " << mxepg << " columns.\n");135 _error2_("Nodal connectivity table needs more than specified " << mxepg << " columns.\n"); 136 136 } 137 137 jpt++; … … 173 173 174 174 else 175 _error _("Data matrix has incorrect number of " << mdata << " rows.\n");175 _error2_("Data matrix has incorrect number of " << mdata << " rows.\n"); 176 176 } 177 177 -
issm/trunk-jpl/src/c/modules/Kml2Expx/Kml2Expx.cpp
r13036 r13055 44 44 fidi=fopen(filkml,"r"); 45 45 if (!(kobj=KMLFileReadx(fidi))) 46 _error _("Error reading kml file.");46 _error2_("Error reading kml file."); 47 47 fclose(fidi); 48 48 -
issm/trunk-jpl/src/c/modules/Krigingx/Krigingx.cpp
r13036 r13055 138 138 } 139 139 else{ 140 _error _("output '" << output << "' not supported yet");140 _error2_("output '" << output << "' not supported yet"); 141 141 } 142 142 … … 305 305 else if(strcmp(model,"spherical")==0) variogram = new SphericalVariogram(options); 306 306 else if(strcmp(model,"power")==0) variogram = new PowerVariogram(options); 307 else _error _("variogram " << model << " not supported yet (list of supported variogram: gaussian, exponential, spherical and power)");307 else _error2_("variogram " << model << " not supported yet (list of supported variogram: gaussian, exponential, spherical and power)"); 308 308 } 309 309 else variogram = new GaussianVariogram(options); -
issm/trunk-jpl/src/c/modules/Krigingx/pKrigingx.cpp
r13036 r13055 103 103 } 104 104 else{ 105 _error _("output '" << output << "' not supported yet");105 _error2_("output '" << output << "' not supported yet"); 106 106 } 107 107 … … 126 126 else if(strcmp(model,"spherical")==0) variogram = new SphericalVariogram(options); 127 127 else if(strcmp(model,"power")==0) variogram = new PowerVariogram(options); 128 else _error _("variogram " << model << " not supported yet (list of supported variogram: gaussian, exponential, spherical and power)");128 else _error2_("variogram " << model << " not supported yet (list of supported variogram: gaussian, exponential, spherical and power)"); 129 129 } 130 130 else variogram = new GaussianVariogram(options); -
issm/trunk-jpl/src/c/modules/Ll2xyx/Ll2xyx.cpp
r13036 r13055 52 52 double T,rho,sl,tc,mc; 53 53 54 if((sgn!=1) && (sgn!=-1)) _error _("Sign should be either +1 or -1.\n");54 if((sgn!=1) && (sgn!=-1)) _error2_("Sign should be either +1 or -1.\n"); 55 55 56 56 delta = central_meridian; … … 123 123 if(flag) _pprintLine_("Info: creating coordinates in polar stereographic (Std Latitude: 71S Meridian: 0)."); 124 124 } 125 else _error _("Sign should be either +1 or -1.\n");125 else _error2_("Sign should be either +1 or -1.\n"); 126 126 127 127 return; -
issm/trunk-jpl/src/c/modules/MeshPartitionx/MeshPartitionx.cpp
r13036 r13055 51 51 for (i=0;i<numberofnodes;i++) npart[i]=0; 52 52 } 53 else _error _("At least one processor is required");53 else _error2_("At least one processor is required"); 54 54 } 55 55 else{ … … 78 78 for (i=0;i<numberofnodes2d;i++) npart2d[i]=0; 79 79 } 80 else _error _("At least one processor is required");80 else _error2_("At least one processor is required"); 81 81 82 82 /*Extrude epart2d to epart, using numlayers: */ -
issm/trunk-jpl/src/c/modules/MeshProfileIntersectionx/ElementSegment.cpp
r13036 r13055 38 38 if( (edge1==IntersectEnum) && (edge2==IntersectEnum) && (edge3==IntersectEnum) ){ 39 39 /*This case is impossible: */ 40 _error _("error: a line cannot go through 3 different vertices!");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/Balancethickness/CreateNodesBalancethickness.cpp
r13036 r13055 46 46 47 47 /*Check in 3d*/ 48 if(stabilization==3 && dim==3) _error _("DG 3d not implemented yet");48 if(stabilization==3 && dim==3) _error2_("DG 3d not implemented yet"); 49 49 50 50 /*First fetch data: */ -
issm/trunk-jpl/src/c/modules/ModelProcessorx/Control/UpdateElementsAndMaterialsControl.cpp
r13036 r13055 48 48 case FrictionCoefficientEnum: iomodel->FetchData(1,FrictionCoefficientEnum); break; 49 49 case MaterialsRheologyBbarEnum: iomodel->FetchData(1,MaterialsRheologyBEnum); break; 50 default: _error _("Control " << EnumToStringx((int)iomodel->Data(InversionControlParametersEnum)[i]) << " not implemented yet");50 default: _error2_("Control " << EnumToStringx((int)iomodel->Data(InversionControlParametersEnum)[i]) << " not implemented yet"); 51 51 } 52 52 } -
issm/trunk-jpl/src/c/modules/ModelProcessorx/CreateDataSets.cpp
r13036 r13055 124 124 125 125 default: 126 _error _("analysis_type: " << EnumToStringx(analysis_type) << " not supported yet!");126 _error2_("analysis_type: " << EnumToStringx(analysis_type) << " not supported yet!"); 127 127 } 128 128 -
issm/trunk-jpl/src/c/modules/ModelProcessorx/Dakota/CreateParametersDakota.cpp
r13036 r13055 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)_error _("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!"); 156 156 157 157 /*Go through segments, and extract those that belong to this cpu: */ -
issm/trunk-jpl/src/c/modules/ModelProcessorx/DiagnosticHoriz/CreateConstraintsDiagnosticHoriz.cpp
r13051 r13055 146 146 147 147 } 148 else _error _("if vertices_type is MacAyealPattyn, you shoud have nodeonpattyn or nodeonmacayeal");148 else _error2_("if vertices_type is MacAyealPattyn, you shoud have nodeonpattyn or nodeonmacayeal"); 149 149 } 150 150 /*Also add spcs of coupling: zero at the border pattyn/stokes for the appropriate dofs*/ … … 186 186 } 187 187 } 188 else _error _("if vertices_type is PattynStokes, you shoud have nodeonpattyn or nodeonstokes");188 else _error2_("if vertices_type is PattynStokes, you shoud have nodeonpattyn or nodeonstokes"); 189 189 } 190 190 /*Also add spcs of coupling: zero at the border pattyn/stokes for the appropriate dofs*/ … … 226 226 } 227 227 } 228 else _error _("if vertices_type is MacAyealStokes, you shoud have nodeonmacayeal or nodeonstokes");228 else _error2_("if vertices_type is MacAyealStokes, you shoud have nodeonmacayeal or nodeonstokes"); 229 229 } 230 230 /*Now add the regular spcs*/ … … 319 319 count++; 320 320 break; 321 default: _error _("Vertex approximation " << EnumToStringx((int)vertices_type[i]) << " not supported");321 default: _error2_("Vertex approximation " << EnumToStringx((int)vertices_type[i]) << " not supported"); 322 322 } 323 323 } -
issm/trunk-jpl/src/c/modules/ModelProcessorx/DistributeNumDofs.cpp
r13051 r13055 64 64 doftype[5]=StokesApproximationEnum; 65 65 } 66 else _error _("Approximationtype " << reCast<int>(*vertices_type) << " (" << EnumToStringx(reCast<int>(*vertices_type)) << ") not implemented yet for DiagnosticHoriz");66 else _error2_("Approximationtype " << reCast<int>(*vertices_type) << " (" << EnumToStringx(reCast<int>(*vertices_type)) << ") not implemented yet for DiagnosticHoriz"); 67 67 } 68 68 else if (analysis_type==DiagnosticVertAnalysisEnum){ … … 93 93 numdofs=1; 94 94 } 95 else _error _("analysis type: " << analysis_type << " (" << EnumToStringx(analysis_type) << ") not implemented yet");95 else _error2_("analysis type: " << analysis_type << " (" << EnumToStringx(analysis_type) << ") not implemented yet"); 96 96 97 97 /*Now initialize the index*/ -
issm/trunk-jpl/src/c/modules/ModelProcessorx/Enthalpy/CreateConstraintsEnthalpy.cpp
r13036 r13055 106 106 } 107 107 else{ 108 _error _("Size of field " << EnumToStringx(ThermalSpctemperatureEnum) << " not supported");108 _error2_("Size of field " << EnumToStringx(ThermalSpctemperatureEnum) << " not supported"); 109 109 } 110 110 -
issm/trunk-jpl/src/c/modules/ModelProcessorx/Melting/CreateLoadsMelting.cpp
r13036 r13055 26 26 27 27 /*if 2d: Error*/ 28 if (dim==2) _error _("2d meshes not supported yet");28 if (dim==2) _error2_("2d meshes not supported yet"); 29 29 30 30 /*Recover pointer: */ -
issm/trunk-jpl/src/c/modules/ModelProcessorx/NodesPartitioning.cpp
r13036 r13055 103 103 } 104 104 else{ 105 _error _("not implemented yet");105 _error2_("not implemented yet"); 106 106 } 107 107 … … 111 111 iomodel->FetchData(&edges,&numberofedges,&cols,MeshEdgesEnum); 112 112 iomodel->FetchData(&elements,NULL,NULL,MeshElementsEnum); 113 if (cols!=4) _error _("field edges should have 4 columns");113 if (cols!=4) _error2_("field edges should have 4 columns"); 114 114 115 115 /*!All elements have been partitioned above, only create elements for this CPU: */ … … 152 152 } 153 153 else{ 154 _error _("Problem in edges creation");154 _error2_("Problem in edges creation"); 155 155 } 156 156 } -
issm/trunk-jpl/src/c/modules/ModelProcessorx/Prognostic/CreateNodesPrognostic.cpp
r13036 r13055 46 46 47 47 /*Check in 3d*/ 48 if(stabilization==3 && dim==3) _error _("DG 3d not implemented yet");48 if(stabilization==3 && dim==3) _error2_("DG 3d not implemented yet"); 49 49 50 50 /*First fetch data: */ -
issm/trunk-jpl/src/c/modules/ModelProcessorx/Thermal/CreateLoadsThermal.cpp
r13036 r13055 33 33 34 34 /*return if 2d mesh*/ 35 if (dim==2) _error _("2d meshes not supported yet");35 if (dim==2) _error2_("2d meshes not supported yet"); 36 36 37 37 //create penalties for nodes: no node can have a temperature over the melting point -
issm/trunk-jpl/src/c/modules/NodalValuex/NodalValuex.cpp
r13036 r13055 38 38 #ifdef _HAVE_MPI_ 39 39 MPI_Allreduce ( &found,&sumfound,1,MPI_INT,MPI_SUM,MPI_COMM_WORLD); 40 if(!sumfound)_error _("could not find element with vertex with id" << index << " to compute nodal value " << EnumToStringx(natureofdataenum));40 if(!sumfound)_error2_("could not find element with vertex with id" << index << " to compute nodal value " << EnumToStringx(natureofdataenum)); 41 41 #endif 42 42 -
issm/trunk-jpl/src/c/modules/NodeConnectivityx/NodeConnectivityx.cpp
r13036 r13055 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)_error _("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"); 74 74 } 75 75 -
issm/trunk-jpl/src/c/modules/ParsePetscOptionsx/ParsePetscOptionsx.cpp
r13036 r13055 106 106 char* string=strings[i]; 107 107 if(my_rank==0){ 108 if(string==NULL) _error _("PETSc options for analysis " << EnumToStringx(reCast<int>(analyses[i])) << " have been declared but were not found");108 if(string==NULL) _error2_("PETSc options for analysis " << EnumToStringx(reCast<int>(analyses[i])) << " have been declared but were not found"); 109 109 } 110 110 if(my_rank==0)stringlength=(strlen(string)+1)*sizeof(char); -
issm/trunk-jpl/src/c/modules/ResetConstraintsx/ResetConstraintsx.cpp
r13036 r13055 30 30 * management routine, otherwise, skip : */ 31 31 if (RiftIsPresent(loads,analysis_type)){ 32 _error _("rift constraints reset not supported yet!");32 _error2_("rift constraints reset not supported yet!"); 33 33 } 34 34 else if(ThermalIsPresent(loads,analysis_type)){ -
issm/trunk-jpl/src/c/modules/Responsex/Responsex.cpp
r13036 r13055 49 49 case VelEnum:ElementResponsex(responses, elements,nodes, vertices, loads, materials, parameters,VelEnum,process_units); break; 50 50 case FrictionCoefficientEnum:NodalValuex(responses, FrictionCoefficientEnum,elements,nodes, vertices, loads, materials, parameters,process_units); break; 51 default: _error _("response descriptor \"" << response_descriptor << "\" not supported yet!"); break;51 default: _error2_("response descriptor \"" << response_descriptor << "\" not supported yet!"); break; 52 52 #else 53 default: _error _("ISSM was not compiled with responses capabilities, exiting!");53 default: _error2_("ISSM was not compiled with responses capabilities, exiting!"); 54 54 #endif 55 55 } -
issm/trunk-jpl/src/c/modules/Shp2Kmlx/Shp2Kmlx.cpp
r13036 r13055 75 75 76 76 hSHP = SHPOpen( filshp, "rb" ); 77 if (!hSHP) _error _("Error opening shp/shx files.");77 if (!hSHP) _error2_("Error opening shp/shx files."); 78 78 79 79 /* read header and print out file bounds */ -
issm/trunk-jpl/src/c/modules/Solverx/Solverx.cpp
r13036 r13055 44 44 break;} 45 45 default: 46 _error _("Matrix type: " << Kff->type << " not supported yet!");46 _error2_("Matrix type: " << Kff->type << " not supported yet!"); 47 47 } 48 48 -
issm/trunk-jpl/src/c/modules/Solverx/SolverxPetsc.cpp
r13036 r13055 96 96 #if _PETSC_MAJOR_ >=3 97 97 #ifndef _HAVE_MUMPS_ 98 _error _("requested MUMPS solver, which was not compiled into ISSM!\n");98 _error2_("requested MUMPS solver, which was not compiled into ISSM!\n"); 99 99 #endif 100 100 #endif … … 120 120 if (solver_type==StokesSolverEnum){ 121 121 /*Make indices out of doftypes: */ 122 if(!df)_error _("need doftypes for Stokes solver!\n");122 if(!df)_error2_("need doftypes for Stokes solver!\n"); 123 123 DofTypesToIndexSet(&isv,&isp,df,StokesSolverEnum); 124 124 … … 151 151 /*Check convergence*/ 152 152 KSPGetIterationNumber(ksp,&iteration_number); 153 if (iteration_number<0) _error _("Solver diverged at iteration number: " << -iteration_number);153 if (iteration_number<0) _error2_("Solver diverged at iteration number: " << -iteration_number); 154 154 155 155 /*Free resources:*/ -
issm/trunk-jpl/src/c/modules/Solverx/SolverxSeq.cpp
r13036 r13055 30 30 pf->GetSize(&N2); 31 31 32 if(N!=N2)_error _("Right hand side vector of size " << N2 << ", when matrix is of size " << M << "-" << N << " !");33 if(M!=N)_error _("Stiffness matrix should be square!");32 if(N!=N2)_error2_("Right hand side vector of size " << N2 << ", when matrix is of size " << M << "-" << N << " !"); 33 if(M!=N)_error2_("Stiffness matrix should be square!"); 34 34 35 35 SolverxSeq(&x,Kff->matrix,pf->vector,N); … … 40 40 41 41 #else 42 _error _("GSL support not compiled in!");42 _error2_("GSL support not compiled in!"); 43 43 #endif 44 44 -
issm/trunk-jpl/src/c/modules/StringToEnumx/StringToEnumx.cpp
r13053 r13055 491 491 } 492 492 /*If we reach this point, the string provided has not been found*/ 493 _error _("Enum " << name << " not found");493 _error2_("Enum " << name << " not found"); 494 494 } -
issm/trunk-jpl/src/c/modules/Xy2llx/Xy2llx.cpp
r13036 r13055 53 53 double sl,rho,cm,T,chi; 54 54 55 if((sgn!=1) && (sgn!=-1)) _error _("Sign should be either +1 or -1.\n");55 if((sgn!=1) && (sgn!=-1)) _error2_("Sign should be either +1 or -1.\n"); 56 56 57 57 delta = central_meridian; … … 131 131 if(flag) _pprintLine_("Warning: expecting coordinates in polar stereographic (Std Latitude: 71S Meridian: 0)."); 132 132 } 133 else _error _("Sign should be either +1 or -1.\n");133 else _error2_("Sign should be either +1 or -1.\n"); 134 134 135 135 return; -
issm/trunk-jpl/src/c/python/io/CheckNumPythonArguments.cpp
r13036 r13055 27 27 if (size==0){ 28 28 function(); 29 _error _("usage: see above");29 _error2_("usage: see above"); 30 30 } 31 31 else if (size!=NRHS ) { 32 32 function(); 33 _error _("usage error.");33 _error2_("usage error."); 34 34 } 35 35 return 1; -
issm/trunk-jpl/src/c/python/io/FetchPythonData.cpp
r13036 r13055 48 48 49 49 /*check this is indeed a subtype of long type: */ 50 if(!PyBool_Check(py_boolean))_error _("expecting a boolean in input!");50 if(!PyBool_Check(py_boolean))_error2_("expecting a boolean in input!"); 51 51 52 52 /*extract boolean: */ … … 69 69 /*retrive dimensions: */ 70 70 ndim=PyArray_NDIM((const PyArrayObject*)py_matrix); 71 if(ndim!=2)_error _("expecting an MxN matrix in input!");71 if(ndim!=2)_error2_("expecting an MxN matrix in input!"); 72 72 dims=PyArray_DIMS((PyArrayObject*)py_matrix); 73 73 M=dims[0]; N=dims[1]; … … 97 97 /*retrive dimensions: */ 98 98 ndim=PyArray_NDIM((const PyArrayObject*)py_matrix); 99 if(ndim!=2)_error _("expecting an MxN matrix in input!");99 if(ndim!=2)_error2_("expecting an MxN matrix in input!"); 100 100 dims=PyArray_DIMS((PyArrayObject*)py_matrix); 101 101 M=dims[0]; N=dims[1]; … … 125 125 /*retrive dimensions: */ 126 126 ndim=PyArray_NDIM((const PyArrayObject*)py_vector); 127 if(ndim!=1)_error _("expecting an Mx1 vector in input!");127 if(ndim!=1)_error2_("expecting an Mx1 vector in input!"); 128 128 dims=PyArray_DIMS((PyArrayObject*)py_vector); 129 129 M=dims[0]; -
issm/trunk-jpl/src/c/python/io/WritePythonData.cpp
r13033 r13055 21 21 22 22 23 /*FUNCTION WriteData(PyObject* py_tuple,int index,int integer){{{*/24 void WriteData(PyObject* py_tuple, int index, int integer){25 26 PyTuple_SetItem(py_tuple, index, PyInt_FromSsize_t(integer));27 28 }/*}}}*/29 23 /*FUNCTION WriteData(PyObject* py_tuple,int index,char* string){{{*/ 30 24 void WriteData(PyObject* py_tuple, int index, char* string){ -
issm/trunk-jpl/src/c/python/io/pythonio.h
r13033 r13055 28 28 //void WriteData(DataHandle* py_tuple,Parameters* parameters); 29 29 void WriteData(PyObject* py_tuple, int index, double* matrix, int M,int N); 30 void WriteData(PyObject* py_tuple, int index, int integer);31 30 void WriteData(PyObject* py_tuple, int index, char* string); 32 31 void WriteData(PyObject* py_tuple, int index, Matrix* matrix); -
issm/trunk-jpl/src/c/shared/Alloc/alloc.cpp
r13036 r13055 31 31 void* memptr=NULL; 32 32 33 if(!size)_error _("attempting to 0 size allocation!");33 if(!size)_error2_("attempting to 0 size allocation!"); 34 34 35 35 /* Use the c library to do the allocation: */ 36 36 memptr=malloc(size); 37 if(!memptr) _error _("memory allocation failed!");37 if(!memptr) _error2_("memory allocation failed!"); 38 38 39 39 return memptr; … … 44 44 void* memptr=NULL; 45 45 46 if(!size)_error _("attempting to 0 size allocation!");46 if(!size)_error2_("attempting to 0 size allocation!"); 47 47 48 48 /* Use the c library to do the allocation: */ 49 49 memptr=calloc(n,size); 50 if(!memptr) _error _("memory allocation failed!");50 if(!memptr) _error2_("memory allocation failed!"); 51 51 52 52 return memptr; … … 88 88 register void* value=NULL; 89 89 90 if(!size)_error _("attempting to realloc to zero");90 if(!size)_error2_("attempting to realloc to zero"); 91 91 value = (void*)realloc(pv,size); 92 92 93 93 if (value == NULL) { 94 _error _("virtual memory exhausted");94 _error2_("virtual memory exhausted"); 95 95 } 96 96 return value; -
issm/trunk-jpl/src/c/shared/Elements/CoordinateSystemTransform.cpp
r13036 r13055 22 22 case XYEnum: numdofs+=2; break; 23 23 case XYZPEnum: numdofs+=4; break; 24 default: _error _("Coordinate system " << EnumToStringx(cs_array[i]) << " not supported yet");24 default: _error2_("Coordinate system " << EnumToStringx(cs_array[i]) << " not supported yet"); 25 25 } 26 26 } … … 67 67 break; 68 68 default: 69 _error _("Coordinate system " << EnumToStringx(cs_array[i]) << " not supported yet");69 _error2_("Coordinate system " << EnumToStringx(cs_array[i]) << " not supported yet"); 70 70 } 71 71 } -
issm/trunk-jpl/src/c/shared/Elements/TransformInvStiffnessMatrixCoord.cpp
r13036 r13055 31 31 case XYEnum: numdofs+=2; break; 32 32 case XYZPEnum: numdofs+=4; break; 33 default: _error _("Coordinate system " << EnumToStringx(cs_array[i]) << " not supported yet");33 default: _error2_("Coordinate system " << EnumToStringx(cs_array[i]) << " not supported yet"); 34 34 } 35 35 } -
issm/trunk-jpl/src/c/shared/Elements/TransformLoadVectorCoord.cpp
r13036 r13055 30 30 case XYEnum: numdofs+=2; break; 31 31 case XYZPEnum: numdofs+=4; break; 32 default: _error _("Coordinate system " << EnumToStringx(cs_array[i]) << " not supported yet");32 default: _error2_("Coordinate system " << EnumToStringx(cs_array[i]) << " not supported yet"); 33 33 } 34 34 } -
issm/trunk-jpl/src/c/shared/Elements/TransformSolutionCoord.cpp
r13036 r13055 31 31 case XYEnum: numdofs+=2; break; 32 32 case XYZPEnum: numdofs+=4; break; 33 default: _error _("Coordinate system " << EnumToStringx(cs_array[i]) << " not supported yet");33 default: _error2_("Coordinate system " << EnumToStringx(cs_array[i]) << " not supported yet"); 34 34 } 35 35 } -
issm/trunk-jpl/src/c/shared/Elements/TransformStiffnessMatrixCoord.cpp
r13036 r13055 31 31 case XYEnum: numdofs+=2; break; 32 32 case XYZPEnum: numdofs+=4; break; 33 default: _error _("Coordinate system " << EnumToStringx(cs_array[i]) << " not supported yet");33 default: _error2_("Coordinate system " << EnumToStringx(cs_array[i]) << " not supported yet"); 34 34 } 35 35 } -
issm/trunk-jpl/src/c/shared/Exp/DomainOutlineRead.cpp
r13036 r13055 39 39 /*open domain outline file for reading: */ 40 40 if ((fid=fopen(domainname,"r"))==NULL){ 41 _error _("could not find domain file " << domainname);41 _error2_("could not find domain file " << domainname); 42 42 } 43 43 -
issm/trunk-jpl/src/c/shared/Exp/DomainOutlineWrite.cpp
r13036 r13055 23 23 /*open domain outline file for writing: */ 24 24 if ((fid=fopen(domainname,"w"))==NULL){ 25 _error _("could not open domain file " << domainname);25 _error2_("could not open domain file " << domainname); 26 26 noerr=0; goto cleanupandreturn; 27 27 } -
issm/trunk-jpl/src/c/shared/Matrix/MatrixUtils.cpp
r13036 r13055 36 36 if (!itrnb) { 37 37 if (nrowb != idimb) { 38 _error _("Matrix A and B inner vectors not equal size.");38 _error2_("Matrix A and B inner vectors not equal size."); 39 39 } 40 40 idimc=ncolb; … … 42 42 else { 43 43 if (ncolb != idimb) { 44 _error _("Matrix A and B inner vectors not equal size.");44 _error2_("Matrix A and B inner vectors not equal size."); 45 45 } 46 46 idimc=nrowb; … … 49 49 if (!itrnc) { 50 50 if (nrowc != idimc) { 51 _error _("Matrix B and C inner vectors not equal size.");51 _error2_("Matrix B and C inner vectors not equal size."); 52 52 } 53 53 idimd=ncolc; … … 55 55 else { 56 56 if (ncolc != idimc) { 57 _error _("Matrix B and C inner vectors not equal size.");57 _error2_("Matrix B and C inner vectors not equal size."); 58 58 } 59 59 idimd=nrowc; … … 124 124 125 125 if (ntrma != ntrmb) { 126 _error _("Matrix A and B inner vectors not equal size");126 _error2_("Matrix A and B inner vectors not equal size"); 127 127 noerr=0; 128 128 return noerr; … … 175 175 176 176 if (!b && nvec) { 177 _error _("No right-hand side for nvec=" << nvec << ".");177 _error2_("No right-hand side for nvec=" << nvec << "."); 178 178 noerr=0; 179 179 return noerr; … … 214 214 xDelete<int>(pivrc2); 215 215 xDelete<int>(pindx); 216 _error _("Pivot " << pivot << " less than machine epsilon");216 _error2_("Pivot " << pivot << " less than machine epsilon"); 217 217 noerr=0; 218 218 return noerr; … … 349 349 /*Compute determinant*/ 350 350 Matrix2x2Determinant(&det,A); 351 if (fabs(det) < DBL_EPSILON) _error _("Determinant smaller that machine epsilon");351 if (fabs(det) < DBL_EPSILON) _error2_("Determinant smaller that machine epsilon"); 352 352 353 353 /*Compute invert*/ … … 374 374 /*Compute determinant*/ 375 375 Matrix3x3Determinant(&det,A); 376 if (fabs(det) < DBL_EPSILON) _error _("Determinant smaller that machine epsilon");376 if (fabs(det) < DBL_EPSILON) _error2_("Determinant smaller that machine epsilon"); 377 377 378 378 /*Compute invert*/ -
issm/trunk-jpl/src/c/shared/Numerics/BrentSearch.cpp
r13036 r13055 44 44 iter=0; 45 45 fxmin = (*f)(xmin,optargs); 46 if (xIsNan<IssmDouble>(fxmin)) _error _("Function evaluation returned NaN");46 if (xIsNan<IssmDouble>(fxmin)) _error2_("Function evaluation returned NaN"); 47 47 cout<<setprecision(5); 48 48 if(VerboseControl()) _pprintLine_(""); … … 51 51 if(VerboseControl()) _pprintLine_(" N/A "<<setw(12)<<xmin<<" "<<setw(12)<<fxmin<<" N/A boundary"); 52 52 fxmax = (*f)(xmax,optargs); 53 if (xIsNan<IssmDouble>(fxmax)) _error _("Function evaluation returned NaN");53 if (xIsNan<IssmDouble>(fxmax)) _error2_("Function evaluation returned NaN"); 54 54 if(VerboseControl()) _pprintLine_(" N/A "<<setw(12)<<xmax<<" "<<setw(12)<<fxmax<<" N/A boundary"); 55 55 … … 75 75 /*2: call the function to be evaluated*/ 76 76 fxbest = (*f)(x,optargs); 77 if(xIsNan<IssmDouble>(fxbest)) _error _("Function evaluation returned NaN");77 if(xIsNan<IssmDouble>(fxbest)) _error2_("Function evaluation returned NaN"); 78 78 iter=iter+1; 79 79 … … 159 159 //evaluate function on x 160 160 fx = (*f)(x,optargs); 161 if(xIsNan<IssmDouble>(fx)) _error _("Function evaluation returned NaN");161 if(xIsNan<IssmDouble>(fx)) _error2_("Function evaluation returned NaN"); 162 162 iter=iter+1; 163 163 -
issm/trunk-jpl/src/c/shared/Numerics/GaussPoints.cpp
r13036 r13055 1670 1670 if (iter >= MAX_GAUS_ITER) { 1671 1671 xDelete<IssmPDouble>(work); 1672 _error _("Max iterations exceeded for l=" << MAX_GAUS_ITER);1672 _error2_("Max iterations exceeded for l=" << MAX_GAUS_ITER); 1673 1673 } 1674 1674 } -
issm/trunk-jpl/src/c/shared/Numerics/IsInputConverged.cpp
r13036 r13055 53 53 else eps=0; 54 54 } 55 else _error _("convergence criterion " << EnumToStringx(criterion_enum) << " not supported yet!");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/OptimalSearch.cpp
r13036 r13055 41 41 //get the value of the function at the first boundary 42 42 fx1= (*f)(x1,optargs); 43 if (xIsNan<IssmDouble>(fx1)) _error _("Function evaluation returned NaN");43 if (xIsNan<IssmDouble>(fx1)) _error2_("Function evaluation returned NaN"); 44 44 cout<<setprecision(5); 45 45 if(VerboseControl()) _pprintLine_(""); … … 57 57 iter++; 58 58 fx2 = (*f)(x2,optargs); 59 if (xIsNan<IssmDouble>(fx2)) _error _("Function evaluation returned NaN");59 if (xIsNan<IssmDouble>(fx2)) _error2_("Function evaluation returned NaN"); 60 60 if(VerboseControl()) 61 61 _pprintLine_(" "<<setw(5)<<iter<<" "<<setw(12)<<x2<<" "<<setw(12)<<fx2<<" "<<(fabs(x2-x1)>fabs(fx2-fx1)?fabs(fx2-fx1):fabs(x2-x1))); -
issm/trunk-jpl/src/c/shared/Numerics/OptionsFromAnalysis.cpp
r13036 r13055 57 57 if (found==-1){ 58 58 /*ok, we did not find anything, this is not good! error out: */ 59 _error _("could find neither a default analysis nor analysis " << EnumToStringx(analysis_type));59 _error2_("could find neither a default analysis nor analysis " << EnumToStringx(analysis_type)); 60 60 } 61 61 -
issm/trunk-jpl/src/c/shared/Numerics/UnitConversion.cpp
r13036 r13055 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 _error _("wrong direction for unit conversion, either IuToExtEnum or ExtToIuEnum. ");31 else _error2_("wrong direction for unit conversion, either IuToExtEnum or ExtToIuEnum. "); 32 32 33 33 } -
issm/trunk-jpl/src/c/shared/Numerics/Verbosity.cpp
r13036 r13055 34 34 void SetVerbosityLevel(int level){ 35 35 36 if(level<0) _error _("vebosity level should be a positive integer (user provided " << level << ")");36 if(level<0) _error2_("vebosity level should be a positive integer (user provided " << level << ")"); 37 37 38 38 verbositylevel = level; -
issm/trunk-jpl/src/c/shared/String/DescriptorIndex.cpp
r13036 r13055 23 23 /*retrieve first token, separated by underscore: */ 24 24 pch = strtok (descriptor,"_"); 25 if(!pch)_error _("descriptor " << descriptor << " is not correctly formatted!");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)_error _("scaled descriptor " << descriptor << " is not correctly formatted!");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)_error _("indexed descriptor " << descriptor << " is not correctly formatted!");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)_error _("indexed descriptor " << descriptor << " is not correctly formatted!");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)_error _("nodal descriptor " << descriptor << " is not correctly formatted!");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)_error _("nodal descriptor " << descriptor << " is not correctly formatted!");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
r13036 r13055 44 44 45 45 if(pthread_create(threads+i,NULL,function,(void*)(handles+i))){ 46 _error _("pthread_create error");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 _error _("pthread_join error");51 _error2_("pthread_join error"); 52 52 } 53 53 } -
issm/trunk-jpl/src/c/solutions/AdjointCorePointerFromSolutionEnum.cpp
r13036 r13055 35 35 break; 36 36 default: 37 _error _("No adjoint has been implemented for solution " << EnumToStringx(solutiontype) << " yet");37 _error2_("No adjoint has been implemented for solution " << EnumToStringx(solutiontype) << " yet"); 38 38 break; 39 39 } -
issm/trunk-jpl/src/c/solutions/AnalysisConfiguration.cpp
r13036 r13055 110 110 111 111 default: 112 _error _("solution type: " << EnumToStringx(solutiontype) << " not supported yet!");112 _error2_("solution type: " << EnumToStringx(solutiontype) << " not supported yet!"); 113 113 break; 114 114 } -
issm/trunk-jpl/src/c/solutions/CorePointerFromSolutionEnum.cpp
r13036 r13055 29 29 solutioncore=&diagnostic_core; 30 30 #else 31 _error _("ISSM was not compiled with diagnostic capabilities. Exiting");31 _error2_("ISSM was not compiled with diagnostic capabilities. Exiting"); 32 32 #endif 33 33 break; … … 36 36 solutioncore=&steadystate_core; 37 37 #else 38 _error _("ISSM was not compiled with steady state capabilities. Exiting");38 _error2_("ISSM was not compiled with steady state capabilities. Exiting"); 39 39 #endif 40 40 break; … … 43 43 solutioncore=&thermal_core; 44 44 #else 45 _error _("ISSM was not compiled with thermal capabilities. Exiting");45 _error2_("ISSM was not compiled with thermal capabilities. Exiting"); 46 46 #endif 47 47 break; … … 50 50 solutioncore=&enthalpy_core; 51 51 #else 52 _error _("ISSM was not compiled with thermal capabilities. Exiting");52 _error2_("ISSM was not compiled with thermal capabilities. Exiting"); 53 53 #endif 54 54 break; … … 57 57 solutioncore=&balancethickness_core; 58 58 #else 59 _error _("ISSM was not compiled with balanced capabilities. Exiting");59 _error2_("ISSM was not compiled with balanced capabilities. Exiting"); 60 60 #endif 61 61 break; … … 64 64 solutioncore=&hydrology_core; 65 65 #else 66 _error _("ISSM was not compiled with hydrology capabilities. Exiting");66 _error2_("ISSM was not compiled with hydrology capabilities. Exiting"); 67 67 #endif 68 68 break; … … 71 71 solutioncore=&surfaceslope_core; 72 72 #else 73 _error _("ISSM was not compiled with slope capabilities. Exiting");73 _error2_("ISSM was not compiled with slope capabilities. Exiting"); 74 74 #endif 75 75 break; … … 78 78 solutioncore=&bedslope_core; 79 79 #else 80 _error _("ISSM was not compiled with slope capabilities. Exiting");80 _error2_("ISSM was not compiled with slope capabilities. Exiting"); 81 81 #endif 82 82 break; … … 85 85 solutioncore=&transient_core; 86 86 #else 87 _error _("ISSM was not compiled with transient capabilities. Exiting");87 _error2_("ISSM was not compiled with transient capabilities. Exiting"); 88 88 #endif 89 89 break; … … 92 92 solutioncore=&prognostic_core; 93 93 #else 94 _error _("ISSM was not compiled with prognostic capabilities. Exiting");94 _error2_("ISSM was not compiled with prognostic capabilities. Exiting"); 95 95 #endif 96 96 break; 97 97 default: 98 _error _("solution type: " << EnumToStringx(solutiontype) << " not supported yet!");98 _error2_("solution type: " << EnumToStringx(solutiontype) << " not supported yet!"); 99 99 break; 100 100 } -
issm/trunk-jpl/src/c/solutions/ProcessArguments.cpp
r13036 r13055 17 17 char *lockfilename = NULL; 18 18 19 if(argc<2)_error _("Usage error: no solution requested");19 if(argc<2)_error2_("Usage error: no solution requested"); 20 20 *solution_type=StringToEnumx(argv[1]); 21 if(argc<3)_error _("Usage error: missing model name");21 if(argc<3)_error2_("Usage error: missing model name"); 22 22 modelname=argv[3]; 23 23 binfilename = xNew<char>(strlen(modelname)+strlen(".bin") +1); sprintf(binfilename, "%s%s",modelname,".bin"); -
issm/trunk-jpl/src/c/solutions/WriteLockFile.cpp
r13036 r13055 17 17 if(my_rank==0){ 18 18 fid=fopen(filename,"w"); 19 if(fid==NULL) _error _("error message: could not open lock file " << filename);19 if(fid==NULL) _error2_("error message: could not open lock file " << filename); 20 20 21 21 /*Close file: */ 22 if(fclose(fid)!=0) _error _("could not close lock file " << filename);22 if(fclose(fid)!=0) _error2_("could not close lock file " << filename); 23 23 } 24 24 -
issm/trunk-jpl/src/c/solutions/controltao_core.cpp
r13037 r13055 42 42 PetscGetArgs(&argc,&args); 43 43 ierr = TaoInitialize(&argc,&args,(char*)0,""); 44 if(ierr) _error _("Could not initialize Tao");44 if(ierr) _error2_("Could not initialize Tao"); 45 45 46 46 /*Recover some parameters*/ … … 75 75 xdelete(&XU); 76 76 77 user.J= xNewZeroInit<double>(maxiter+5);77 user.J=(double*)xcalloc((maxiter+5),sizeof(double)); 78 78 user.femmodel=femmodel; 79 79 TaoSetObjectiveAndGradientRoutine(tao,FormFunctionGradient,(void*)&user); … … 185 185 #else 186 186 void controltao_core(FemModel* femmodel){ 187 _error _("TAO not installed or PETSc version not supported");187 _error2_("TAO not installed or PETSc version not supported"); 188 188 } 189 189 #endif //_HAVE_TAO_ -
issm/trunk-jpl/src/c/solutions/convergence.cpp
r13051 r13055 72 72 if (xIsNan<IssmDouble>(res)){ 73 73 _pprintLine_("norm nf = " << nF << "f and norm kuold = " << nKUoldF << "f"); 74 _error _("mechanical equilibrium convergence criterion is NaN!");74 _error2_("mechanical equilibrium convergence criterion is NaN!"); 75 75 } 76 76 … … 96 96 ndu=duf->Norm(NORM_TWO); nu=old_uf->Norm(NORM_TWO); 97 97 98 if (xIsNan<IssmDouble>(ndu) || xIsNan<IssmDouble>(nu)) _error _("convergence criterion is NaN!");98 if (xIsNan<IssmDouble>(ndu) || xIsNan<IssmDouble>(nu)) _error2_("convergence criterion is NaN!"); 99 99 100 100 //clean up … … 121 121 duf=old_uf->Duplicate(); old_uf->Copy(duf); duf->AYPX(uf,-1.0); 122 122 ndu=duf->Norm(NORM_TWO); nduinf=duf->Norm(NORM_INF); 123 if (xIsNan<IssmDouble>(ndu) || xIsNan<IssmDouble>(nu)) _error _("convergence criterion is NaN!");123 if (xIsNan<IssmDouble>(ndu) || xIsNan<IssmDouble>(nu)) _error2_("convergence criterion is NaN!"); 124 124 125 125 //clean up -
issm/trunk-jpl/src/c/solutions/gradient_core.cpp
r13036 r13055 37 37 /*Check that gradient is clean*/ 38 38 norm_inf=new_gradient->Norm(NORM_INF); 39 if(norm_inf<=0) _error _("||∂J/∂α||∞ = 0 gradient norm is zero");40 if(xIsNan<IssmDouble>(norm_inf))_error _("||∂J/∂α||∞ = NaN gradient norm is NaN");39 if(norm_inf<=0) _error2_("||∂J/∂α||∞ = 0 gradient norm is zero"); 40 if(xIsNan<IssmDouble>(norm_inf))_error2_("||∂J/∂α||∞ = NaN gradient norm is NaN"); 41 41 42 42 /*plug back into inputs: */ -
issm/trunk-jpl/src/c/solutions/issm.cpp
r13036 r13055 53 53 #ifdef _HAVE_PETSC_ 54 54 ierr=PetscInitialize(&argc,&argv,(char*)0,""); 55 if(ierr) _error _("Could not initialize Petsc");55 if(ierr) _error2_("Could not initialize Petsc"); 56 56 #else 57 57 #ifdef _HAVE_MPI_ … … 128 128 Dakotax(femmodel); 129 129 #else 130 _error _("ISSM was not compiled with dakota support, cannot carry out dakota analysis!");130 _error2_("ISSM was not compiled with dakota support, cannot carry out dakota analysis!"); 131 131 #endif 132 132 } … … 138 138 control_core(femmodel); 139 139 #else 140 _error _("ISSM was not compiled with control support, cannot carry out dakota analysis!");140 _error2_("ISSM was not compiled with control support, cannot carry out dakota analysis!"); 141 141 #endif 142 142 } -
issm/trunk-jpl/src/c/solutions/kriging.cpp
r13036 r13055 40 40 #ifdef _HAVE_PETSC_ 41 41 int ierr=PetscInitialize(&argc,&argv,(char*)0,""); 42 if(ierr) _error _("Could not initialize Petsc");42 if(ierr) _error2_("Could not initialize Petsc"); 43 43 #else 44 44 #ifdef _HAVE_MPI_ … … 122 122 char *lockfilename = NULL; 123 123 124 if(argc<2)_error _("Usage error: missing model name");124 if(argc<2)_error2_("Usage error: missing model name"); 125 125 modelname=argv[2]; 126 126 binfilename = xNew<char>((strlen(modelname)+strlen(".bin") +1)); sprintf(binfilename, "%s%s",modelname,".bin"); -
issm/trunk-jpl/src/c/solutions/objectivefunction.cpp
r13036 r13055 49 49 } 50 50 else{ 51 _error _("Solution " << EnumToStringx(solution_type) << " not implemented yet");51 _error2_("Solution " << EnumToStringx(solution_type) << " not implemented yet"); 52 52 } 53 53 … … 66 66 } 67 67 else{ 68 _error _("Solution " << EnumToStringx(solution_type) << " not implemented yet");68 _error2_("Solution " << EnumToStringx(solution_type) << " not implemented yet"); 69 69 } 70 70 -
issm/trunk-jpl/src/c/solutions/steadystate_core.cpp
r13036 r13055 52 52 } 53 53 #else 54 _error _("ISSM was not compiled with thermal capabilities. Exiting");54 _error2_("ISSM was not compiled with thermal capabilities. Exiting"); 55 55 #endif 56 56 -
issm/trunk-jpl/src/c/solutions/transient_core.cpp
r13036 r13055 104 104 } 105 105 #else 106 _error _("ISSM was not compiled with thermal capabilities. Exiting");106 _error2_("ISSM was not compiled with thermal capabilities. Exiting"); 107 107 #endif 108 108 } … … 113 113 diagnostic_core(femmodel); 114 114 #else 115 _error _("ISSM was not compiled with diagnostic capabilities. Exiting");115 _error2_("ISSM was not compiled with diagnostic capabilities. Exiting"); 116 116 #endif 117 117 } … … 129 129 GroundinglineMigrationx(femmodel->elements,femmodel->nodes,femmodel->vertices,femmodel->loads,femmodel->materials,femmodel->parameters); 130 130 #else 131 _error _("ISSM was not compiled with grounding line migration capabilities. Exiting");131 _error2_("ISSM was not compiled with grounding line migration capabilities. Exiting"); 132 132 #endif 133 133 } -
issm/trunk-jpl/src/c/toolkits/issm/SeqMat.cpp
r13036 r13055 119 119 break; 120 120 default: 121 _error _("unknown norm !");121 _error2_("unknown norm !"); 122 122 break; 123 123 } … … 150 150 AX->GetSize(&AXM); 151 151 152 if(M!=AXM)_error _("A and AX should have the same number of rows!");153 if(N!=XM)_error _("A and X should have the same number of columns!");152 if(M!=AXM)_error2_("A and AX should have the same number of rows!"); 153 if(N!=XM)_error2_("A and X should have the same number of columns!"); 154 154 155 155 for(i=0;i<M;i++){ … … 197 197 break; 198 198 default: 199 _error _("unknown insert mode!");199 _error2_("unknown insert mode!"); 200 200 break; 201 201 } -
issm/trunk-jpl/src/c/toolkits/issm/SeqVec.cpp
r13036 r13055 85 85 break; 86 86 default: 87 _error _("unknown insert mode!");87 _error2_("unknown insert mode!"); 88 88 break; 89 89 } … … 102 102 break; 103 103 default: 104 _error _("unknown insert mode!");104 _error2_("unknown insert mode!"); 105 105 break; 106 106 } … … 204 204 break; 205 205 default: 206 _error _("unknown norm !");206 _error2_("unknown norm !"); 207 207 break; 208 208 } -
issm/trunk-jpl/src/c/toolkits/metis/patches/METIS_PartMeshNodalPatch.cpp
r13036 r13055 60 60 61 61 #else 62 _error _("METIS version not supported yet");62 _error2_("METIS version not supported yet"); 63 63 #endif 64 64 } -
issm/trunk-jpl/src/c/toolkits/petsc/patches/ISSMToPetscInsertMode.cpp
r13036 r13055 30 30 break; 31 31 default: 32 _error _("unknown insert mode!");32 _error2_("unknown insert mode!"); 33 33 break; 34 34 } -
issm/trunk-jpl/src/c/toolkits/petsc/patches/ISSMToPetscMatrixType.cpp
r13036 r13055 30 30 break; 31 31 default: 32 _error _("unknown matrix type !");32 _error2_("unknown matrix type !"); 33 33 break; 34 34 } -
issm/trunk-jpl/src/c/toolkits/petsc/patches/ISSMToPetscNormMode.cpp
r13036 r13055 30 30 break; 31 31 default: 32 _error _("unknown norm !");32 _error2_("unknown norm !"); 33 33 break; 34 34 } -
issm/trunk-jpl/src/c/toolkits/petsc/patches/MatInvert.cpp
r13036 r13055 29 29 /*Some checks: */ 30 30 MatGetSize(matrix,&M,&N); 31 if(M!=N) _error _("trying to invert a non square matrix!");31 if(M!=N) _error2_("trying to invert a non square matrix!"); 32 32 33 33 /*Create identitiy matrix: */ -
issm/trunk-jpl/src/c/toolkits/petsc/patches/MatPartition.cpp
r13036 r13055 62 62 } 63 63 else{ 64 _error _("MatType " << type << " not supported yet");64 _error2_("MatType " << type << " not supported yet"); 65 65 } 66 66 /*Assemble*/ -
issm/trunk-jpl/src/c/toolkits/petsc/patches/PetscOptionsInsertMultipleString.cpp
r13036 r13055 55 55 if(first[0]!='-'){ 56 56 /*This is not good, the option does not have '-'! Get out*/ 57 _error _("Option " << first << " should be preceded by '-'!");57 _error2_("Option " << first << " should be preceded by '-'!"); 58 58 } 59 59 /*Reduce first to bare option value*/ -
issm/trunk-jpl/src/c/toolkits/petsc/patches/VecMerge.cpp
r13036 r13055 35 35 /*If the dimension of the partitioning vector is not the same as that of vector B, we have a problem: */ 36 36 if ( (row_partition_size !=MB) ){ 37 _error _("Dimensions of partitioning vector incompatible with dimensions of input vector\n");37 _error2_("Dimensions of partitioning vector incompatible with dimensions of input vector\n"); 38 38 } 39 39 -
issm/trunk-jpl/src/c/toolkits/plapack/patches/PlapackInvertMatrix.cpp
r13036 r13055 51 51 52 52 /*Some dimensions checks: */ 53 if (mA!=nA) _error _("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!"); 54 54 55 55 /* Set default Plapack parameters */ -
issm/trunk-jpl/src/modules/matlab/Makefile.am
r13046 r13055 1 1 AM_CPPFLAGS = @DAKOTAINCL@ @MATLABINCL@ @PETSCINCL@ @MPIINCL@ @SPOOLESINCL@ @METISINCL@ @TRIANGLEINCL@ @CHACOINCL@ @SCOTCHINCL@ @SHAPELIBINCL@ @BOOSTINCL@ @PYTHONINCL@ @PYTHON_NUMPYINCL@ 2 3 2 EXEEXT=$(MATLABWRAPPEREXT) 4 5 #Modules {{{1 3 #Bin programs {{{1 6 4 if MODULES 7 lib_LTLIBRARIES = AverageFilter.la\8 BamgMesher.la\9 BamgConvertMesh.la\10 BamgTriangulate.la\11 Chaco.la\12 ContourToMesh.la\13 ContourToNodes.la\14 ElementConnectivity.la\15 EnumToString.la\16 Exp2Kml.la\17 HoleFiller.la\18 InternalFront.la\19 InterpFromGridToMesh.la\20 InterpFromMeshToMesh2d.la\21 InterpFromMeshToMesh3d.la\22 InterpFromMeshToGrid.la\23 InterpFromMesh2d.la\24 KMLFileRead.la\25 KMLMeshWrite.la\26 KMLOverlay.la\27 Kml2Exp.la\28 Kriging.la\29 Ll2xy.la\30 NodeConnectivity.la\31 MeshPartition.la\32 MeshProfileIntersection.la\33 PointCloudFindNeighbors.la\34 PropagateFlagsFromConnectivity.la\35 Shp2Kml.la\36 StringToEnum.la\37 TriaSearch.la\38 TriMesh.la\39 TriMeshProcessRifts.la\40 Scotch.la\41 Xy2ll.la5 bin_PROGRAMS = AverageFilter\ 6 BamgMesher\ 7 BamgConvertMesh\ 8 BamgTriangulate\ 9 Chaco\ 10 ContourToMesh \ 11 ContourToNodes \ 12 ElementConnectivity\ 13 EnumToString\ 14 Exp2Kml \ 15 HoleFiller \ 16 InternalFront\ 17 InterpFromGridToMesh \ 18 InterpFromMeshToMesh2d \ 19 InterpFromMeshToMesh3d \ 20 InterpFromMeshToGrid \ 21 InterpFromMesh2d \ 22 KMLFileRead \ 23 KMLMeshWrite \ 24 KMLOverlay \ 25 Kml2Exp \ 26 Kriging \ 27 Ll2xy \ 28 NodeConnectivity \ 29 MeshPartition\ 30 MeshProfileIntersection\ 31 PointCloudFindNeighbors\ 32 PropagateFlagsFromConnectivity\ 33 Scotch\ 34 Shp2Kml\ 35 StringToEnum\ 36 TriaSearch\ 37 TriMesh\ 38 TriMeshProcessRifts\ 39 Xy2ll 42 40 endif 43 41 #}}} 44 42 #Flags and libraries {{{1 45 if SHAREDLIBS 46 deps = ../../c/libISSMCore.la ../../c/libISSMModules.la 47 else 48 deps = ../../c/libISSMCore.a ../../c/libISSMModules.a 49 endif 50 deps += $(TRIANGLELIB) $(PETSCLIB) $(FLIBS) $(PLAPACKLIB) $(SPOOLESLIB) $(MUMPSLIB) $(SUPERLULIB) $(SPAILIB) $(PROMETHEUSLIB) $(PASTIXLIB) $(SCALAPACKLIB) $(BLACSLIB) $(HYPRELIB) $(MLLIB) $(DAKOTALIB) $(METISLIB) $(CHACOLIB) $(SCOTCHLIB) $(BLASLAPACKLIB) $(MPILIB) $(MATHLIB) $(FORTRANLIB) $(GRAPHICSLIB) $(MULTITHREADINGLIB) $(SHAPELIBLIB) $(GSLLIB) ${MEXLIB} 43 LDADD = ../../c/libISSMCore.a ../../c/libISSMModules.a $(TRIANGLELIB) $(PETSCLIB) $(FLIBS) $(PLAPACKLIB) $(SPOOLESLIB) $(MUMPSLIB) $(SUPERLULIB) $(SPAILIB) $(PROMETHEUSLIB) $(PASTIXLIB) $(SCALAPACKLIB) $(BLACSLIB) $(HYPRELIB) $(MLLIB) $(DAKOTALIB) $(METISLIB) $(CHACOLIB) $(SCOTCHLIB) $(BLASLAPACKLIB) $(MPILIB) $(MATHLIB) $(FORTRANLIB) $(GRAPHICSLIB) $(MULTITHREADINGLIB) $(SHAPELIBLIB) $(GSLLIB) 51 44 52 45 #Triangle library … … 54 47 55 48 #Matlab part 56 AM_LDFLAGS = $(MEXLINK) -shrext ${EXEEXT} -module 57 if VERSION 58 AM_LDFLAGS += 59 else 60 AM_LDFLAGS += -avoid-version 49 AM_LDFLAGS = $(MEXLINK) 50 AM_CXXFLAGS += -D_HAVE_MATLAB_MODULES_ -D_GNU_SOURCE -fPIC -fno-omit-frame-pointer -pthread 51 LDADD += $(MEXLIB) ../../c/libISSMMatlab.a 52 LDADD += ../../c/libISSMCore.a 53 if CIRCULAR_DEPENDENCIES 54 LDADD += $(TRIANGLELIB) $(PETSCLIB) $(FLIBS) $(PLAPACKLIB) $(SPOOLESLIB) $(MUMPSLIB) $(SUPERLULIB) $(SPAILIB) $(PROMETHEUSLIB) $(PASTIXLIB) $(SCALAPACKLIB) $(BLACSLIB) $(HYPRELIB) $(MLLIB) $(DAKOTALIB) $(METISLIB) $(CHACOLIB) $(SCOTCHLIB) $(BLASLAPACKLIB) $(MPILIB) $(MATHLIB) $(FORTRANLIB) $(GRAPHICSLIB) $(MULTITHREADINGLIB) $(SHAPELIBLIB) $(GSLLIB) 61 55 endif 62 if SHAREDLIBS 63 deps += ../../c/libISSMMatlab.la 64 else 65 deps += ../../c/libISSMMatlab.a 66 deps += ../../c/libISSMCore.a 67 AM_LDFLAGS += --no-warnings 68 endif 69 70 AM_CXXFLAGS += -D_HAVE_MATLAB_MODULES_ -D_GNU_SOURCE -fPIC -fno-omit-frame-pointer -pthread 71 72 ###################################################################################### 73 # Circular dependencies may not be necessary here. 74 #deps += ../../c/libISSMCore.a 75 if CIRCULAR_DEPENDENCIES 76 deps += $(TRIANGLELIB) $(PETSCLIB) $(FLIBS) $(PLAPACKLIB) $(SPOOLESLIB) $(MUMPSLIB) $(SUPERLULIB) $(SPAILIB) $(PROMETHEUSLIB) $(PASTIXLIB) $(SCALAPACKLIB) $(BLACSLIB) $(HYPRELIB) $(MLLIB) $(DAKOTALIB) $(METISLIB) $(CHACOLIB) $(SCOTCHLIB) $(BLASLAPACKLIB) $(MPILIB) $(MATHLIB) $(FORTRANLIB) $(GRAPHICSLIB) $(MULTITHREADINGLIB) $(SHAPELIBLIB) $(GSLLIB) 77 endif 78 if SHAREDLIBS 79 deps += 80 else 81 deps += ../../c/libISSMModules.a ../../c/libISSMCore.a 82 endif 83 ###################################################################################### 56 LDADD += ../../c/libISSMModules.a 84 57 85 58 #Optimization flags: 86 59 AM_CXXFLAGS += $(CXXOPTFLAGS) 87 60 #}}} 61 #Bin sources {{{1 62 AverageFilter_SOURCES = ../AverageFilter/AverageFilter.cpp\ 63 ../AverageFilter/AverageFilter.h 88 64 89 #Bin sources {{{1 90 AverageFilter_la_SOURCES = ../AverageFilter/AverageFilter.cpp\ 91 ../AverageFilter/AverageFilter.h 92 AverageFilter_la_LIBADD = ${deps} 65 BamgMesher_SOURCES = ../BamgMesher/BamgMesher.cpp\ 66 ../BamgMesher/BamgMesher.h 93 67 94 BamgMesher_la_SOURCES = ../BamgMesher/BamgMesher.cpp\ 95 ../BamgMesher/BamgMesher.h 96 BamgMesher_la_LIBADD = ${deps} 68 BamgConvertMesh_SOURCES = ../BamgConvertMesh/BamgConvertMesh.cpp\ 69 ../BamgConvertMesh/BamgConvertMesh.h 97 70 98 BamgConvertMesh_la_SOURCES = ../BamgConvertMesh/BamgConvertMesh.cpp\ 99 ../BamgConvertMesh/BamgConvertMesh.h 100 BamgConvertMesh_la_LIBADD = ${deps} 71 BamgTriangulate_SOURCES = ../BamgTriangulate/BamgTriangulate.cpp\ 72 ../BamgTriangulate/BamgTriangulate.h 101 73 102 BamgTriangulate_la_SOURCES = ../BamgTriangulate/BamgTriangulate.cpp\ 103 ../BamgTriangulate/BamgTriangulate.h 104 BamgTriangulate_la_LIBADD = ${deps} 74 Chaco_SOURCES = ../Chaco/Chaco.cpp\ 75 ../Chaco/Chaco.h 105 76 106 Chaco_la_SOURCES = ../Chaco/Chaco.cpp\ 107 ../Chaco/Chaco.h 108 Chaco_la_LIBADD = ${deps} 77 ContourToMesh_SOURCES = ../ContourToMesh/ContourToMesh.cpp\ 78 ../ContourToMesh/ContourToMesh.h 109 79 110 ContourToMesh_la_SOURCES = ../ContourToMesh/ContourToMesh.cpp\ 111 ../ContourToMesh/ContourToMesh.h 112 ContourToMesh_la_LIBADD = ${deps} 80 ContourToNodes_SOURCES = ../ContourToNodes/ContourToNodes.cpp\ 81 ../ContourToNodes/ContourToNodes.h 113 82 114 ContourToNodes_la_SOURCES = ../ContourToNodes/ContourToNodes.cpp\ 115 ../ContourToNodes/ContourToNodes.h 116 ContourToNodes_la_LIBADD = ${deps} 83 ElementConnectivity_SOURCES = ../ElementConnectivity/ElementConnectivity.cpp\ 84 ../ElementConnectivity/ElementConnectivity.h 117 85 118 ElementConnectivity_la_SOURCES = ../ElementConnectivity/ElementConnectivity.cpp\ 119 ../ElementConnectivity/ElementConnectivity.h 120 ElementConnectivity_la_LIBADD = ${deps} 86 EnumToString_SOURCES = ../EnumToString/EnumToString.cpp\ 87 ../EnumToString/EnumToString.h 121 88 122 EnumToString_la_SOURCES = ../EnumToString/EnumToString.cpp\ 123 ../EnumToString/EnumToString.h 124 EnumToString_la_LIBADD = ${deps} 89 StringToEnum_SOURCES = ../StringToEnum/StringToEnum.cpp\ 90 ../StringToEnum/StringToEnum.h 125 91 126 StringToEnum_la_SOURCES = ../StringToEnum/StringToEnum.cpp\ 127 ../StringToEnum/StringToEnum.h 128 StringToEnum_la_LIBADD = ${deps} 92 HoleFiller_SOURCES = ../HoleFiller/HoleFiller.cpp\ 93 ../HoleFiller/HoleFiller.h 129 94 130 HoleFiller_la_SOURCES = ../HoleFiller/HoleFiller.cpp\ 131 ../HoleFiller/HoleFiller.h 132 HoleFiller_la_LIBADD = ${deps} 95 InternalFront_SOURCES = ../InternalFront/InternalFront.cpp\ 96 ../InternalFront/InternalFront.h 133 97 134 InternalFront_la_SOURCES = ../InternalFront/InternalFront.cpp\ 135 ../InternalFront/InternalFront.h 136 InternalFront_la_LIBADD = ${deps} 98 InterpFromGridToMesh_SOURCES = ../InterpFromGridToMesh/InterpFromGridToMesh.cpp\ 99 ../InterpFromGridToMesh/InterpFromGridToMesh.h 137 100 138 InterpFromGridToMesh_la_SOURCES = ../InterpFromGridToMesh/InterpFromGridToMesh.cpp\ 139 ../InterpFromGridToMesh/InterpFromGridToMesh.h 140 InterpFromGridToMesh_la_LIBADD = ${deps} 101 InterpFromMeshToMesh2d_SOURCES = ../InterpFromMeshToMesh2d/InterpFromMeshToMesh2d.cpp\ 102 ../InterpFromMeshToMesh2d/InterpFromMeshToMesh2d.h 141 103 142 InterpFromMeshToMesh2d_la_SOURCES = ../InterpFromMeshToMesh2d/InterpFromMeshToMesh2d.cpp\ 143 ../InterpFromMeshToMesh2d/InterpFromMeshToMesh2d.h 144 InterpFromMeshToMesh2d_la_LIBADD = ${deps} 104 InterpFromMeshToMesh3d_SOURCES = ../InterpFromMeshToMesh3d/InterpFromMeshToMesh3d.cpp\ 105 ../InterpFromMeshToMesh3d/InterpFromMeshToMesh3d.h 145 106 146 InterpFromMeshToMesh3d_la_SOURCES = ../InterpFromMeshToMesh3d/InterpFromMeshToMesh3d.cpp\ 147 ../InterpFromMeshToMesh3d/InterpFromMeshToMesh3d.h 148 InterpFromMeshToMesh3d_la_LIBADD = ${deps} 107 InterpFromMeshToGrid_SOURCES = ../InterpFromMeshToGrid/InterpFromMeshToGrid.cpp\ 108 ../InterpFromMeshToGrid/InterpFromMeshToGrid.h 149 109 150 InterpFromMeshToGrid_la_SOURCES = ../InterpFromMeshToGrid/InterpFromMeshToGrid.cpp\ 151 ../InterpFromMeshToGrid/InterpFromMeshToGrid.h 152 InterpFromMeshToGrid_la_LIBADD = ${deps} 110 InterpFromMesh2d_SOURCES = ../InterpFromMesh2d/InterpFromMesh2d.cpp\ 111 ../InterpFromMesh2d/InterpFromMesh2d.h 153 112 154 InterpFromMesh2d_la_SOURCES = ../InterpFromMesh2d/InterpFromMesh2d.cpp\ 155 ../InterpFromMesh2d/InterpFromMesh2d.h 156 InterpFromMesh2d_la_LIBADD = ${deps} 113 KMLFileRead_SOURCES = ../KMLFileRead/KMLFileRead.cpp\ 114 ../KMLFileRead/KMLFileRead.h 157 115 158 KMLFileRead_la_SOURCES = ../KMLFileRead/KMLFileRead.cpp\ 159 ../KMLFileRead/KMLFileRead.h 160 KMLFileRead_la_LIBADD = ${deps} 116 KMLMeshWrite_SOURCES = ../KMLMeshWrite/KMLMeshWrite.cpp\ 117 ../KMLMeshWrite/KMLMeshWrite.h 161 118 162 KMLMeshWrite_la_SOURCES = ../KMLMeshWrite/KMLMeshWrite.cpp\ 163 ../KMLMeshWrite/KMLMeshWrite.h 164 KMLMeshWrite_la_LIBADD = ${deps} 119 KMLOverlay_SOURCES = ../KMLOverlay/KMLOverlay.cpp\ 120 ../KMLOverlay/KMLOverlay.h 165 121 166 KMLOverlay_la_SOURCES = ../KMLOverlay/KMLOverlay.cpp\ 167 ../KMLOverlay/KMLOverlay.h 168 KMLOverlay_la_LIBADD = ${deps} 122 Xy2ll_SOURCES = ../Xy2ll/Xy2ll.cpp\ 123 ../Xy2ll/Xy2ll.h 169 124 170 Xy2ll_la_SOURCES = ../Xy2ll/Xy2ll.cpp\ 171 ../Xy2ll/Xy2ll.h 172 Xy2ll_la_LIBADD = ${deps} 125 Ll2xy_SOURCES = ../Ll2xy/Ll2xy.cpp\ 126 ../Ll2xy/Ll2xy.h 173 127 174 Ll2xy_la_SOURCES = ../Ll2xy/Ll2xy.cpp\ 175 ../Ll2xy/Ll2xy.h 176 Ll2xy_la_LIBADD = ${deps} 128 Exp2Kml_SOURCES = ../Exp2Kml/Exp2Kml.cpp\ 129 ../Exp2Kml/Exp2Kml.h 177 130 178 Exp2Kml_la_SOURCES = ../Exp2Kml/Exp2Kml.cpp\ 179 ../Exp2Kml/Exp2Kml.h 180 Exp2Kml_la_LIBADD = ${deps} 131 Kml2Exp_SOURCES = ../Kml2Exp/Kml2Exp.cpp\ 132 ../Kml2Exp/Kml2Exp.h 181 133 182 Kml2Exp_la_SOURCES = ../Kml2Exp/Kml2Exp.cpp\ 183 ../Kml2Exp/Kml2Exp.h 184 Kml2Exp_la_LIBADD = ${deps} 134 Kriging_SOURCES = ../Kriging/Kriging.cpp\ 135 ../Kriging/Kriging.h 185 136 186 Kriging_la_SOURCES = ../Kriging/Kriging.cpp\ 187 ../Kriging/Kriging.h 188 Kriging_la_LIBADD = ${deps} 137 MeshPartition_SOURCES = ../MeshPartition/MeshPartition.cpp\ 138 ../MeshPartition/MeshPartition.h 189 139 190 MeshPartition_la_SOURCES = ../MeshPartition/MeshPartition.cpp\ 191 ../MeshPartition/MeshPartition.h 192 MeshPartition_la_LIBADD = ${deps} 140 MeshProfileIntersection_SOURCES = ../MeshProfileIntersection/MeshProfileIntersection.cpp\ 141 ../MeshProfileIntersection/MeshProfileIntersection.h 193 142 194 MeshProfileIntersection_la_SOURCES = ../MeshProfileIntersection/MeshProfileIntersection.cpp\ 195 ../MeshProfileIntersection/MeshProfileIntersection.h 196 MeshProfileIntersection_la_LIBADD = ${deps} 143 NodeConnectivity_SOURCES = ../NodeConnectivity/NodeConnectivity.cpp\ 144 ../NodeConnectivity/NodeConnectivity.h 197 145 198 NodeConnectivity_la_SOURCES = ../NodeConnectivity/NodeConnectivity.cpp\ 199 ../NodeConnectivity/NodeConnectivity.h 200 NodeConnectivity_la_LIBADD = ${deps} 146 PointCloudFindNeighbors_SOURCES = ../PointCloudFindNeighbors/PointCloudFindNeighbors.cpp\ 147 ../PointCloudFindNeighbors/PointCloudFindNeighbors.h 201 148 202 PointCloudFindNeighbors_la_SOURCES = ../PointCloudFindNeighbors/PointCloudFindNeighbors.cpp\ 203 ../PointCloudFindNeighbors/PointCloudFindNeighbors.h 204 PointCloudFindNeighbors_la_LIBADD = ${deps} 149 PropagateFlagsFromConnectivity_SOURCES = ../PropagateFlagsFromConnectivity/PropagateFlagsFromConnectivity.cpp\ 150 ../PropagateFlagsFromConnectivity/PropagateFlagsFromConnectivity.h 205 151 206 PropagateFlagsFromConnectivity_la_SOURCES = ../PropagateFlagsFromConnectivity/PropagateFlagsFromConnectivity.cpp\ 207 ../PropagateFlagsFromConnectivity/PropagateFlagsFromConnectivity.h 208 PropagateFlagsFromConnectivity_la_LIBADD = ${deps} 152 Scotch_SOURCES = ../Scotch/Scotch.cpp\ 153 ../Scotch/Scotch.h 209 154 210 Scotch_la_SOURCES = ../Scotch/Scotch.cpp\ 211 ../Scotch/Scotch.h 212 Scotch_la_LIBADD = ${deps} $(SCOTCHLIB) 155 Shp2Kml_SOURCES = ../Shp2Kml/Shp2Kml.cpp\ 156 ../Shp2Kml/Shp2Kml.h 213 157 214 Shp2Kml_la_SOURCES = ../Shp2Kml/Shp2Kml.cpp\ 215 ../Shp2Kml/Shp2Kml.h 216 Shp2Kml_la_LIBADD = ${deps} 158 TriaSearch_SOURCES = ../TriaSearch/TriaSearch.cpp\ 159 ../TriaSearch/TriaSearch.h 217 160 218 TriaSearch_la_SOURCES = ../TriaSearch/TriaSearch.cpp\ 219 ../TriaSearch/TriaSearch.h 220 TriaSearch_la_LIBADD = ${deps} 161 TriMesh_SOURCES = ../TriMesh/TriMesh.cpp\ 162 ../TriMesh/TriMesh.h 221 163 222 TriMesh_la_SOURCES = ../TriMesh/TriMesh.cpp\ 223 ../TriMesh/TriMesh.h 224 TriMesh_la_LIBADD = ${deps} $(TRIANGLELIB) 225 226 TriMeshProcessRifts_la_SOURCES = ../TriMeshProcessRifts/TriMeshProcessRifts.cpp\ 164 TriMeshProcessRifts_SOURCES = ../TriMeshProcessRifts/TriMeshProcessRifts.cpp\ 227 165 ../TriMeshProcessRifts/TriMeshProcessRifts.h 228 TriMeshProcessRifts_la_LIBADD = ${deps}229 166 #}}}
Note:
See TracChangeset
for help on using the changeset viewer.