Changeset 5103


Ignore:
Timestamp:
08/09/10 15:36:56 (15 years ago)
Author:
Mathieu Morlighem
Message:

moved EnumAsString to EnumToString

Location:
issm/trunk/src
Files:
4 added
4 deleted
87 edited
1 moved

Legend:

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

    r5057 r5103  
    349349                }
    350350                else{
    351                         ISSMERROR("could not recognize enum type: %i (%s)",enum_type,EnumAsString(enum_type));
     351                        ISSMERROR("could not recognize enum type: %i (%s)",enum_type,EnumToString(enum_type));
    352352                }
    353353
     
    466466        /*Carry out a binary search on the sorted_ids: */
    467467        if(!binary_search(&id_offset,eid, sorted_ids,objects.size())){
    468                 ISSMERROR("could not find object with id %i in DataSet %s",eid,EnumAsString(enum_type));
     468                ISSMERROR("could not find object with id %i in DataSet %s",eid,EnumToString(enum_type));
    469469        }
    470470
  • issm/trunk/src/c/Container/Inputs.cpp

    r5017 r5103  
    6363                /*we could not find an input with the correct enum type. No defaults values were provided,
    6464                 * error out: */
    65                 ISSMERROR("could not find input with enum type %i (%s)",enum_type,EnumAsString(enum_type));
     65                ISSMERROR("could not find input with enum type %i (%s)",enum_type,EnumToString(enum_type));
    6666        }
    6767
     
    117117                /*we could not find an input with the correct enum type. No defaults values were provided,
    118118                 * error out: */
    119                 ISSMERROR("could not find input with enum type %i (%s)",enum_type,EnumAsString(enum_type));
     119                ISSMERROR("could not find input with enum type %i (%s)",enum_type,EnumToString(enum_type));
    120120        }
    121121
     
    145145                /*we could not find an input with the correct enum type. No defaults values were provided,
    146146                 * error out: */
    147                 ISSMERROR("could not find input with enum type %i (%s)",enum_type,EnumAsString(enum_type));
     147                ISSMERROR("could not find input with enum type %i (%s)",enum_type,EnumToString(enum_type));
    148148        }
    149149
     
    173173                /*we could not find an input with the correct enum type. No defaults values were provided,
    174174                 * error out: */
    175                 ISSMERROR("could not find input with enum type %i (%s)",enum_type,EnumAsString(enum_type));
     175                ISSMERROR("could not find input with enum type %i (%s)",enum_type,EnumToString(enum_type));
    176176        }
    177177
     
    201201                /*we could not find an input with the correct enum type. No defaults values were provided,
    202202                 * error out: */
    203                 ISSMERROR("could not find input with enum type %i (%s)",enum_type,EnumAsString(enum_type));
     203                ISSMERROR("could not find input with enum type %i (%s)",enum_type,EnumToString(enum_type));
    204204        }
    205205
     
    257257                /*we could not find an input with the correct enum type. No defaults values were provided,
    258258                 * error out: */
    259                 ISSMERROR("could not find input with enum type %i (%s)",enum_type,EnumAsString(enum_type));
     259                ISSMERROR("could not find input with enum type %i (%s)",enum_type,EnumToString(enum_type));
    260260        }
    261261
     
    285285                /*we could not find an input with the correct enum type. No defaults values were provided,
    286286                 * error out: */
    287                 ISSMERROR("could not find input with enum type %i (%s)",enum_type,EnumAsString(enum_type));
     287                ISSMERROR("could not find input with enum type %i (%s)",enum_type,EnumToString(enum_type));
    288288        }
    289289
     
    356356
    357357        /*some checks: */
    358         if(!constrain_input) ISSMERROR(" input %s could not be found!",EnumAsString(constrain_enum));
     358        if(!constrain_input) ISSMERROR(" input %s could not be found!",EnumToString(constrain_enum));
    359359
    360360        /*Apply ContrainMin: */
     
    407407        /*Make a copy of the original input: */
    408408        original=(Input*)this->GetInput(original_enum);
    409         if(!original)ISSMERROR("could not find input with enum: %s",EnumAsString(original_enum));
     409        if(!original)ISSMERROR("could not find input with enum: %s",EnumToString(original_enum));
    410410        copy=(Input*)original->copy();
    411411
     
    454454
    455455        /*some checks: */
    456         if(!xinput) ISSMERROR(" input %s could not be found!",EnumAsString(XEnum));
    457         if(!yinput) ISSMERROR(" input %s could not be found!",EnumAsString(YEnum));
     456        if(!xinput) ISSMERROR(" input %s could not be found!",EnumToString(XEnum));
     457        if(!yinput) ISSMERROR(" input %s could not be found!",EnumToString(YEnum));
    458458
    459459        /*Apply AXPY: */
  • issm/trunk/src/c/EnumDefinitions/EnumDefinitions.h

    r5065 r5103  
    351351int EnumIsLoad(int en);
    352352int EnumIsMaterial(int en);
    353 char* EnumAsString(int enum_type);
    354 int StringAsEnum(char* string);
    355 char* EnumAsModelField(int en);
     353char* EnumToString(int enum_type);
     354int StringToEnum(char* string);
     355char* EnumToModelField(int en);
    356356
    357357#endif
  • issm/trunk/src/c/EnumDefinitions/EnumToModelField.cpp

    r5100 r5103  
    1 /*\file EnumAsModelField.cpp:
     1/*\file EnumToModelField.cpp:
    22* \brief: output string associated with enum, that corresponds  to a model field
    33* for example: ThicknessEnum corresponds to model field thickness
     
    99#include "./EnumDefinitions.h"
    1010
    11 char* EnumAsModelField(int en){
     11char* EnumToModelField(int en){
    1212
    1313        switch(en){
  • issm/trunk/src/c/EnumDefinitions/README

    r3677 r5103  
    11
    22DO NOT MODIFY the following files:
    3 - StringAsEnum.cpp
    4 - EnumAsString.cpp
     3- StringToEnum.cpp
     4- EnumToString.cpp
    55- src/m/enum/*
    66all these files are automatically synchronized with EnumDefinitions.h
     
    1414
    1515SYNCHRONIZESTRINGS
    16 This scrpit synchronizes StringAsEnum.cpp and EnumAsString.cpp according to EnumDefinitions.h
     16This scrpit synchronizes StringToEnum.cpp and EnumToString.cpp according to EnumDefinitions.h
  • issm/trunk/src/c/EnumDefinitions/SynchronizeMatlabEnum.sh

    r3991 r5103  
    99echo "Synchronizing Matlab's Enums..."
    1010#Get all lines of EnumDefinitions2.h which hold Enum | remove all comas | add line number in the first column > put everything in file temp
    11 cat EnumDefinitions.h | grep -e "[0-9]Enum" -e "[Aa-Zz]Enum" | grep -v StringAsEnum | sed -e "s/,//g" | awk '{ printf "%s %s\n", NR, $0 }' > temp
     11cat EnumDefinitions.h | grep -e "[0-9]Enum" -e "[Aa-Zz]Enum" | grep -v StringToEnum | sed -e "s/,//g" | awk '{ printf "%s %s\n", NR, $0 }' > temp
    1212
    13 #Build header of EnumAsString.m {{{1
    14 cat <<END > EnumAsString.m
    15 function string=EnumAsString(enum)
     13#Build header of EnumToString.m {{{1
     14cat <<END > EnumToString.m
     15function string=EnumToString(enum)
    1616%ENUMASSTRING - output string associated with enum
    1717%
     
    2121%
    2222%   Usage:
    23 %      string=EnumAsString(enum)
     23%      string=EnumToString(enum)
    2424
    2525switch enum,
     
    2727END
    2828#}}}
    29 #Build header of StringAsEnum.m {{{1
    30 cat <<END > StringAsEnum.m
    31 function enum=StringAsEnum(name)
     29#Build header of StringToEnum.m {{{1
     30cat <<END > StringToEnum.m
     31function enum=StringToEnum(name)
    3232%STRINGASENUM - output enum associated with string
    3333%
     
    3737%
    3838%   Usage:
    39 %      enum=StringAsEnum(name)
     39%      enum=StringToEnum(name)
    4040
    4141END
     
    8686END
    8787#}}}
    88 #Add case to EnumAsString.m {{{
    89 cat <<END >> EnumAsString.m
     88#Add case to EnumToString.m {{{
     89cat <<END >> EnumToString.m
    9090        case $NAMEENUM(), string='$NAME'; return
    9191END
    9292#}}}
    93         #Add case to StringAsEnum.m {{{
     93        #Add case to StringToEnum.m {{{
    9494        if [ $i -eq 1 ]
    9595        then
    96                 cat <<END >> StringAsEnum.m
     96                cat <<END >> StringToEnum.m
    9797if (strcmpi(name,'$NAME')), enum=$NAMEENUM(); return
    9898END
    9999        else
    100                 cat <<END >> StringAsEnum.m
     100                cat <<END >> StringToEnum.m
    101101elseif (strcmpi(name,'$NAME')), enum=$NAMEENUM(); return
    102102END
     
    106106done
    107107
    108 #Add footer of of EnumAsString.m{{{1
    109 cat <<END >> EnumAsString.m
     108#Add footer of of EnumToString.m{{{1
     109cat <<END >> EnumToString.m
    110110        otherwise, error(['Enum ' num2str(enum)  ' not found']);
    111111
     
    113113END
    114114#}}}
    115 #Add footer of of StringAsEnum.m{{{1
    116 cat <<END >> StringAsEnum.m
     115#Add footer of of StringToEnum.m{{{1
     116cat <<END >> StringToEnum.m
    117117else error(['Enum ' name  ' not found']);
    118118
     
    122122
    123123#clean up{{{
    124 mv StringAsEnum.m         $ISSM_DIR/src/m/enum/
    125 mv EnumAsString.m         $ISSM_DIR/src/m/enum/
     124mv StringToEnum.m         $ISSM_DIR/src/m/enum/
     125mv EnumToString.m         $ISSM_DIR/src/m/enum/
    126126rm temp
    127127#}}}
  • issm/trunk/src/c/EnumDefinitions/SynchronizeStrings.sh

    r4398 r5103  
    11#!/bin/bash
    2 #Synchronize EnumAsString.cpp and StringAsEnum.cpp
     2#Synchronize EnumToString.cpp and StringToEnum.cpp
    33
    44#first remove existing files
    5 rm EnumAsString.cpp StringAsEnum.cpp
     5rm EnumToString.cpp StringToEnum.cpp
    66
    7 echo "Synchronizing EnumAsString..."
     7echo "Synchronizing EnumToString..."
    88#Get all lines of EnumDefinitions2.h which hold Enum | remove all comas | add line number in the first column > put everything in file temp
    9 cat EnumDefinitions.h | grep -e "[0-9]Enum" -e "[Aa-Zz]Enum" | grep -v StringAsEnum | sed -e "s/,//g" | awk '{ printf "%s %s\n", NR, $0 }' > temp
     9cat EnumDefinitions.h | grep -e "[0-9]Enum" -e "[Aa-Zz]Enum" | grep -v StringToEnum | sed -e "s/,//g" | awk '{ printf "%s %s\n", NR, $0 }' > temp
    1010
    11 #Build header of EnumAsString.cpp {{{1
    12 cat <<END > EnumAsString.cpp
     11#Build header of EnumToString.cpp {{{1
     12cat <<END > EnumToString.cpp
    1313/*
    14 * \file EnumAsString.cpp:
     14* \file EnumToString.cpp:
    1515* \brief: output string associated with enum
    1616*
     
    2424#include "./EnumDefinitions.h"
    2525
    26 char* EnumAsString(int en){
     26char* EnumToString(int en){
    2727
    2828        switch(en){
     
    3030END
    3131#}}}
    32 #Build header of StringAsEnum.cpp {{{1
    33 cat <<END > StringAsEnum.cpp
     32#Build header of StringToEnum.cpp {{{1
     33cat <<END > StringToEnum.cpp
    3434/*
    35 * \file StringAsEnum.cpp:
     35* \file StringToEnum.cpp:
    3636* \brief: output enum associated with string
    3737*
     
    4545#include "./EnumDefinitions.h"
    4646
    47 int  StringAsEnum(char* name){
     47int  StringToEnum(char* name){
    4848
    4949END
     
    7979        fi
    8080        #}}}
    81         #Add case to EnumAsString.cpp {{{
    82         cat <<END >> EnumAsString.cpp
     81        #Add case to EnumToString.cpp {{{
     82        cat <<END >> EnumToString.cpp
    8383                case $NAMEENUM : return "$NAME";
    8484END
    8585#}}}
    86         #Add case to StringAsEnum.cpp {{{
     86        #Add case to StringToEnum.cpp {{{
    8787        if [ $i -eq 1 ]
    8888        then
    89                 cat <<END >> StringAsEnum.cpp
     89                cat <<END >> StringToEnum.cpp
    9090        if (strcmp(name,"$NAME")==0) return $NAMEENUM;
    9191END
    9292        else
    93                 cat <<END >> StringAsEnum.cpp
     93                cat <<END >> StringToEnum.cpp
    9494        else if (strcmp(name,"$NAME")==0) return $NAMEENUM;
    9595END
     
    9999done
    100100
    101 #Add footer of of EnumAsString.cpp{{{1
    102 cat <<END >> EnumAsString.cpp
     101#Add footer of of EnumToString.cpp{{{1
     102cat <<END >> EnumToString.cpp
    103103                default : return "unknown";
    104104
     
    107107END
    108108#}}}
    109 #Add footer of of StringAsEnum.cpp{{{1
    110 cat <<END >> StringAsEnum.cpp
     109#Add footer of of StringToEnum.cpp{{{1
     110cat <<END >> StringToEnum.cpp
    111111        else ISSMERROR("Enum %s not found",name);
    112112
  • issm/trunk/src/c/Makefile.am

    r5095 r5103  
    328328                                        ./EnumDefinitions/EnumDefinitions.h\
    329329                                        ./EnumDefinitions/EnumDefinitions.cpp\
    330                                         ./EnumDefinitions/EnumAsString.cpp\
    331                                         ./EnumDefinitions/StringAsEnum.cpp\
    332                                         ./EnumDefinitions/EnumAsModelField.cpp\
     330                                        ./EnumDefinitions/EnumToString.cpp\
     331                                        ./EnumDefinitions/StringToEnum.cpp\
     332                                        ./EnumDefinitions/EnumToModelField.cpp\
    333333                                        ./modules/AddExternalResultx/AddExternalResultx.h\
    334334                                        ./modules/AddExternalResultx/AddExternalResultx.cpp\
     
    860860                                        ./EnumDefinitions/EnumDefinitions.h\
    861861                                        ./EnumDefinitions/EnumDefinitions.cpp\
    862                                         ./EnumDefinitions/EnumAsString.cpp\
    863                                         ./EnumDefinitions/StringAsEnum.cpp\
    864                                         ./EnumDefinitions/EnumAsModelField.cpp\
     862                                        ./EnumDefinitions/EnumToString.cpp\
     863                                        ./EnumDefinitions/StringToEnum.cpp\
     864                                        ./EnumDefinitions/EnumToModelField.cpp\
    865865                                        ./modules/AddExternalResultx/AddExternalResultx.h\
    866866                                        ./modules/AddExternalResultx/AddExternalResultx.cpp\
  • issm/trunk/src/c/io/FetchParams.cpp

    r4852 r5103  
    5353                /*Get i'th field: */
    5454                name=(char*)mxGetFieldNameByNumber(dataref,count);
    55                 enum_type=StringAsEnum(name);
     55                enum_type=StringToEnum(name);
    5656                pfield=mxGetFieldByNumber(dataref,0,count);
    5757                ISSMASSERT(pfield);
  • issm/trunk/src/c/modules/GetSolutionFromInputsx/GetSolutionFromInputsx.cpp

    r4573 r5103  
    2626        /*Get size of vector: */
    2727        gsize=nodes->NumberOfDofs(configuration_type);
    28         if (gsize==0) ISSMERROR("Allocating a Vec of size 0 as gsize=0 for configuration: %s",EnumAsString(configuration_type));
     28        if (gsize==0) ISSMERROR("Allocating a Vec of size 0 as gsize=0 for configuration: %s",EnumToString(configuration_type));
    2929       
    3030        /*Initialize solution: */
  • issm/trunk/src/c/modules/GetVectorFromInputsx/GetVectorFromInputsx.cpp

    r4573 r5103  
    2323                }
    2424        }
    25         else ISSMERROR("%s%s%s"," vector type: ",EnumAsString(TypeEnum)," not supported yet!");
     25        else ISSMERROR("%s%s%s"," vector type: ",EnumToString(TypeEnum)," not supported yet!");
    2626
    2727        VecAssemblyBegin(vector);
  • issm/trunk/src/c/modules/InputUpdateFromDakotax/InputUpdateFromDakotax.cpp

    r4569 r5103  
    5454                       
    5555                        /*Ok, variable is not distributed, just update inputs using the variable: */
    56                         InputUpdateFromConstantx( elements,nodes, vertices,loads, materials,  parameters, variables[i],StringAsEnum(descriptor));
     56                        InputUpdateFromConstantx( elements,nodes, vertices,loads, materials,  parameters, variables[i],StringToEnum(descriptor));
    5757
    5858                }
     
    6969               
    7070                        /*Now, pick up the parameter corresponding to root: */
    71                         if(!parameters->FindParam(&parameter_serial,NULL,StringAsEnum(root))){
     71                        if(!parameters->FindParam(&parameter_serial,NULL,StringToEnum(root))){
    7272                                ISSMERROR("%s%s"," could not find Qmu parameter: ",root);
    7373                        }
     
    8989                                        PetscSynchronizedFlush(MPI_COMM_WORLD);
    9090                                }
    91                                 PetscSynchronizedPrintf(MPI_COMM_WORLD," enum: %i\n",StringAsEnum(root));
     91                                PetscSynchronizedPrintf(MPI_COMM_WORLD," enum: %i\n",StringToEnum(root));
    9292                                PetscSynchronizedFlush(MPI_COMM_WORLD);
    9393                        #endif
     
    9595
    9696                        /*Update inputs using the parameter vector: */
    97                         InputUpdateFromVectorx( elements,nodes, vertices,loads, materials,  parameters, parameter, StringAsEnum(root), VertexEnum);
     97                        InputUpdateFromVectorx( elements,nodes, vertices,loads, materials,  parameters, parameter, StringToEnum(root), VertexEnum);
    9898
    9999                        /*increment i to skip the distributed values just collected: */
  • issm/trunk/src/c/modules/ModelProcessorx/Control/CreateParametersControl.cpp

    r5043 r5103  
    4343                }
    4444                else{
    45                         ISSMERROR("Control for solution of type %s not supported yet",EnumAsString(solution_type));
     45                        ISSMERROR("Control for solution of type %s not supported yet",EnumToString(solution_type));
    4646                }
    4747                parameters->AddObject(new IntParam(NStepsEnum,iomodel->nsteps));
  • issm/trunk/src/c/modules/ModelProcessorx/CreateDataSets.cpp

    r4765 r5103  
    106106                        break;
    107107                default:
    108                         ISSMERROR("%s%s%s"," analysis_type: ",EnumAsString(analysis_type)," not supported yet!");
     108                        ISSMERROR("%s%s%s"," analysis_type: ",EnumToString(analysis_type)," not supported yet!");
    109109        }
    110110
  • issm/trunk/src/c/modules/ModelProcessorx/ModelProcessorx.cpp

    r4295 r5103  
    4141                analysis_type=analysis_type_list[i];
    4242       
    43                 _printf_("   create datasets for analysis %s\n",EnumAsString(analysis_type));
     43                _printf_("   create datasets for analysis %s\n",EnumToString(analysis_type));
    4444                CreateDataSets(&elements,&nodes,&vertices,&materials,&constraints,&loads,&parameters,iomodel,IOMODEL,solution_type,analysis_type,nummodels,i);
    4545        }
  • issm/trunk/src/c/modules/ModelProcessorx/Qmu/CreateParametersQmu.cpp

    r5043 r5103  
    156156                                ){
    157157
    158                                 IoModelFetchData(&dakota_parameter,NULL,NULL,iomodel_handle,EnumAsModelField(StringAsEnum(descriptor)));
    159                                 parameters->AddObject(new DoubleVecParam(StringAsEnum(descriptor),dakota_parameter,iomodel->numberofvertices));
     158                                IoModelFetchData(&dakota_parameter,NULL,NULL,iomodel_handle,EnumToModelField(StringToEnum(descriptor)));
     159                                parameters->AddObject(new DoubleVecParam(StringToEnum(descriptor),dakota_parameter,iomodel->numberofvertices));
    160160                                xfree((void**)&dakota_parameter);
    161161                        }
  • issm/trunk/src/c/modules/OutputResultsx/MatlabWriteResults.cpp

    r4439 r5103  
    7575        for(i=0;i<maxfields;i++){
    7676                if (enums[i]>0){
    77                         fnames[count]=EnumAsString(enums[i]);
     77                        fnames[count]=EnumToString(enums[i]);
    7878                        count++;
    7979                }
  • issm/trunk/src/c/modules/OutputResultsx/OutputResultsx.cpp

    r4873 r5103  
    3838         *therefore, we need to include the solutiontype into the filename: */
    3939        parameters->FindParam(&solutiontype,SolutionTypeEnum);
    40         results->AddObject(new StringExternalResult(results->Size()+1,SolutionTypeEnum,EnumAsString(solutiontype),1,0));
     40        results->AddObject(new StringExternalResult(results->Size()+1,SolutionTypeEnum,EnumToString(solutiontype),1,0));
    4141        #endif
    4242
  • issm/trunk/src/c/modules/Qmux/SpawnCoreParallel.cpp

    r4548 r5103  
    6464
    6565        /*Run the core solution sequence: */
    66         if(verbose)_printf_("%s%s%s\n","Starting ",EnumAsString(solution_type)," core:");
     66        if(verbose)_printf_("%s%s%s\n","Starting ",EnumToString(solution_type)," core:");
    6767        SolutionConfiguration(NULL,NULL,&solutioncore,solution_type);
    6868        solutioncore(femmodel);
  • issm/trunk/src/c/objects/Constraints/Spc.cpp

    r4546 r5103  
    5050        printf("   dof: %i\n",dof);
    5151        printf("   value: %g\n",value);
    52         printf("   analysis_type: %s\n",EnumAsString(analysis_type));
     52        printf("   analysis_type: %s\n",EnumToString(analysis_type));
    5353        return;
    5454}
     
    6262        printf("   dof: %i\n",dof);
    6363        printf("   value: %g\n",value);
    64         printf("   analysis_type: %s\n",EnumAsString(analysis_type));
     64        printf("   analysis_type: %s\n",EnumToString(analysis_type));
    6565        return;
    6666}               
  • issm/trunk/src/c/objects/ElementResults/DoubleElementResult.cpp

    r4927 r5103  
    4949
    5050        printf("DoubleElementResult:\n");
    51         printf("   enum: %i (%s)\n",this->enum_type,EnumAsString(this->enum_type));
     51        printf("   enum: %i (%s)\n",this->enum_type,EnumToString(this->enum_type));
    5252        printf("   value: %g\n",this->value);
    5353        printf("   step: %i\n",this->step);
  • issm/trunk/src/c/objects/ElementResults/PentaVertexElementResult.cpp

    r4927 r5103  
    5151
    5252        printf("PentaVertexElementResult:\n");
    53         printf("   enum: %i (%s)\n",this->enum_type,EnumAsString(this->enum_type));
     53        printf("   enum: %i (%s)\n",this->enum_type,EnumToString(this->enum_type));
    5454        printf("   values: [%g %g %g %g %g %g]\n",this->values[0],this->values[1],this->values[2],this->values[3],this->values[4],this->values[5]);
    5555        printf("   step: %i\n",this->step);
  • issm/trunk/src/c/objects/ElementResults/TriaVertexElementResult.cpp

    r4927 r5103  
    5151               
    5252        printf("TriaVertexElementResult:\n");
    53         printf("   enum: %i (%s)\n",this->enum_type,EnumAsString(this->enum_type));
     53        printf("   enum: %i (%s)\n",this->enum_type,EnumToString(this->enum_type));
    5454        printf("   values: [%g %g %g]\n",this->values[0],this->values[1],this->values[2]);
    5555        printf("   step: %i\n",this->step);
  • issm/trunk/src/c/objects/Elements/Penta.cpp

    r5096 r5103  
    404404        }
    405405        else{
    406                 ISSMERROR("analysis %i (%s) not supported yet",analysis_type,EnumAsString(analysis_type));
     406                ISSMERROR("analysis %i (%s) not supported yet",analysis_type,EnumToString(analysis_type));
    407407        }
    408408}
     
    432432                default:
    433433
    434                         ISSMERROR("type %i (%s) not implemented yet",type,EnumAsString(type));
     434                        ISSMERROR("type %i (%s) not implemented yet",type,EnumToString(type));
    435435        }
    436436}
     
    781781                CreateKMatrixMelting( Kgg);
    782782        }
    783         else ISSMERROR("analysis %i (%s) not supported yet",analysis_type,EnumAsString(analysis_type));
     783        else ISSMERROR("analysis %i (%s) not supported yet",analysis_type,EnumToString(analysis_type));
    784784
    785785}
     
    833833                CreatePVectorMelting( pg);
    834834        }
    835         else ISSMERROR("analysis %i (%s) not supported yet",analysis_type,EnumAsString(analysis_type));
     835        else ISSMERROR("analysis %i (%s) not supported yet",analysis_type,EnumToString(analysis_type));
    836836
    837837}
     
    921921        }
    922922        else{
    923                 ISSMERROR("analysis: %i (%s) not supported yet",analysis_type,EnumAsString(analysis_type));
     923                ISSMERROR("analysis: %i (%s) not supported yet",analysis_type,EnumToString(analysis_type));
    924924        }
    925925}
     
    971971                GradjB(gradient);
    972972        }
    973         else ISSMERROR("control type %s not supported yet: ",EnumAsString(control_type));
     973        else ISSMERROR("control type %s not supported yet: ",EnumToString(control_type));
    974974}
    975975/*}}}*/
     
    988988                new_inputs[i]=(Input*)this->inputs->GetInput(enums[2*i+0]);
    989989                old_inputs[i]=(Input*)this->inputs->GetInput(enums[2*i+1]);
    990                 if(!new_inputs[i])ISSMERROR("%s%s"," could not find input with enum ",EnumAsString(enums[2*i+0]));
    991                 if(!old_inputs[i])ISSMERROR("%s%s"," could not find input with enum ",EnumAsString(enums[2*i+0]));
     990                if(!new_inputs[i])ISSMERROR("%s%s"," could not find input with enum ",EnumToString(enums[2*i+0]));
     991                if(!old_inputs[i])ISSMERROR("%s%s"," could not find input with enum ",EnumToString(enums[2*i+0]));
    992992        }
    993993
     
    10691069        }
    10701070        else{
    1071                 ISSMERROR("control type %s not implemented yet",EnumAsString(control_type));
     1071                ISSMERROR("control type %s not implemented yet",EnumToString(control_type));
    10721072        }
    10731073}
     
    11131113                 original_input=(Input*)penta->matice->inputs->GetInput(enum_type);
    11141114                else
    1115                  ISSMERROR("object %s not supported yet",EnumAsString(object_enum));
    1116                 if(!original_input) ISSMERROR("could not find input with enum %s",EnumAsString(enum_type));
     1115                 ISSMERROR("object %s not supported yet",EnumToString(object_enum));
     1116                if(!original_input) ISSMERROR("could not find input with enum %s",EnumToString(enum_type));
    11171117
    11181118                /*If first time, initialize total_integrated_input*/
     
    11231123                         total_integrated_input=new DoubleInput(average_enum_type,0.0);
    11241124                        else
    1125                          ISSMERROR("object %s not supported yet",EnumAsString(original_input->Enum()));
     1125                         ISSMERROR("object %s not supported yet",EnumToString(original_input->Enum()));
    11261126                }
    11271127
     
    11711171         this->matice->inputs->AddInput((Input*)depth_averaged_input);
    11721172        else
    1173          ISSMERROR("object %s not supported yet",EnumAsString(object_enum));
     1173         ISSMERROR("object %s not supported yet",EnumToString(object_enum));
    11741174}
    11751175/*}}}*/
     
    11891189        /*Make a copy of the original input: */
    11901190        input=(Input*)this->inputs->GetInput(enum_type);
    1191         if(!input)ISSMERROR(" could not find old input with enum: %s",EnumAsString(enum_type));
     1191        if(!input)ISSMERROR(" could not find old input with enum: %s",EnumToString(enum_type));
    11921192
    11931193        /*Scale: */
     
    12091209                input=this->inputs->GetInput(enum_type);
    12101210        }
    1211         if (!input) ISSMERROR("Input %s not found in tria->inputs",EnumAsString(enum_type));
     1211        if (!input) ISSMERROR("Input %s not found in tria->inputs",EnumToString(enum_type));
    12121212
    12131213        /*If we don't find it, no big deal, just don't do the transfer. Otherwise, build a new Result
     
    48204820                delete tria->matice; delete tria;
    48214821        }
    4822         else ISSMERROR("analysis %s not supported yet",EnumAsString(analysis_type));
     4822        else ISSMERROR("analysis %s not supported yet",EnumToString(analysis_type));
    48234823
    48244824
     
    48494849                 original_input=(Input*)matice->inputs->GetInput(enum_type);
    48504850                else
    4851                  ISSMERROR("object of type %s not supported yet",EnumAsString(object_type));
    4852                 if(!original_input) ISSMERROR("%s%s"," could not find input with enum:",EnumAsString(enum_type));
     4851                 ISSMERROR("object of type %s not supported yet",EnumToString(object_type));
     4852                if(!original_input) ISSMERROR("%s%s"," could not find input with enum:",EnumToString(enum_type));
    48534853                original_input->Extrude();
    48544854
     
    48724872                         penta->matice->inputs->AddInput((Input*)copy);
    48734873                        else
    4874                          ISSMERROR("object of type %s not supported yet",EnumAsString(object_type));
     4874                         ISSMERROR("object of type %s not supported yet",EnumToString(object_type));
    48754875
    48764876                        /*Stop if we have reached the surface*/
     
    49674967                vz_input=inputs->GetInput(VzEnum);
    49684968                if (vz_input){
    4969                         if (vz_input->Enum()!=PentaVertexInputEnum) ISSMERROR("Cannot compute Vel as Vz is of type %s",EnumAsString(vz_input->Enum()));
     4969                        if (vz_input->Enum()!=PentaVertexInputEnum) ISSMERROR("Cannot compute Vel as Vz is of type %s",EnumToString(vz_input->Enum()));
    49704970                        vz_input->GetValuesPtr(&vz_ptr,&dummy);
    49714971                        for(i=0;i<numvertices;i++) vz[i]=vz_ptr[i];
     
    50485048        if (vz_input){
    50495049                if (vz_input->Enum()!=PentaVertexInputEnum){
    5050                         ISSMERROR("Cannot compute Vel as Vz is of type %s",EnumAsString(vz_input->Enum()));
     5050                        ISSMERROR("Cannot compute Vel as Vz is of type %s",EnumToString(vz_input->Enum()));
    50515051                }
    50525052                vz_input->GetValuesPtr(&vz_ptr,&dummy);
     
    51315131        if (vz_input){
    51325132                if (vz_input->Enum()!=PentaVertexInputEnum){
    5133                         ISSMERROR("Cannot compute Vel as Vz is of type %s",EnumAsString(vz_input->Enum()));
     5133                        ISSMERROR("Cannot compute Vel as Vz is of type %s",EnumToString(vz_input->Enum()));
    51345134                }
    51355135                vz_input->GetValuesPtr(&vz_ptr,&dummy);
     
    52145214        vx_input=inputs->GetInput(VxEnum);
    52155215        if (vx_input){
    5216                 if (vx_input->Enum()!=PentaVertexInputEnum) ISSMERROR("Cannot compute Vel as Vx is of type %s",EnumAsString(vx_input->Enum()));
     5216                if (vx_input->Enum()!=PentaVertexInputEnum) ISSMERROR("Cannot compute Vel as Vx is of type %s",EnumToString(vx_input->Enum()));
    52175217                vx_input->GetValuesPtr(&vx_ptr,&dummy);
    52185218                for(i=0;i<numvertices;i++) vx[i]=vx_ptr[i];
     
    52225222        vy_input=inputs->GetInput(VyEnum);
    52235223        if (vy_input){
    5224                 if (vy_input->Enum()!=PentaVertexInputEnum) ISSMERROR("Cannot compute Vel as Vy is of type %s",EnumAsString(vy_input->Enum()));
     5224                if (vy_input->Enum()!=PentaVertexInputEnum) ISSMERROR("Cannot compute Vel as Vy is of type %s",EnumToString(vy_input->Enum()));
    52255225                vy_input->GetValuesPtr(&vy_ptr,&dummy);
    52265226                for(i=0;i<numvertices;i++) vy[i]=vy_ptr[i];
  • issm/trunk/src/c/objects/Elements/Tria.cpp

    r5096 r5103  
    393393        }
    394394        else{
    395                 ISSMERROR("analysis %i (%s) not supported yet",analysis_type,EnumAsString(analysis_type));
     395                ISSMERROR("analysis %i (%s) not supported yet",analysis_type,EnumToString(analysis_type));
    396396        }
    397397}
     
    426426                default:
    427427
    428                         ISSMERROR("type %i (%s) not implemented yet",type,EnumAsString(type));
     428                        ISSMERROR("type %i (%s) not implemented yet",type,EnumToString(type));
    429429        }
    430430}
     
    683683                 CreateKMatrixPrognostic_DG( Kgg);
    684684                else
    685                  ISSMERROR("Element type %s not supported yet",EnumAsString(GetElementType()));
     685                 ISSMERROR("Element type %s not supported yet",EnumToString(GetElementType()));
    686686        }
    687687        else if (analysis_type==BalancedthicknessAnalysisEnum){
     
    691691                 CreateKMatrixBalancedthickness_DG( Kgg);
    692692                else
    693                  ISSMERROR("Element type %s not supported yet",EnumAsString(GetElementType()));
     693                 ISSMERROR("Element type %s not supported yet",EnumToString(GetElementType()));
    694694        }
    695695        else if (analysis_type==BalancedvelocitiesAnalysisEnum){
     
    697697        }
    698698        else{
    699                 ISSMERROR("analysis %i (%s) not supported yet",analysis_type,EnumAsString(analysis_type));
     699                ISSMERROR("analysis %i (%s) not supported yet",analysis_type,EnumToString(analysis_type));
    700700        }
    701701
     
    734734                CreatePVectorPrognostic_DG( pg);
    735735                else
    736                  ISSMERROR("Element type %s not supported yet",EnumAsString(GetElementType()));
     736                 ISSMERROR("Element type %s not supported yet",EnumToString(GetElementType()));
    737737        }
    738738        else if (analysis_type==BalancedthicknessAnalysisEnum){
     
    742742                 CreatePVectorBalancedthickness_DG( pg);
    743743                else
    744                  ISSMERROR("Element type %s not supported yet",EnumAsString(GetElementType()));
     744                 ISSMERROR("Element type %s not supported yet",EnumToString(GetElementType()));
    745745        }
    746746        else if (analysis_type==BalancedvelocitiesAnalysisEnum){
     
    748748        }
    749749        else{
    750                 ISSMERROR("analysis %i (%s) not supported yet",analysis_type,EnumAsString(analysis_type));
     750                ISSMERROR("analysis %i (%s) not supported yet",analysis_type,EnumToString(analysis_type));
    751751        }
    752752
     
    827827         GetSolutionFromInputsDiagnosticHutter(solution);
    828828        else
    829          ISSMERROR("analysis: %s not supported yet",EnumAsString(analysis_type));
     829         ISSMERROR("analysis: %s not supported yet",EnumToString(analysis_type));
    830830
    831831}
     
    12661266        }
    12671267        else{
    1268                 ISSMERROR("control type %s not implemented yet",EnumAsString(control_type));
     1268                ISSMERROR("control type %s not implemented yet",EnumToString(control_type));
    12691269        }
    12701270
     
    12851285                new_inputs[i]=(Input*)this->inputs->GetInput(enums[2*i+0]);
    12861286                old_inputs[i]=(Input*)this->inputs->GetInput(enums[2*i+1]);
    1287                 if(!new_inputs[i])ISSMERROR("%s%s"," could not find input with enum ",EnumAsString(enums[2*i+0]));
    1288                 if(!old_inputs[i])ISSMERROR("%s%s"," could not find input with enum ",EnumAsString(enums[2*i+0]));
     1287                if(!new_inputs[i])ISSMERROR("%s%s"," could not find input with enum ",EnumToString(enums[2*i+0]));
     1288                if(!old_inputs[i])ISSMERROR("%s%s"," could not find input with enum ",EnumToString(enums[2*i+0]));
    12891289        }
    12901290
     
    13171317         oldinput=(Input*)this->matice->inputs->GetInput(enum_type);
    13181318        else
    1319          ISSMERROR("object %s not supported yet",EnumAsString(object_enum));
    1320         if(!oldinput)ISSMERROR("%s%s"," could not find old input with enum: ",EnumAsString(enum_type));
     1319         ISSMERROR("object %s not supported yet",EnumToString(object_enum));
     1320        if(!oldinput)ISSMERROR("%s%s"," could not find old input with enum: ",EnumToString(enum_type));
    13211321        newinput=(Input*)oldinput->copy();
    13221322
     
    13301330         this->matice->inputs->AddInput((Input*)newinput);
    13311331        else
    1332          ISSMERROR("object %s not supported yet",EnumAsString(object_enum));
     1332         ISSMERROR("object %s not supported yet",EnumToString(object_enum));
    13331333
    13341334}
     
    13491349        /*Make a copy of the original input: */
    13501350        input=(Input*)this->inputs->GetInput(enum_type);
    1351         if(!input)ISSMERROR(" could not find old input with enum: %s",EnumAsString(enum_type));
     1351        if(!input)ISSMERROR(" could not find old input with enum: %s",EnumToString(enum_type));
    13521352
    13531353        /*Scale: */
     
    13691369                input=this->inputs->GetInput(enum_type);
    13701370        }
    1371         if (!input) ISSMERROR("Input %s not found in tria->inputs",EnumAsString(enum_type));
     1371        if (!input) ISSMERROR("Input %s not found in tria->inputs",EnumToString(enum_type));
    13721372
    13731373        /*If we don't find it, no big deal, just don't do the transfer. Otherwise, build a new Result
     
    59285928        if (vz_input){
    59295929                if (vz_input->Enum()!=TriaVertexInputEnum){
    5930                         ISSMERROR("Cannot compute Vel as Vz is of type %s",EnumAsString(vz_input->Enum()));
     5930                        ISSMERROR("Cannot compute Vel as Vz is of type %s",EnumToString(vz_input->Enum()));
    59315931                }
    59325932                vz_input->GetValuesPtr(&vz_ptr,&dummy);
     
    60076007        if (vz_input){
    60086008                if (vz_input->Enum()!=TriaVertexInputEnum){
    6009                         ISSMERROR("Cannot compute Vel as Vz is of type %s",EnumAsString(vz_input->Enum()));
     6009                        ISSMERROR("Cannot compute Vel as Vz is of type %s",EnumToString(vz_input->Enum()));
    60106010                }
    60116011                vz_input->GetValuesPtr(&vz_ptr,&dummy);
  • issm/trunk/src/c/objects/ExternalResults/BoolExternalResult.cpp

    r4546 r5103  
    5353        printf("BoolExternalResult:\n");
    5454        printf("   id: %i\n",this->id);
    55         printf("   enum:  %i (%s)\n",this->enum_type,EnumAsString(this->enum_type));
     55        printf("   enum:  %i (%s)\n",this->enum_type,EnumToString(this->enum_type));
    5656        printf("   value: %s\n",this->value?"true":"false");
    5757        printf("   step: %i\n",this->step);
     
    156156
    157157        /*First write enum: */
    158         name=EnumAsString(this->enum_type);
     158        name=EnumToString(this->enum_type);
    159159        length=(strlen(name)+1)*sizeof(char);
    160160        fwrite(&length,sizeof(int),1,fid);
     
    179179/*FUNCTION BoolExternalResult::GetResultName{{{1*/
    180180char* BoolExternalResult::GetResultName(void){
    181         return  EnumAsString(this->enum_type);
     181        return  EnumToString(this->enum_type);
    182182}
    183183/*}}}*/
  • issm/trunk/src/c/objects/ExternalResults/DoubleExternalResult.cpp

    r4546 r5103  
    5353        printf("DoubleExternalResult:\n");
    5454        printf("   id: %i\n",this->id);
    55         printf("   enum:  %i (%s)\n",this->enum_type,EnumAsString(this->enum_type));
     55        printf("   enum:  %i (%s)\n",this->enum_type,EnumToString(this->enum_type));
    5656        printf("   value: %g\n",this->value);
    5757        printf("   step: %i\n",this->step);
     
    155155
    156156        /*First write enum: */
    157         name=EnumAsString(this->enum_type);
     157        name=EnumToString(this->enum_type);
    158158        length=(strlen(name)+1)*sizeof(char);
    159159        fwrite(&length,sizeof(int),1,fid);
     
    175175/*FUNCTION DoubleExternalResult::GetResultName{{{1*/
    176176char* DoubleExternalResult::GetResultName(void){
    177         return  EnumAsString(this->enum_type);
     177        return  EnumToString(this->enum_type);
    178178}
    179179/*}}}*/
  • issm/trunk/src/c/objects/ExternalResults/DoubleMatExternalResult.cpp

    r4546 r5103  
    5858
    5959        printf("DoubleMatExternalResult:\n");
    60         printf("   enum: %i (%s)\n",this->enum_type,EnumAsString(this->enum_type));
     60        printf("   enum: %i (%s)\n",this->enum_type,EnumToString(this->enum_type));
    6161        printf("   step: %i\n",this->step);
    6262        printf("   time: %g\n",this->time);
     
    7272        printf("DoubleMatExternalResult:\n");
    7373        printf("   id: %i\n",this->id);
    74         printf("   enum: %i (%s)\n",this->enum_type,EnumAsString(this->enum_type));
     74        printf("   enum: %i (%s)\n",this->enum_type,EnumToString(this->enum_type));
    7575        printf("   step: %i\n",this->step);
    7676        printf("   time: %g\n",this->time);
     
    192192
    193193        /*First write enum: */
    194         name=EnumAsString(this->enum_type);
     194        name=EnumToString(this->enum_type);
    195195        length=(strlen(name)+1)*sizeof(char);
    196196        fwrite(&length,sizeof(int),1,fid);
     
    214214/*FUNCTION DoubleMatExternalResult::GetResultName{{{1*/
    215215char* DoubleMatExternalResult::GetResultName(void){
    216         return  EnumAsString(this->enum_type);
     216        return  EnumToString(this->enum_type);
    217217}
    218218/*}}}*/
  • issm/trunk/src/c/objects/ExternalResults/DoubleVecExternalResult.cpp

    r4546 r5103  
    5555
    5656        printf("DoubleVecExternalResult:\n");
    57         printf("   enum: %i (%s)\n",this->enum_type,EnumAsString(this->enum_type));
     57        printf("   enum: %i (%s)\n",this->enum_type,EnumToString(this->enum_type));
    5858        printf("   vector size: %i\n",this->M);
    5959        printf("   step: %i\n",this->step);
     
    6969        printf("DoubleVecExternalResult:\n");
    7070        printf("   id: %i\n",this->id);
    71         printf("   enum: %i (%s)\n",this->enum_type,EnumAsString(this->enum_type));
     71        printf("   enum: %i (%s)\n",this->enum_type,EnumToString(this->enum_type));
    7272        printf("   vector size: %i\n",this->M);
    7373        for(i=0;i<this->M;i++){
     
    180180
    181181        /*First write enum: */
    182         name=EnumAsString(this->enum_type);
     182        name=EnumToString(this->enum_type);
    183183        length=(strlen(name)+1)*sizeof(char);
    184184        fwrite(&length,sizeof(int),1,fid);
     
    200200/*FUNCTION DoubleVecExternalResult::GetResultName{{{1*/
    201201char* DoubleVecExternalResult::GetResultName(void){
    202         return  EnumAsString(this->enum_type);
     202        return  EnumToString(this->enum_type);
    203203}
    204204/*}}}*/
  • issm/trunk/src/c/objects/ExternalResults/IntExternalResult.cpp

    r4546 r5103  
    5353        printf("IntExternalResult:\n");
    5454        printf("   id: %i\n",this->id);
    55         printf("   enum:  %i (%s)\n",this->enum_type,EnumAsString(this->enum_type));
     55        printf("   enum:  %i (%s)\n",this->enum_type,EnumToString(this->enum_type));
    5656        printf("   value: %i\n",this->value);
    5757        printf("   step: %i\n",this->step);
     
    156156
    157157        /*First write enum: */
    158         name=EnumAsString(this->enum_type);
     158        name=EnumToString(this->enum_type);
    159159        length=(strlen(name)+1)*sizeof(char);
    160160        fwrite(&length,sizeof(int),1,fid);
     
    179179/*FUNCTION IntExternalResult::GetResultName{{{1*/
    180180char* IntExternalResult::GetResultName(void){
    181         return  EnumAsString(this->enum_type);
     181        return  EnumToString(this->enum_type);
    182182}
    183183/*}}}*/
  • issm/trunk/src/c/objects/ExternalResults/PetscVecExternalResult.cpp

    r4546 r5103  
    5555
    5656        printf("PetscVecExternalResult:\n");
    57         printf("   enum: %i (%s)\n",this->enum_type,EnumAsString(this->enum_type));
     57        printf("   enum: %i (%s)\n",this->enum_type,EnumToString(this->enum_type));
    5858
    5959}
     
    6565        printf("PetscVecExternalResult:\n");
    6666        printf("   id: %i\n",this->id);
    67         printf("   enum: %i (%s)\n",this->enum_type,EnumAsString(this->enum_type));
     67        printf("   enum: %i (%s)\n",this->enum_type,EnumToString(this->enum_type));
    6868        printf("   step: %i\n",this->step);
    6969        printf("   time: %g\n",this->time);
     
    215215
    216216        /*First write enum: */
    217         name=EnumAsString(this->enum_type);
     217        name=EnumToString(this->enum_type);
    218218        length=(strlen(name)+1)*sizeof(char);
    219219        fwrite(&length,sizeof(int),1,fid);
     
    237237/*FUNCTION PetscVecExternalResult::GetResultName{{{1*/
    238238char* PetscVecExternalResult::GetResultName(void){
    239         return  EnumAsString(this->enum_type);
     239        return  EnumToString(this->enum_type);
    240240}
    241241/*}}}*/
  • issm/trunk/src/c/objects/ExternalResults/StringExternalResult.cpp

    r4546 r5103  
    5555        printf("StringExternalResult:\n");
    5656        printf("   id: %i\n",this->id);
    57         printf("   enum:  %i (%s)\n",this->enum_type,EnumAsString(this->enum_type));
     57        printf("   enum:  %i (%s)\n",this->enum_type,EnumToString(this->enum_type));
    5858        printf("   value: %s\n",this->value);
    5959        printf("   step: %i\n",this->step);
     
    169169
    170170        /*First write enum: */
    171         name=EnumAsString(this->enum_type);
     171        name=EnumToString(this->enum_type);
    172172        length=(strlen(name)+1)*sizeof(char);
    173173        fwrite(&length,sizeof(int),1,fid);
     
    190190/*FUNCTION StringExternalResult::GetResultName{{{1*/
    191191char* StringExternalResult::GetResultName(void){
    192         return  EnumAsString(this->enum_type);
     192        return  EnumToString(this->enum_type);
    193193}
    194194/*}}}*/
  • issm/trunk/src/c/objects/FemModel.cpp

    r5057 r5103  
    5353        for(i=0;i<nummodels;i++){
    5454
    55                 _printf_("   processing finite element model of analysis %s:\n",EnumAsString(analysis_type_list[i]));
     55                _printf_("   processing finite element model of analysis %s:\n",EnumToString(analysis_type_list[i]));
    5656                analysis_type=analysis_type_list[i];
    5757                this->SetCurrentConfiguration(analysis_type);
     
    118118        printf("   number of fem models: %i\n",nummodels);
    119119        printf("   analysis_type_list: \n");
    120         for(int i=0;i<nummodels;i++)printf("     %i: %s\n",i,EnumAsString(analysis_type_list[i]));
     120        for(int i=0;i<nummodels;i++)printf("     %i: %s\n",i,EnumToString(analysis_type_list[i]));
    121121        printf("   current analysis_type: \n");
    122         printf("     %i: %s\n",analysis_counter,EnumAsString(analysis_type_list[analysis_counter]));
     122        printf("     %i: %s\n",analysis_counter,EnumToString(analysis_type_list[analysis_counter]));
    123123
    124124
     
    143143        }
    144144        if(found!=-1) analysis_counter=found;
    145         else ISSMERROR("Could not find alias for analysis_type %s in list of FemModel analyses",EnumAsString(configuration_type));
     145        else ISSMERROR("Could not find alias for analysis_type %s in list of FemModel analyses",EnumToString(configuration_type));
    146146
    147147        /*activate matrices/vectors: */
  • issm/trunk/src/c/objects/Inputs/BoolInput.cpp

    r4927 r5103  
    4646
    4747        printf("BoolInput:\n");
    48         printf("   enum: %i (%s)\n",this->enum_type,EnumAsString(this->enum_type));
     48        printf("   enum: %i (%s)\n",this->enum_type,EnumToString(this->enum_type));
    4949        printf("   value: %s\n",value?"true":"false");
    5050}
  • issm/trunk/src/c/objects/Inputs/DoubleInput.cpp

    r5017 r5103  
    4646
    4747        printf("DoubleInput:\n");
    48         printf("   enum: %i (%s)\n",this->enum_type,EnumAsString(this->enum_type));
     48        printf("   enum: %i (%s)\n",this->enum_type,EnumToString(this->enum_type));
    4949        printf("   value: %g\n",this->value);
    5050}
     
    167167        *pvalue=(int)value;
    168168#else
    169         ISSMERROR("Double input of enum %i (%s) cannot return an integer",enum_type,EnumAsString(enum_type));
     169        ISSMERROR("Double input of enum %i (%s) cannot return an integer",enum_type,EnumToString(enum_type));
    170170#endif
    171171
     
    265265
    266266        /*Check that input provided is a thickness*/
    267         if (thickness_input->EnumType()!=ThicknessEnum) ISSMERROR("Input provided is not a Thickness (enum_type is %s)",EnumAsString(thickness_input->EnumType()));
     267        if (thickness_input->EnumType()!=ThicknessEnum) ISSMERROR("Input provided is not a Thickness (enum_type is %s)",EnumToString(thickness_input->EnumType()));
    268268
    269269        /*vertically integrate depending on type:*/
  • issm/trunk/src/c/objects/Inputs/IntInput.cpp

    r5016 r5103  
    4141
    4242        printf("IntInput:\n");
    43         printf("   enum: %i (%s)\n",this->enum_type,EnumAsString(this->enum_type));
     43        printf("   enum: %i (%s)\n",this->enum_type,EnumToString(this->enum_type));
    4444        printf("   value: %i\n",(int)this->value);
    4545}
  • issm/trunk/src/c/objects/Inputs/PentaVertexInput.cpp

    r5017 r5103  
    5757
    5858        printf("PentaVertexInput:\n");
    59         printf("   enum: %i (%s)\n",this->enum_type,EnumAsString(this->enum_type));
     59        printf("   enum: %i (%s)\n",this->enum_type,EnumToString(this->enum_type));
    6060        printf("   values: [%g %g %g %g %g %g]\n",this->values[0],this->values[1],this->values[2],this->values[3],this->values[4],this->values[5]);
    6161}
     
    501501
    502502        /*Check that input provided is a thickness*/
    503         if (thickness_input->EnumType()!=ThicknessEnum) ISSMERROR("Input provided is not a Thickness (enum_type is %s)",EnumAsString(thickness_input->EnumType()));
     503        if (thickness_input->EnumType()!=ThicknessEnum) ISSMERROR("Input provided is not a Thickness (enum_type is %s)",EnumToString(thickness_input->EnumType()));
    504504
    505505        /*Get Thickness value pointer*/
     
    536536
    537537        /*Check that inputB is of the same type*/
    538         if (inputB->Enum()!=PentaVertexInputEnum) ISSMERROR("Operation not permitted because inputB is of type %s",EnumAsString(inputB->Enum()));
     538        if (inputB->Enum()!=PentaVertexInputEnum) ISSMERROR("Operation not permitted because inputB is of type %s",EnumToString(inputB->Enum()));
    539539        xinputB=(PentaVertexInput*)inputB;
    540540
  • issm/trunk/src/c/objects/Inputs/TriaVertexInput.cpp

    r5017 r5103  
    5757
    5858        printf("TriaVertexInput:\n");
    59         printf("   enum: %i (%s)\n",this->enum_type,EnumAsString(this->enum_type));
     59        printf("   enum: %i (%s)\n",this->enum_type,EnumToString(this->enum_type));
    6060        printf("   values: [%g %g %g]\n",this->values[0],this->values[1],this->values[2]);
    6161}
  • issm/trunk/src/c/objects/Loads/Friction.cpp

    r4546 r5103  
    4949void Friction::Echo(void){
    5050        printf("Friction:\n");
    51         printf("   analysis_type: %s\n",EnumAsString(analysis_type));
     51        printf("   analysis_type: %s\n",EnumToString(analysis_type));
    5252        printf("   element_type: %s\n",this->element_type);
    5353        inputs->Echo();
  • issm/trunk/src/c/objects/Loads/Icefront.cpp

    r5096 r5103  
    7676                icefront_node_ids[3]=iomodel->nodecounter+(int)*(iomodel->pressureload+segment_width*i+3);
    7777        }
    78         else ISSMERROR("analysis_type %s not supported yet!",EnumAsString(in_analysis_type));
     78        else ISSMERROR("analysis_type %s not supported yet!",EnumToString(in_analysis_type));
    7979
    8080        if (icefront_type==QuadIceFrontEnum) num_nodes=4;
     
    117117        printf("Icefront:\n");
    118118        printf("   id: %i\n",id);
    119         printf("   analysis_type: %s\n",EnumAsString(analysis_type));
     119        printf("   analysis_type: %s\n",EnumToString(analysis_type));
    120120        hnodes->Echo();
    121121        helement->Echo();
     
    132132        printf("Icefront:\n");
    133133        printf("   id: %i\n",id);
    134         printf("   analysis_type: %s\n",EnumAsString(analysis_type));
     134        printf("   analysis_type: %s\n",EnumToString(analysis_type));
    135135        hnodes->DeepEcho();
    136136        helement->DeepEcho();
     
    319319        }
    320320        else{
    321                 ISSMERROR("analysis %i (%s) not supported yet",analysis_type,EnumAsString(analysis_type));
     321                ISSMERROR("analysis %i (%s) not supported yet",analysis_type,EnumToString(analysis_type));
    322322        }
    323323}
  • issm/trunk/src/c/objects/Loads/Numericalflux.cpp

    r5096 r5103  
    142142        printf("Numericalflux:\n");
    143143        printf("   id: %i\n",id);
    144         printf("   analysis_type: %s\n",EnumAsString(analysis_type));
     144        printf("   analysis_type: %s\n",EnumToString(analysis_type));
    145145        hnodes->DeepEcho();
    146146        helement->DeepEcho();
  • issm/trunk/src/c/objects/Loads/Pengrid.cpp

    r5096 r5103  
    9191        printf("Pengrid:\n");
    9292        printf("   id: %i\n",id);
    93         printf("   analysis_type: %s\n",EnumAsString(analysis_type));
     93        printf("   analysis_type: %s\n",EnumToString(analysis_type));
    9494        hnode->DeepEcho();
    9595        helement->DeepEcho();
     
    301301        }
    302302        else{
    303                 ISSMERROR("analysis %i (%s) not supported yet",analysis_type,EnumAsString(analysis_type));
     303                ISSMERROR("analysis %i (%s) not supported yet",analysis_type,EnumToString(analysis_type));
    304304        }
    305305
     
    327327        }
    328328        else{
    329                 ISSMERROR("analysis %i (%s) not supported yet",analysis_type,EnumAsString(analysis_type));
     329                ISSMERROR("analysis %i (%s) not supported yet",analysis_type,EnumToString(analysis_type));
    330330        }
    331331
     
    462462        }
    463463        else{
    464                 ISSMERROR("analysis: %s not supported yet",EnumAsString(analysis_type));
     464                ISSMERROR("analysis: %s not supported yet",EnumToString(analysis_type));
    465465        }
    466466
  • issm/trunk/src/c/objects/Loads/Penpair.cpp

    r5096 r5103  
    5252        printf("Penpair:\n");
    5353        printf("   id: %i\n",id);
    54         printf("   analysis_type: %s\n",EnumAsString(analysis_type));
     54        printf("   analysis_type: %s\n",EnumToString(analysis_type));
    5555        hnodes->Echo();
    5656       
     
    6363        printf("Penpair:\n");
    6464        printf("   id: %i\n",id);
    65         printf("   analysis_type: %s\n",EnumAsString(analysis_type));
     65        printf("   analysis_type: %s\n",EnumToString(analysis_type));
    6666        hnodes->DeepEcho();
    6767
     
    216216        }
    217217        else{
    218                 ISSMERROR("analysis %i (%s) not supported yet",analysis_type,EnumAsString(analysis_type));
     218                ISSMERROR("analysis %i (%s) not supported yet",analysis_type,EnumToString(analysis_type));
    219219        }
    220220}
  • issm/trunk/src/c/objects/Loads/Riftfront.cpp

    r5096 r5103  
    123123        printf("Riftfront:\n");
    124124        printf("   id: %i\n",id);
    125         printf("   analysis_type: %s\n",EnumAsString(analysis_type));
     125        printf("   analysis_type: %s\n",EnumToString(analysis_type));
    126126        hnodes->DeepEcho();
    127127        helements->DeepEcho();
  • issm/trunk/src/c/objects/Materials/Matice.cpp

    r4990 r5103  
    578578                                        return;
    579579
    580                                 default: ISSMERROR("element %s not implemented yet",EnumAsString(element->Enum()));
     580                                default: ISSMERROR("element %s not implemented yet",EnumToString(element->Enum()));
    581581                        }
    582                 default: ISSMERROR("type %i (%s) not implemented yet",type,EnumAsString(type));
     582                default: ISSMERROR("type %i (%s) not implemented yet",type,EnumToString(type));
    583583        }
    584584}
  • issm/trunk/src/c/objects/Node.cpp

    r5096 r5103  
    171171        printf("   id: %i\n",id);
    172172        printf("   sid: %i\n",sid);
    173         printf("   analysis_type: %s\n",EnumAsString(analysis_type));
     173        printf("   analysis_type: %s\n",EnumToString(analysis_type));
    174174        indexing.Echo();
    175175        printf("   hvertex:     not displayed\n");
     
    185185        printf("   id: %i\n",id);
    186186        printf("   sid: %i\n",sid);
    187         printf("   analysis_type: %s\n",EnumAsString(analysis_type));
     187        printf("   analysis_type: %s\n",EnumToString(analysis_type));
    188188        indexing.DeepEcho();
    189189        printf("Vertex:\n");
  • issm/trunk/src/c/objects/Params/BoolParam.cpp

    r4546 r5103  
    4949
    5050        printf("BoolParam:\n");
    51         printf("   enum:  %i (%s)\n",this->enum_type,EnumAsString(this->enum_type));
     51        printf("   enum:  %i (%s)\n",this->enum_type,EnumToString(this->enum_type));
    5252        printf("   value: %s\n",this->value?"true":"false");
    5353}
     
    129129/*FUNCTION BoolParam::GetParameterName{{{1*/
    130130char* BoolParam::GetParameterName(void){
    131         return  EnumAsString(this->enum_type);
     131        return  EnumToString(this->enum_type);
    132132}
    133133/*}}}*/
  • issm/trunk/src/c/objects/Params/BoolParam.h

    r4873 r5103  
    5454                int   EnumType(){return enum_type;}
    5555                void  GetParameterValue(bool* pbool){*pbool=value;}
    56                 void  GetParameterValue(int* pinteger){ISSMERROR("Bool param of enum %i (%s) cannot return an integer",enum_type,EnumAsString(enum_type));}
    57                 void  GetParameterValue(double* pdouble){ISSMERROR("Bool param of enum %i (%s) cannot return a double",enum_type,EnumAsString(enum_type));}
    58                 void  GetParameterValue(char** pstring){ISSMERROR("Bool param of enum %i (%s) cannot return a string",enum_type,EnumAsString(enum_type));}
    59                 void  GetParameterValue(char*** pstringarray,int* pM){ISSMERROR("Bool param of enum %i (%s) cannot return a string arrayl",enum_type,EnumAsString(enum_type));}
    60                 void  GetParameterValue(double** pdoublearray,int* pM){ISSMERROR("Bool param of enum %i (%s) cannot return a double array",enum_type,EnumAsString(enum_type));}
    61                 void  GetParameterValue(double** pdoublearray,int* pM, int* pN){ISSMERROR("Bool param of enum %i (%s) cannot return a double array",enum_type,EnumAsString(enum_type));}
    62                 void  GetParameterValue(double*** parray, int* pM,int** pmdims, int** pndims){ISSMERROR("Bool param of enum %i (%s) cannot return a matrix array",enum_type,EnumAsString(enum_type));}
    63                 void  GetParameterValue(Vec* pvec){ISSMERROR("Bool param of enum %i (%s) cannot return a Vec",enum_type,EnumAsString(enum_type));}
    64                 void  GetParameterValue(Mat* pmat){ISSMERROR("Bool param of enum %i (%s) cannot return a Mat",enum_type,EnumAsString(enum_type));}
    65                 void  GetParameterValue(FILE** pfid){ISSMERROR("Bool param of enum %i (%s) cannot return a FILE",enum_type,EnumAsString(enum_type));}
     56                void  GetParameterValue(int* pinteger){ISSMERROR("Bool param of enum %i (%s) cannot return an integer",enum_type,EnumToString(enum_type));}
     57                void  GetParameterValue(double* pdouble){ISSMERROR("Bool param of enum %i (%s) cannot return a double",enum_type,EnumToString(enum_type));}
     58                void  GetParameterValue(char** pstring){ISSMERROR("Bool param of enum %i (%s) cannot return a string",enum_type,EnumToString(enum_type));}
     59                void  GetParameterValue(char*** pstringarray,int* pM){ISSMERROR("Bool param of enum %i (%s) cannot return a string arrayl",enum_type,EnumToString(enum_type));}
     60                void  GetParameterValue(double** pdoublearray,int* pM){ISSMERROR("Bool param of enum %i (%s) cannot return a double array",enum_type,EnumToString(enum_type));}
     61                void  GetParameterValue(double** pdoublearray,int* pM, int* pN){ISSMERROR("Bool param of enum %i (%s) cannot return a double array",enum_type,EnumToString(enum_type));}
     62                void  GetParameterValue(double*** parray, int* pM,int** pmdims, int** pndims){ISSMERROR("Bool param of enum %i (%s) cannot return a matrix array",enum_type,EnumToString(enum_type));}
     63                void  GetParameterValue(Vec* pvec){ISSMERROR("Bool param of enum %i (%s) cannot return a Vec",enum_type,EnumToString(enum_type));}
     64                void  GetParameterValue(Mat* pmat){ISSMERROR("Bool param of enum %i (%s) cannot return a Mat",enum_type,EnumToString(enum_type));}
     65                void  GetParameterValue(FILE** pfid){ISSMERROR("Bool param of enum %i (%s) cannot return a FILE",enum_type,EnumToString(enum_type));}
    6666
    6767                void  SetValue(bool boolean){this->value=boolean;}
    6868                void  SetValue(int integer){this->value=(bool)integer;}
    6969                void  SetValue(double scalar){this->value=(bool)scalar;}
    70                 void  SetValue(char* string){ISSMERROR("Bool param of enum %i (%s) cannot hold a string",enum_type,EnumAsString(enum_type));}
    71                 void  SetValue(char** stringarray,int M){ISSMERROR("Bool param of enum %i (%s) cannot hold a string array",enum_type,EnumAsString(enum_type));}
    72                 void  SetValue(double* doublearray,int M){ISSMERROR("Bool param of enum %i (%s) cannot hold a double array",enum_type,EnumAsString(enum_type));}
    73                 void  SetValue(double* pdoublearray,int M,int N){ISSMERROR("Bool param of enum %i (%s) cannot hold a double array",enum_type,EnumAsString(enum_type));}
    74                 void  SetValue(Vec vec){ISSMERROR("Bool param of enum %i (%s) cannot hold a Vec",enum_type,EnumAsString(enum_type));}
    75                 void  SetValue(Mat mat){ISSMERROR("Bool param of enum %i (%s) cannot hold a Mat",enum_type,EnumAsString(enum_type));}
    76                 void  SetValue(FILE* fid){ISSMERROR("Bool param of enum %i (%s) cannot hold a FILE",enum_type,EnumAsString(enum_type));}
    77                 void  SetValue(double** array, int M, int* mdim_array, int* ndim_array){ISSMERROR("Bool param of enum %i (%s) cannot hold an array of matrices",enum_type,EnumAsString(enum_type));}
     70                void  SetValue(char* string){ISSMERROR("Bool param of enum %i (%s) cannot hold a string",enum_type,EnumToString(enum_type));}
     71                void  SetValue(char** stringarray,int M){ISSMERROR("Bool param of enum %i (%s) cannot hold a string array",enum_type,EnumToString(enum_type));}
     72                void  SetValue(double* doublearray,int M){ISSMERROR("Bool param of enum %i (%s) cannot hold a double array",enum_type,EnumToString(enum_type));}
     73                void  SetValue(double* pdoublearray,int M,int N){ISSMERROR("Bool param of enum %i (%s) cannot hold a double array",enum_type,EnumToString(enum_type));}
     74                void  SetValue(Vec vec){ISSMERROR("Bool param of enum %i (%s) cannot hold a Vec",enum_type,EnumToString(enum_type));}
     75                void  SetValue(Mat mat){ISSMERROR("Bool param of enum %i (%s) cannot hold a Mat",enum_type,EnumToString(enum_type));}
     76                void  SetValue(FILE* fid){ISSMERROR("Bool param of enum %i (%s) cannot hold a FILE",enum_type,EnumToString(enum_type));}
     77                void  SetValue(double** array, int M, int* mdim_array, int* ndim_array){ISSMERROR("Bool param of enum %i (%s) cannot hold an array of matrices",enum_type,EnumToString(enum_type));}
    7878               
    7979                char* GetParameterName(void);
  • issm/trunk/src/c/objects/Params/DoubleMatArrayParam.cpp

    r4972 r5103  
    8888
    8989        printf("DoubleMatArrayParam:\n");
    90         printf("   enum: %i (%s)\n",this->enum_type,EnumAsString(this->enum_type));
     90        printf("   enum: %i (%s)\n",this->enum_type,EnumToString(this->enum_type));
    9191        printf("   array size: %i\n",this->M);
    9292        printf("   array pointer: %p\n",this->array);
     
    102102       
    103103        printf("DoubleMatArrayParam:\n");
    104         printf("   enum: %i (%s)\n",this->enum_type,EnumAsString(this->enum_type));
     104        printf("   enum: %i (%s)\n",this->enum_type,EnumToString(this->enum_type));
    105105        printf("   array size: %i\n",this->M);
    106106        for(i=0;i<M;i++){
     
    303303/*FUNCTION DoubleMatArrayParam::GetParameterName{{{1*/
    304304char* DoubleMatArrayParam::GetParameterName(void){
    305         return  EnumAsString(this->enum_type);
     305        return  EnumToString(this->enum_type);
    306306}
    307307/*}}}*/
  • issm/trunk/src/c/objects/Params/DoubleMatArrayParam.h

    r4873 r5103  
    5656                /*Param vritual function definitions: {{{1*/
    5757                int   EnumType(){return enum_type;}
    58                 void  GetParameterValue(bool* pbool){ISSMERROR("DoubleMatArray param of enum %i (%s) cannot return a bool",enum_type,EnumAsString(enum_type));}
    59                 void  GetParameterValue(int* pinteger){ISSMERROR("DoubleMatArray param of enum %i (%s) cannot return an integer",enum_type,EnumAsString(enum_type));}
    60                 void  GetParameterValue(double* pdouble){ISSMERROR("DoubleMatArray param of enum %i (%s) cannot return a double",enum_type,EnumAsString(enum_type));}
    61                 void  GetParameterValue(char** pstring){ISSMERROR("DoubleMatArray param of enum %i (%s) cannot return a string",enum_type,EnumAsString(enum_type));}
    62                 void  GetParameterValue(char*** pstringarray,int* pM){ISSMERROR("DoubleMatArray param of enum %i (%s) cannot return a string arrayl",enum_type,EnumAsString(enum_type));}
    63                 void  GetParameterValue(double** pdoublearray,int* pM){ISSMERROR("DoubleMatArray param of enum %i (%s) cannot return a double array",enum_type,EnumAsString(enum_type));}
    64                 void  GetParameterValue(double** pdoublearray,int* pM, int* pN){ISSMERROR("DoubleMatArray param of enum %i (%s) cannot return a double array",enum_type,EnumAsString(enum_type));}
     58                void  GetParameterValue(bool* pbool){ISSMERROR("DoubleMatArray param of enum %i (%s) cannot return a bool",enum_type,EnumToString(enum_type));}
     59                void  GetParameterValue(int* pinteger){ISSMERROR("DoubleMatArray param of enum %i (%s) cannot return an integer",enum_type,EnumToString(enum_type));}
     60                void  GetParameterValue(double* pdouble){ISSMERROR("DoubleMatArray param of enum %i (%s) cannot return a double",enum_type,EnumToString(enum_type));}
     61                void  GetParameterValue(char** pstring){ISSMERROR("DoubleMatArray param of enum %i (%s) cannot return a string",enum_type,EnumToString(enum_type));}
     62                void  GetParameterValue(char*** pstringarray,int* pM){ISSMERROR("DoubleMatArray param of enum %i (%s) cannot return a string arrayl",enum_type,EnumToString(enum_type));}
     63                void  GetParameterValue(double** pdoublearray,int* pM){ISSMERROR("DoubleMatArray param of enum %i (%s) cannot return a double array",enum_type,EnumToString(enum_type));}
     64                void  GetParameterValue(double** pdoublearray,int* pM, int* pN){ISSMERROR("DoubleMatArray param of enum %i (%s) cannot return a double array",enum_type,EnumToString(enum_type));}
    6565                void  GetParameterValue(double*** parray, int* pM,int** pmdims, int** pndims);
    66                 void  GetParameterValue(Vec* pvec){ISSMERROR("DoubleMatArray param of enum %i (%s) cannot return a Vec",enum_type,EnumAsString(enum_type));}
    67                 void  GetParameterValue(Mat* pmat){ISSMERROR("DoubleMatArray param of enum %i (%s) cannot return a Mat",enum_type,EnumAsString(enum_type));}
    68                 void  GetParameterValue(FILE** pfid){ISSMERROR("DoubleMatArray param of enum %i (%s) cannot return a FILE",enum_type,EnumAsString(enum_type));}
     66                void  GetParameterValue(Vec* pvec){ISSMERROR("DoubleMatArray param of enum %i (%s) cannot return a Vec",enum_type,EnumToString(enum_type));}
     67                void  GetParameterValue(Mat* pmat){ISSMERROR("DoubleMatArray param of enum %i (%s) cannot return a Mat",enum_type,EnumToString(enum_type));}
     68                void  GetParameterValue(FILE** pfid){ISSMERROR("DoubleMatArray param of enum %i (%s) cannot return a FILE",enum_type,EnumToString(enum_type));}
    6969
    70                 void  SetValue(bool boolean){ISSMERROR("DoubleMatArray param of enum %i (%s) cannot hold a boolean",enum_type,EnumAsString(enum_type));}
    71                 void  SetValue(int integer){ISSMERROR("DoubleMatArray param of enum %i (%s) cannot hold an integer",enum_type,EnumAsString(enum_type));}
    72                 void  SetValue(double scalar){ISSMERROR("DoubleMatArray param of enum %i (%s) cannot hold a scalar",enum_type,EnumAsString(enum_type));}
    73                 void  SetValue(char* string){ISSMERROR("DoubleMatArray param of enum %i (%s) cannot hold a string",enum_type,EnumAsString(enum_type));}
    74                 void  SetValue(char** stringarray,int M){ISSMERROR("DoubleMatArray param of enum %i (%s) cannot hold a string array",enum_type,EnumAsString(enum_type));}
    75                 void  SetValue(double* doublearray,int M){ISSMERROR("DoubleMatArray param of enum %i (%s) cannot hold a double vec array",enum_type,EnumAsString(enum_type));}
    76                 void  SetValue(double* doublearray,int M,int N){ISSMERROR("DoubleMatArray param of enum %i (%s) cannot hold a double mat array",enum_type,EnumAsString(enum_type));}
    77                 void  SetValue(Vec vec){ISSMERROR("DoubleMatArray param of enum %i (%s) cannot hold a Vec",enum_type,EnumAsString(enum_type));}
    78                 void  SetValue(Mat mat){ISSMERROR("DoubleMatArray param of enum %i (%s) cannot hold a Mat",enum_type,EnumAsString(enum_type));}
    79                 void  SetValue(FILE* fid){ISSMERROR("Bool param of enum %i (%s) cannot hold a FILE",enum_type,EnumAsString(enum_type));}
     70                void  SetValue(bool boolean){ISSMERROR("DoubleMatArray param of enum %i (%s) cannot hold a boolean",enum_type,EnumToString(enum_type));}
     71                void  SetValue(int integer){ISSMERROR("DoubleMatArray param of enum %i (%s) cannot hold an integer",enum_type,EnumToString(enum_type));}
     72                void  SetValue(double scalar){ISSMERROR("DoubleMatArray param of enum %i (%s) cannot hold a scalar",enum_type,EnumToString(enum_type));}
     73                void  SetValue(char* string){ISSMERROR("DoubleMatArray param of enum %i (%s) cannot hold a string",enum_type,EnumToString(enum_type));}
     74                void  SetValue(char** stringarray,int M){ISSMERROR("DoubleMatArray param of enum %i (%s) cannot hold a string array",enum_type,EnumToString(enum_type));}
     75                void  SetValue(double* doublearray,int M){ISSMERROR("DoubleMatArray param of enum %i (%s) cannot hold a double vec array",enum_type,EnumToString(enum_type));}
     76                void  SetValue(double* doublearray,int M,int N){ISSMERROR("DoubleMatArray param of enum %i (%s) cannot hold a double mat array",enum_type,EnumToString(enum_type));}
     77                void  SetValue(Vec vec){ISSMERROR("DoubleMatArray param of enum %i (%s) cannot hold a Vec",enum_type,EnumToString(enum_type));}
     78                void  SetValue(Mat mat){ISSMERROR("DoubleMatArray param of enum %i (%s) cannot hold a Mat",enum_type,EnumToString(enum_type));}
     79                void  SetValue(FILE* fid){ISSMERROR("Bool param of enum %i (%s) cannot hold a FILE",enum_type,EnumToString(enum_type));}
    8080                void  SetValue(double** array, int M, int* mdim_array, int* ndim_array);
    8181
  • issm/trunk/src/c/objects/Params/DoubleMatParam.cpp

    r4546 r5103  
    4949
    5050        printf("DoubleMatParam:\n");
    51         printf("   enum: %i (%s)\n",this->enum_type,EnumAsString(this->enum_type));
     51        printf("   enum: %i (%s)\n",this->enum_type,EnumToString(this->enum_type));
    5252        printf("   matrix size: %ix%i\n",this->M,this->N);
    5353
     
    6060       
    6161        printf("DoubleMatParam:\n");
    62         printf("   enum: %i (%s)\n",this->enum_type,EnumAsString(this->enum_type));
     62        printf("   enum: %i (%s)\n",this->enum_type,EnumToString(this->enum_type));
    6363        printf("   matrix size: %ix%i\n",this->M,this->N);
    6464        for(i=0;i<this->M;i++){
     
    170170/*FUNCTION DoubleMatParam::GetParameterName{{{1*/
    171171char* DoubleMatParam::GetParameterName(void){
    172         return  EnumAsString(this->enum_type);
     172        return  EnumToString(this->enum_type);
    173173}
    174174/*}}}*/
  • issm/trunk/src/c/objects/Params/DoubleMatParam.h

    r4873 r5103  
    5555                /*Param vritual function definitions: {{{1*/
    5656                int   EnumType(){return enum_type;}
    57                 void  GetParameterValue(bool* pbool){ISSMERROR("DoubleMat param of enum %i (%s) cannot return a bool",enum_type,EnumAsString(enum_type));}
    58                 void  GetParameterValue(int* pinteger){ISSMERROR("DoubleMat param of enum %i (%s) cannot return an integer",enum_type,EnumAsString(enum_type));}
    59                 void  GetParameterValue(double* pdouble){ISSMERROR("DoubleMat param of enum %i (%s) cannot return a double",enum_type,EnumAsString(enum_type));}
    60                 void  GetParameterValue(char** pstring){ISSMERROR("DoubleMat param of enum %i (%s) cannot return a string",enum_type,EnumAsString(enum_type));}
    61                 void  GetParameterValue(char*** pstringarray,int* pM){ISSMERROR("DoubleMat param of enum %i (%s) cannot return a string arrayl",enum_type,EnumAsString(enum_type));}
    62                 void  GetParameterValue(double** pdoublearray,int* pM){ISSMERROR("DoubleMat param of enum %i (%s) cannot return a double array",enum_type,EnumAsString(enum_type));}
     57                void  GetParameterValue(bool* pbool){ISSMERROR("DoubleMat param of enum %i (%s) cannot return a bool",enum_type,EnumToString(enum_type));}
     58                void  GetParameterValue(int* pinteger){ISSMERROR("DoubleMat param of enum %i (%s) cannot return an integer",enum_type,EnumToString(enum_type));}
     59                void  GetParameterValue(double* pdouble){ISSMERROR("DoubleMat param of enum %i (%s) cannot return a double",enum_type,EnumToString(enum_type));}
     60                void  GetParameterValue(char** pstring){ISSMERROR("DoubleMat param of enum %i (%s) cannot return a string",enum_type,EnumToString(enum_type));}
     61                void  GetParameterValue(char*** pstringarray,int* pM){ISSMERROR("DoubleMat param of enum %i (%s) cannot return a string arrayl",enum_type,EnumToString(enum_type));}
     62                void  GetParameterValue(double** pdoublearray,int* pM){ISSMERROR("DoubleMat param of enum %i (%s) cannot return a double array",enum_type,EnumToString(enum_type));}
    6363                void  GetParameterValue(double** pdoublearray,int* pM,int* pN);
    64                 void  GetParameterValue(double*** parray, int* pM,int** pmdims, int** pndims){ISSMERROR("DoubleMat param of enum %i (%s) cannot return a matrix array",enum_type,EnumAsString(enum_type));}
    65                 void  GetParameterValue(Vec* pvec){ISSMERROR("DoubleMat param of enum %i (%s) cannot return a Vec",enum_type,EnumAsString(enum_type));}
    66                 void  GetParameterValue(Mat* pmat){ISSMERROR("DoubleMat param of enum %i (%s) cannot return a Mat",enum_type,EnumAsString(enum_type));}
    67                 void  GetParameterValue(FILE** pfid){ISSMERROR("DoubleMat param of enum %i (%s) cannot return a FILE",enum_type,EnumAsString(enum_type));}
     64                void  GetParameterValue(double*** parray, int* pM,int** pmdims, int** pndims){ISSMERROR("DoubleMat param of enum %i (%s) cannot return a matrix array",enum_type,EnumToString(enum_type));}
     65                void  GetParameterValue(Vec* pvec){ISSMERROR("DoubleMat param of enum %i (%s) cannot return a Vec",enum_type,EnumToString(enum_type));}
     66                void  GetParameterValue(Mat* pmat){ISSMERROR("DoubleMat param of enum %i (%s) cannot return a Mat",enum_type,EnumToString(enum_type));}
     67                void  GetParameterValue(FILE** pfid){ISSMERROR("DoubleMat param of enum %i (%s) cannot return a FILE",enum_type,EnumToString(enum_type));}
    6868
    69                 void  SetValue(bool boolean){ISSMERROR("DoubleMat param of enum %i (%s) cannot hold a boolean",enum_type,EnumAsString(enum_type));}
    70                 void  SetValue(int integer){ISSMERROR("DoubleMat param of enum %i (%s) cannot hold an integer",enum_type,EnumAsString(enum_type));}
    71                 void  SetValue(double scalar){ISSMERROR("DoubleMat param of enum %i (%s) cannot hold a scalar",enum_type,EnumAsString(enum_type));}
    72                 void  SetValue(char* string){ISSMERROR("DoubleMat param of enum %i (%s) cannot hold a string",enum_type,EnumAsString(enum_type));}
    73                 void  SetValue(char** stringarray,int M){ISSMERROR("DoubleMat param of enum %i (%s) cannot hold a string array",enum_type,EnumAsString(enum_type));}
    74                 void  SetValue(double* doublearray,int M){ISSMERROR("DoubleMat param of enum %i (%s) cannot hold a double vec array",enum_type,EnumAsString(enum_type));}
     69                void  SetValue(bool boolean){ISSMERROR("DoubleMat param of enum %i (%s) cannot hold a boolean",enum_type,EnumToString(enum_type));}
     70                void  SetValue(int integer){ISSMERROR("DoubleMat param of enum %i (%s) cannot hold an integer",enum_type,EnumToString(enum_type));}
     71                void  SetValue(double scalar){ISSMERROR("DoubleMat param of enum %i (%s) cannot hold a scalar",enum_type,EnumToString(enum_type));}
     72                void  SetValue(char* string){ISSMERROR("DoubleMat param of enum %i (%s) cannot hold a string",enum_type,EnumToString(enum_type));}
     73                void  SetValue(char** stringarray,int M){ISSMERROR("DoubleMat param of enum %i (%s) cannot hold a string array",enum_type,EnumToString(enum_type));}
     74                void  SetValue(double* doublearray,int M){ISSMERROR("DoubleMat param of enum %i (%s) cannot hold a double vec array",enum_type,EnumToString(enum_type));}
    7575                void  SetValue(double* doublearray,int M,int N);
    76                 void  SetValue(Vec vec){ISSMERROR("DoubleMat param of enum %i (%s) cannot hold a Vec",enum_type,EnumAsString(enum_type));}
    77                 void  SetValue(Mat mat){ISSMERROR("DoubleMat param of enum %i (%s) cannot hold a Mat",enum_type,EnumAsString(enum_type));}
    78                 void  SetValue(FILE* fid){ISSMERROR("DoubleMat param of enum %i (%s) cannot hold a FILE",enum_type,EnumAsString(enum_type));}
    79                 void  SetValue(double** array, int M, int* mdim_array, int* ndim_array){ISSMERROR("DoubleMat param of enum %i (%s) cannot hold an array of matrices",enum_type,EnumAsString(enum_type));}
     76                void  SetValue(Vec vec){ISSMERROR("DoubleMat param of enum %i (%s) cannot hold a Vec",enum_type,EnumToString(enum_type));}
     77                void  SetValue(Mat mat){ISSMERROR("DoubleMat param of enum %i (%s) cannot hold a Mat",enum_type,EnumToString(enum_type));}
     78                void  SetValue(FILE* fid){ISSMERROR("DoubleMat param of enum %i (%s) cannot hold a FILE",enum_type,EnumToString(enum_type));}
     79                void  SetValue(double** array, int M, int* mdim_array, int* ndim_array){ISSMERROR("DoubleMat param of enum %i (%s) cannot hold an array of matrices",enum_type,EnumToString(enum_type));}
    8080
    8181                char* GetParameterName(void);
  • issm/trunk/src/c/objects/Params/DoubleParam.cpp

    r4546 r5103  
    4646
    4747        printf("DoubleParam:\n");
    48         printf("   enum:  %i (%s)\n",this->enum_type,EnumAsString(this->enum_type));
     48        printf("   enum:  %i (%s)\n",this->enum_type,EnumToString(this->enum_type));
    4949        printf("   value: %g\n",this->value);
    5050}
     
    126126/*FUNCTION DoubleParam::GetParameterName{{{1*/
    127127char* DoubleParam::GetParameterName(void){
    128         return  EnumAsString(this->enum_type);
     128        return  EnumToString(this->enum_type);
    129129}
    130130/*}}}*/
     
    134134        *pinteger=(int)value;
    135135#else
    136         ISSMERROR("Double param of enum %i (%s) cannot return an integer",enum_type,EnumAsString(enum_type));
     136        ISSMERROR("Double param of enum %i (%s) cannot return an integer",enum_type,EnumToString(enum_type));
    137137#endif
    138138}
     
    147147
    148148#else
    149         ISSMERROR("Double param of enum %i (%s) cannot return an bool",enum_type,EnumAsString(enum_type));
     149        ISSMERROR("Double param of enum %i (%s) cannot return an bool",enum_type,EnumToString(enum_type));
    150150#endif
    151151}
  • issm/trunk/src/c/objects/Params/DoubleParam.h

    r4873 r5103  
    5757                void  GetParameterValue(int* pinteger);
    5858                void  GetParameterValue(double* pdouble){*pdouble=value;}
    59                 void  GetParameterValue(char** pstring){ISSMERROR("Double param of enum %i (%s) cannot return a string",enum_type,EnumAsString(enum_type));}
    60                 void  GetParameterValue(char*** pstringarray,int* pM){ISSMERROR("Double param of enum %i (%s) cannot return a string arrayl",enum_type,EnumAsString(enum_type));}
    61                 void  GetParameterValue(double** pdoublearray,int* pM){ISSMERROR("Double param of enum %i (%s) cannot return a double array",enum_type,EnumAsString(enum_type));}
    62                 void  GetParameterValue(double** pdoublearray,int* pM, int* pN){ISSMERROR("Double param of enum %i (%s) cannot return a double array",enum_type,EnumAsString(enum_type));}
    63                 void  GetParameterValue(double*** parray, int* pM,int** pmdims, int** pndims){ISSMERROR("Double param of enum %i (%s) cannot return a matrix array",enum_type,EnumAsString(enum_type));}
    64                 void  GetParameterValue(Vec* pvec){ISSMERROR("Double param of enum %i (%s) cannot return a Vec",enum_type,EnumAsString(enum_type));}
    65                 void  GetParameterValue(Mat* pmat){ISSMERROR("Double param of enum %i (%s) cannot return a Mat",enum_type,EnumAsString(enum_type));}
    66                 void  GetParameterValue(FILE** pfid){ISSMERROR("Double param of enum %i (%s) cannot return a FILE",enum_type,EnumAsString(enum_type));}
     59                void  GetParameterValue(char** pstring){ISSMERROR("Double param of enum %i (%s) cannot return a string",enum_type,EnumToString(enum_type));}
     60                void  GetParameterValue(char*** pstringarray,int* pM){ISSMERROR("Double param of enum %i (%s) cannot return a string arrayl",enum_type,EnumToString(enum_type));}
     61                void  GetParameterValue(double** pdoublearray,int* pM){ISSMERROR("Double param of enum %i (%s) cannot return a double array",enum_type,EnumToString(enum_type));}
     62                void  GetParameterValue(double** pdoublearray,int* pM, int* pN){ISSMERROR("Double param of enum %i (%s) cannot return a double array",enum_type,EnumToString(enum_type));}
     63                void  GetParameterValue(double*** parray, int* pM,int** pmdims, int** pndims){ISSMERROR("Double param of enum %i (%s) cannot return a matrix array",enum_type,EnumToString(enum_type));}
     64                void  GetParameterValue(Vec* pvec){ISSMERROR("Double param of enum %i (%s) cannot return a Vec",enum_type,EnumToString(enum_type));}
     65                void  GetParameterValue(Mat* pmat){ISSMERROR("Double param of enum %i (%s) cannot return a Mat",enum_type,EnumToString(enum_type));}
     66                void  GetParameterValue(FILE** pfid){ISSMERROR("Double param of enum %i (%s) cannot return a FILE",enum_type,EnumToString(enum_type));}
    6767
    6868                void  SetValue(bool boolean){this->value=(double)boolean;}
    6969                void  SetValue(int integer){this->value=(double)integer;}
    7070                void  SetValue(double scalar){this->value=(double)scalar;}
    71                 void  SetValue(char* string){ISSMERROR("Double param of enum %i (%s) cannot hold a string",enum_type,EnumAsString(enum_type));}
    72                 void  SetValue(char** stringarray,int M){ISSMERROR("Double param of enum %i (%s) cannot hold a string array",enum_type,EnumAsString(enum_type));}
    73                 void  SetValue(double* doublearray,int M){ISSMERROR("Double param of enum %i (%s) cannot hold a double array",enum_type,EnumAsString(enum_type));}
    74                 void  SetValue(double* pdoublearray,int M,int N){ISSMERROR("Double param of enum %i (%s) cannot hold a double array",enum_type,EnumAsString(enum_type));}
    75                 void  SetValue(Vec vec){ISSMERROR("Double param of enum %i (%s) cannot hold a Vec",enum_type,EnumAsString(enum_type));}
    76                 void  SetValue(Mat mat){ISSMERROR("Double param of enum %i (%s) cannot hold a Mat",enum_type,EnumAsString(enum_type));}
    77                 void  SetValue(FILE* fid){ISSMERROR("Double param of enum %i (%s) cannot hold a FILE",enum_type,EnumAsString(enum_type));}
    78                 void  SetValue(double** array, int M, int* mdim_array, int* ndim_array){ISSMERROR("Double param of enum %i (%s) cannot hold an array of matrices",enum_type,EnumAsString(enum_type));}
     71                void  SetValue(char* string){ISSMERROR("Double param of enum %i (%s) cannot hold a string",enum_type,EnumToString(enum_type));}
     72                void  SetValue(char** stringarray,int M){ISSMERROR("Double param of enum %i (%s) cannot hold a string array",enum_type,EnumToString(enum_type));}
     73                void  SetValue(double* doublearray,int M){ISSMERROR("Double param of enum %i (%s) cannot hold a double array",enum_type,EnumToString(enum_type));}
     74                void  SetValue(double* pdoublearray,int M,int N){ISSMERROR("Double param of enum %i (%s) cannot hold a double array",enum_type,EnumToString(enum_type));}
     75                void  SetValue(Vec vec){ISSMERROR("Double param of enum %i (%s) cannot hold a Vec",enum_type,EnumToString(enum_type));}
     76                void  SetValue(Mat mat){ISSMERROR("Double param of enum %i (%s) cannot hold a Mat",enum_type,EnumToString(enum_type));}
     77                void  SetValue(FILE* fid){ISSMERROR("Double param of enum %i (%s) cannot hold a FILE",enum_type,EnumToString(enum_type));}
     78                void  SetValue(double** array, int M, int* mdim_array, int* ndim_array){ISSMERROR("Double param of enum %i (%s) cannot hold an array of matrices",enum_type,EnumToString(enum_type));}
    7979
    8080                char* GetParameterName(void);
  • issm/trunk/src/c/objects/Params/DoubleVecParam.cpp

    r4546 r5103  
    4848
    4949        printf("DoubleVecParam:\n");
    50         printf("   enum: %i (%s)\n",this->enum_type,EnumAsString(this->enum_type));
     50        printf("   enum: %i (%s)\n",this->enum_type,EnumToString(this->enum_type));
    5151        printf("   vector size: %i\n",this->M);
    5252
     
    5959       
    6060        printf("DoubleVecParam:\n");
    61         printf("   enum: %i (%s)\n",this->enum_type,EnumAsString(this->enum_type));
     61        printf("   enum: %i (%s)\n",this->enum_type,EnumToString(this->enum_type));
    6262        printf("   vector size: %i\n",this->M);
    6363        for(i=0;i<this->M;i++){
     
    162162/*FUNCTION DoubleVecParam::GetParameterName{{{1*/
    163163char* DoubleVecParam::GetParameterName(void){
    164         return  EnumAsString(this->enum_type);
     164        return  EnumToString(this->enum_type);
    165165}
    166166/*}}}*/
  • issm/trunk/src/c/objects/Params/DoubleVecParam.h

    r4873 r5103  
    5454                /*Param virtual functions definitions: {{{1*/
    5555                int   EnumType(){return enum_type;}
    56                 void  GetParameterValue(bool* pbool){ISSMERROR("DoubleVec param of enum %i (%s) cannot return a bool",enum_type,EnumAsString(enum_type));}
    57                 void  GetParameterValue(int* pinteger){ISSMERROR("DoubleVec param of enum %i (%s) cannot return an integer",enum_type,EnumAsString(enum_type));}
    58                 void  GetParameterValue(double* pdouble){ISSMERROR("DoubleVec param of enum %i (%s) cannot return a double",enum_type,EnumAsString(enum_type));}
    59                 void  GetParameterValue(char** pstring){ISSMERROR("DoubleVec param of enum %i (%s) cannot return a string",enum_type,EnumAsString(enum_type));}
    60                 void  GetParameterValue(char*** pstringarray,int* pM){ISSMERROR("DoubleVec param of enum %i (%s) cannot return a string arrayl",enum_type,EnumAsString(enum_type));}
     56                void  GetParameterValue(bool* pbool){ISSMERROR("DoubleVec param of enum %i (%s) cannot return a bool",enum_type,EnumToString(enum_type));}
     57                void  GetParameterValue(int* pinteger){ISSMERROR("DoubleVec param of enum %i (%s) cannot return an integer",enum_type,EnumToString(enum_type));}
     58                void  GetParameterValue(double* pdouble){ISSMERROR("DoubleVec param of enum %i (%s) cannot return a double",enum_type,EnumToString(enum_type));}
     59                void  GetParameterValue(char** pstring){ISSMERROR("DoubleVec param of enum %i (%s) cannot return a string",enum_type,EnumToString(enum_type));}
     60                void  GetParameterValue(char*** pstringarray,int* pM){ISSMERROR("DoubleVec param of enum %i (%s) cannot return a string arrayl",enum_type,EnumToString(enum_type));}
    6161                void  GetParameterValue(double** pdoublearray,int* pM);
    62                 void  GetParameterValue(double** pdoublearray,int* pM, int* pN){ISSMERROR("DoubleVec param of enum %i (%s) cannot return a double array",enum_type,EnumAsString(enum_type));}
    63                 void  GetParameterValue(double*** parray, int* pM,int** pmdims, int** pndims){ISSMERROR("DoubleVec param of enum %i (%s) cannot return a matrix array",enum_type,EnumAsString(enum_type));}
    64                 void  GetParameterValue(Vec* pvec){ISSMERROR("DoubleVec param of enum %i (%s) cannot return a Vec",enum_type,EnumAsString(enum_type));}
    65                 void  GetParameterValue(Mat* pmat){ISSMERROR("DoubleVec param of enum %i (%s) cannot return a Mat",enum_type,EnumAsString(enum_type));}
    66                 void  GetParameterValue(FILE** pfid){ISSMERROR("DoubleVec param of enum %i (%s) cannot return a FILE",enum_type,EnumAsString(enum_type));}
     62                void  GetParameterValue(double** pdoublearray,int* pM, int* pN){ISSMERROR("DoubleVec param of enum %i (%s) cannot return a double array",enum_type,EnumToString(enum_type));}
     63                void  GetParameterValue(double*** parray, int* pM,int** pmdims, int** pndims){ISSMERROR("DoubleVec param of enum %i (%s) cannot return a matrix array",enum_type,EnumToString(enum_type));}
     64                void  GetParameterValue(Vec* pvec){ISSMERROR("DoubleVec param of enum %i (%s) cannot return a Vec",enum_type,EnumToString(enum_type));}
     65                void  GetParameterValue(Mat* pmat){ISSMERROR("DoubleVec param of enum %i (%s) cannot return a Mat",enum_type,EnumToString(enum_type));}
     66                void  GetParameterValue(FILE** pfid){ISSMERROR("DoubleVec param of enum %i (%s) cannot return a FILE",enum_type,EnumToString(enum_type));}
    6767
    68                 void  SetValue(bool boolean){ISSMERROR("DoubleVec param of enum %i (%s) cannot hold a boolean",enum_type,EnumAsString(enum_type));}
    69                 void  SetValue(int integer){ISSMERROR("DoubleVec param of enum %i (%s) cannot hold an integer",enum_type,EnumAsString(enum_type));}
    70                 void  SetValue(double scalar){ISSMERROR("DoubleVec param of enum %i (%s) cannot hold a scalar",enum_type,EnumAsString(enum_type));}
    71                 void  SetValue(char* string){ISSMERROR("DoubleVec param of enum %i (%s) cannot hold a string",enum_type,EnumAsString(enum_type));}
    72                 void  SetValue(char** stringarray,int M){ISSMERROR("DoubleVec param of enum %i (%s) cannot hold a string array",enum_type,EnumAsString(enum_type));}
     68                void  SetValue(bool boolean){ISSMERROR("DoubleVec param of enum %i (%s) cannot hold a boolean",enum_type,EnumToString(enum_type));}
     69                void  SetValue(int integer){ISSMERROR("DoubleVec param of enum %i (%s) cannot hold an integer",enum_type,EnumToString(enum_type));}
     70                void  SetValue(double scalar){ISSMERROR("DoubleVec param of enum %i (%s) cannot hold a scalar",enum_type,EnumToString(enum_type));}
     71                void  SetValue(char* string){ISSMERROR("DoubleVec param of enum %i (%s) cannot hold a string",enum_type,EnumToString(enum_type));}
     72                void  SetValue(char** stringarray,int M){ISSMERROR("DoubleVec param of enum %i (%s) cannot hold a string array",enum_type,EnumToString(enum_type));}
    7373                void  SetValue(double* doublearray,int M);
    74                 void  SetValue(double* pdoublearray,int M,int N){ISSMERROR("DoubleVec param of enum %i (%s) cannot hold a double mat array",enum_type,EnumAsString(enum_type));}
    75                 void  SetValue(Vec vec){ISSMERROR("DoubleVec param of enum %i (%s) cannot hold a Vec",enum_type,EnumAsString(enum_type));}
    76                 void  SetValue(Mat mat){ISSMERROR("DoubleVec param of enum %i (%s) cannot hold a Mat",enum_type,EnumAsString(enum_type));}
    77                 void  SetValue(FILE* fid){ISSMERROR("DoubleVec param of enum %i (%s) cannot hold a FILE",enum_type,EnumAsString(enum_type));}
    78                 void  SetValue(double** array, int M, int* mdim_array, int* ndim_array){ISSMERROR("DoubleVec param of enum %i (%s) cannot hold an array of matrices",enum_type,EnumAsString(enum_type));}
     74                void  SetValue(double* pdoublearray,int M,int N){ISSMERROR("DoubleVec param of enum %i (%s) cannot hold a double mat array",enum_type,EnumToString(enum_type));}
     75                void  SetValue(Vec vec){ISSMERROR("DoubleVec param of enum %i (%s) cannot hold a Vec",enum_type,EnumToString(enum_type));}
     76                void  SetValue(Mat mat){ISSMERROR("DoubleVec param of enum %i (%s) cannot hold a Mat",enum_type,EnumToString(enum_type));}
     77                void  SetValue(FILE* fid){ISSMERROR("DoubleVec param of enum %i (%s) cannot hold a FILE",enum_type,EnumToString(enum_type));}
     78                void  SetValue(double** array, int M, int* mdim_array, int* ndim_array){ISSMERROR("DoubleVec param of enum %i (%s) cannot hold an array of matrices",enum_type,EnumToString(enum_type));}
    7979               
    8080                char* GetParameterName(void);
  • issm/trunk/src/c/objects/Params/FileParam.cpp

    r4874 r5103  
    4949
    5050        printf("FileParam:\n");
    51         printf("   enum:  %i (%s)\n",this->enum_type,EnumAsString(this->enum_type));
     51        printf("   enum:  %i (%s)\n",this->enum_type,EnumToString(this->enum_type));
    5252        printf("   value: %p\n",this->value);
    5353}
     
    9696/*FUNCTION FileParam::GetParameterName{{{1*/
    9797char* FileParam::GetParameterName(void){
    98         return  EnumAsString(this->enum_type);
     98        return  EnumToString(this->enum_type);
    9999}
    100100/*}}}*/
  • issm/trunk/src/c/objects/Params/FileParam.h

    r4874 r5103  
    5252                /*Param vritual function definitions: {{{1*/
    5353                int   EnumType(){return enum_type;}
    54                 void  GetParameterValue(bool* pbool){  ISSMERROR("FileParam of enum %i (%s) cannot return a bool",enum_type,EnumAsString(enum_type));}
    55                 void  GetParameterValue(int* pinteger){ISSMERROR("FileParam of enum %i (%s) cannot return a double",enum_type,EnumAsString(enum_type));}
    56                 void  GetParameterValue(double* pdouble){ISSMERROR("FileParam of enum %i (%s) cannot return a double",enum_type,EnumAsString(enum_type));}
    57                 void  GetParameterValue(char** pstring){ISSMERROR("FileParam of enum %i (%s) cannot return a string",enum_type,EnumAsString(enum_type));}
    58                 void  GetParameterValue(char*** pstringarray,int* pM){ISSMERROR("FileParam of enum %i (%s) cannot return a string arrayl",enum_type,EnumAsString(enum_type));}
    59                 void  GetParameterValue(double** pdoublearray,int* pM){ISSMERROR("FileParam of enum %i (%s) cannot return a double array",enum_type,EnumAsString(enum_type));}
    60                 void  GetParameterValue(double** pdoublearray,int* pM, int* pN){ISSMERROR("FileParam of enum %i (%s) cannot return a double array",enum_type,EnumAsString(enum_type));}
    61                 void  GetParameterValue(double*** parray, int* pM,int** pmdims, int** pndims){ISSMERROR("File param of enum %i (%s) cannot return a matrix array",enum_type,EnumAsString(enum_type));}
    62                 void  GetParameterValue(Vec* pvec){ISSMERROR("FileParam of enum %i (%s) cannot return a Vec",enum_type,EnumAsString(enum_type));}
    63                 void  GetParameterValue(Mat* pmat){ISSMERROR("FileParam of enum %i (%s) cannot return a Mat",enum_type,EnumAsString(enum_type));}
     54                void  GetParameterValue(bool* pbool){  ISSMERROR("FileParam of enum %i (%s) cannot return a bool",enum_type,EnumToString(enum_type));}
     55                void  GetParameterValue(int* pinteger){ISSMERROR("FileParam of enum %i (%s) cannot return a double",enum_type,EnumToString(enum_type));}
     56                void  GetParameterValue(double* pdouble){ISSMERROR("FileParam of enum %i (%s) cannot return a double",enum_type,EnumToString(enum_type));}
     57                void  GetParameterValue(char** pstring){ISSMERROR("FileParam of enum %i (%s) cannot return a string",enum_type,EnumToString(enum_type));}
     58                void  GetParameterValue(char*** pstringarray,int* pM){ISSMERROR("FileParam of enum %i (%s) cannot return a string arrayl",enum_type,EnumToString(enum_type));}
     59                void  GetParameterValue(double** pdoublearray,int* pM){ISSMERROR("FileParam of enum %i (%s) cannot return a double array",enum_type,EnumToString(enum_type));}
     60                void  GetParameterValue(double** pdoublearray,int* pM, int* pN){ISSMERROR("FileParam of enum %i (%s) cannot return a double array",enum_type,EnumToString(enum_type));}
     61                void  GetParameterValue(double*** parray, int* pM,int** pmdims, int** pndims){ISSMERROR("File param of enum %i (%s) cannot return a matrix array",enum_type,EnumToString(enum_type));}
     62                void  GetParameterValue(Vec* pvec){ISSMERROR("FileParam of enum %i (%s) cannot return a Vec",enum_type,EnumToString(enum_type));}
     63                void  GetParameterValue(Mat* pmat){ISSMERROR("FileParam of enum %i (%s) cannot return a Mat",enum_type,EnumToString(enum_type));}
    6464                void  GetParameterValue(FILE** pfid){*pfid=value;};
    6565
    66                 void  SetValue(bool boolean){ISSMERROR("FileParam of enum %i (%s) cannot hold a string",enum_type,EnumAsString(enum_type));}
    67                 void  SetValue(int integer){ISSMERROR("FileParam of enum %i (%s) cannot hold a string",enum_type,EnumAsString(enum_type));}
    68                 void  SetValue(double scalar){ISSMERROR("FileParam of enum %i (%s) cannot hold a string",enum_type,EnumAsString(enum_type));}
    69                 void  SetValue(char* string){ISSMERROR("FileParam of enum %i (%s) cannot hold a string",enum_type,EnumAsString(enum_type));}
    70                 void  SetValue(char** stringarray,int M){ISSMERROR("FileParam of enum %i (%s) cannot hold a string array",enum_type,EnumAsString(enum_type));}
    71                 void  SetValue(double* doublearray,int M){ISSMERROR("FileParam of enum %i (%s) cannot hold a double array",enum_type,EnumAsString(enum_type));}
    72                 void  SetValue(double* pdoublearray,int M,int N){ISSMERROR("FileParam of enum %i (%s) cannot hold a double array",enum_type,EnumAsString(enum_type));}
    73                 void  SetValue(Vec vec){ISSMERROR("FileParam of enum %i (%s) cannot hold a Vec",enum_type,EnumAsString(enum_type));}
    74                 void  SetValue(Mat mat){ISSMERROR("FileParam of enum %i (%s) cannot hold a Mat",enum_type,EnumAsString(enum_type));}
    75                 void  SetValue(FILE* fid){ISSMERROR("File param of enum %i (%s) cannot hold a FILE",enum_type,EnumAsString(enum_type));}
    76                 void  SetValue(double** array, int M, int* mdim_array, int* ndim_array){ISSMERROR("File param of enum %i (%s) cannot hold an array of matrices",enum_type,EnumAsString(enum_type));}
     66                void  SetValue(bool boolean){ISSMERROR("FileParam of enum %i (%s) cannot hold a string",enum_type,EnumToString(enum_type));}
     67                void  SetValue(int integer){ISSMERROR("FileParam of enum %i (%s) cannot hold a string",enum_type,EnumToString(enum_type));}
     68                void  SetValue(double scalar){ISSMERROR("FileParam of enum %i (%s) cannot hold a string",enum_type,EnumToString(enum_type));}
     69                void  SetValue(char* string){ISSMERROR("FileParam of enum %i (%s) cannot hold a string",enum_type,EnumToString(enum_type));}
     70                void  SetValue(char** stringarray,int M){ISSMERROR("FileParam of enum %i (%s) cannot hold a string array",enum_type,EnumToString(enum_type));}
     71                void  SetValue(double* doublearray,int M){ISSMERROR("FileParam of enum %i (%s) cannot hold a double array",enum_type,EnumToString(enum_type));}
     72                void  SetValue(double* pdoublearray,int M,int N){ISSMERROR("FileParam of enum %i (%s) cannot hold a double array",enum_type,EnumToString(enum_type));}
     73                void  SetValue(Vec vec){ISSMERROR("FileParam of enum %i (%s) cannot hold a Vec",enum_type,EnumToString(enum_type));}
     74                void  SetValue(Mat mat){ISSMERROR("FileParam of enum %i (%s) cannot hold a Mat",enum_type,EnumToString(enum_type));}
     75                void  SetValue(FILE* fid){ISSMERROR("File param of enum %i (%s) cannot hold a FILE",enum_type,EnumToString(enum_type));}
     76                void  SetValue(double** array, int M, int* mdim_array, int* ndim_array){ISSMERROR("File param of enum %i (%s) cannot hold an array of matrices",enum_type,EnumToString(enum_type));}
    7777
    7878                char* GetParameterName(void);
  • issm/trunk/src/c/objects/Params/IntParam.cpp

    r4546 r5103  
    4949
    5050        printf("IntParam:\n");
    51         printf("   enum:  %i (%s)\n",this->enum_type,EnumAsString(this->enum_type));
     51        printf("   enum:  %i (%s)\n",this->enum_type,EnumToString(this->enum_type));
    5252        printf("   value: %i\n",this->value);
    5353}
     
    129129/*FUNCTION IntParam::GetParameterName{{{1*/
    130130char* IntParam::GetParameterName(void){
    131         return  EnumAsString(this->enum_type);
     131        return  EnumToString(this->enum_type);
    132132}
    133133/*}}}*/
  • issm/trunk/src/c/objects/Params/IntParam.h

    r4873 r5103  
    5353                /*Param vritual function definitions: {{{1*/
    5454                int   EnumType(){return enum_type;}
    55                 void  GetParameterValue(bool* pbool){ISSMERROR("Int param of enum %i (%s) cannot return a bool",enum_type,EnumAsString(enum_type));}
     55                void  GetParameterValue(bool* pbool){ISSMERROR("Int param of enum %i (%s) cannot return a bool",enum_type,EnumToString(enum_type));}
    5656                void  GetParameterValue(int* pinteger){*pinteger=value;}
    57                 void  GetParameterValue(double* pdouble){ISSMERROR("Int param of enum %i (%s) cannot return a double",enum_type,EnumAsString(enum_type));}
    58                 void  GetParameterValue(char** pstring){ISSMERROR("Int param of enum %i (%s) cannot return a string",enum_type,EnumAsString(enum_type));}
    59                 void  GetParameterValue(char*** pstringarray,int* pM){ISSMERROR("Int param of enum %i (%s) cannot return a string arrayl",enum_type,EnumAsString(enum_type));}
    60                 void  GetParameterValue(double** pdoublearray,int* pM){ISSMERROR("Int param of enum %i (%s) cannot return a double array",enum_type,EnumAsString(enum_type));}
    61                 void  GetParameterValue(double** pdoublearray,int* pM, int* pN){ISSMERROR("Int param of enum %i (%s) cannot return a double array",enum_type,EnumAsString(enum_type));}
    62                 void  GetParameterValue(double*** parray, int* pM,int** pmdims, int** pndims){ISSMERROR("Int param of enum %i (%s) cannot return a matrix array",enum_type,EnumAsString(enum_type));}
    63                 void  GetParameterValue(Vec* pvec){ISSMERROR("Int param of enum %i (%s) cannot return a Vec",enum_type,EnumAsString(enum_type));}
    64                 void  GetParameterValue(Mat* pmat){ISSMERROR("Int param of enum %i (%s) cannot return a Mat",enum_type,EnumAsString(enum_type));}
    65                 void  GetParameterValue(FILE** pfid){ISSMERROR("Int param of enum %i (%s) cannot return a FILE",enum_type,EnumAsString(enum_type));}
     57                void  GetParameterValue(double* pdouble){ISSMERROR("Int param of enum %i (%s) cannot return a double",enum_type,EnumToString(enum_type));}
     58                void  GetParameterValue(char** pstring){ISSMERROR("Int param of enum %i (%s) cannot return a string",enum_type,EnumToString(enum_type));}
     59                void  GetParameterValue(char*** pstringarray,int* pM){ISSMERROR("Int param of enum %i (%s) cannot return a string arrayl",enum_type,EnumToString(enum_type));}
     60                void  GetParameterValue(double** pdoublearray,int* pM){ISSMERROR("Int param of enum %i (%s) cannot return a double array",enum_type,EnumToString(enum_type));}
     61                void  GetParameterValue(double** pdoublearray,int* pM, int* pN){ISSMERROR("Int param of enum %i (%s) cannot return a double array",enum_type,EnumToString(enum_type));}
     62                void  GetParameterValue(double*** parray, int* pM,int** pmdims, int** pndims){ISSMERROR("Int param of enum %i (%s) cannot return a matrix array",enum_type,EnumToString(enum_type));}
     63                void  GetParameterValue(Vec* pvec){ISSMERROR("Int param of enum %i (%s) cannot return a Vec",enum_type,EnumToString(enum_type));}
     64                void  GetParameterValue(Mat* pmat){ISSMERROR("Int param of enum %i (%s) cannot return a Mat",enum_type,EnumToString(enum_type));}
     65                void  GetParameterValue(FILE** pfid){ISSMERROR("Int param of enum %i (%s) cannot return a FILE",enum_type,EnumToString(enum_type));}
    6666
    6767                void  SetValue(bool boolean){this->value=(int)boolean;}
    6868                void  SetValue(int integer){this->value=integer;}
    6969                void  SetValue(double scalar){this->value=(int)scalar;}
    70                 void  SetValue(char* string){ISSMERROR("Int param of enum %i (%s) cannot hold a string",enum_type,EnumAsString(enum_type));}
    71                 void  SetValue(char** stringarray,int M){ISSMERROR("Int param of enum %i (%s) cannot hold a string array",enum_type,EnumAsString(enum_type));}
    72                 void  SetValue(double* doublearray,int M){ISSMERROR("Int param of enum %i (%s) cannot hold a double array",enum_type,EnumAsString(enum_type));}
    73                 void  SetValue(double* pdoublearray,int M,int N){ISSMERROR("Int param of enum %i (%s) cannot hold a double array",enum_type,EnumAsString(enum_type));}
    74                 void  SetValue(Vec vec){ISSMERROR("Int param of enum %i (%s) cannot hold a Vec",enum_type,EnumAsString(enum_type));}
    75                 void  SetValue(Mat mat){ISSMERROR("Int param of enum %i (%s) cannot hold a Mat",enum_type,EnumAsString(enum_type));}
    76                 void  SetValue(FILE* fid){ISSMERROR("Int param of enum %i (%s) cannot hold a FILE",enum_type,EnumAsString(enum_type));}
    77                 void  SetValue(double** array, int M, int* mdim_array, int* ndim_array){ISSMERROR("Int param of enum %i (%s) cannot hold an array of matrices",enum_type,EnumAsString(enum_type));}
     70                void  SetValue(char* string){ISSMERROR("Int param of enum %i (%s) cannot hold a string",enum_type,EnumToString(enum_type));}
     71                void  SetValue(char** stringarray,int M){ISSMERROR("Int param of enum %i (%s) cannot hold a string array",enum_type,EnumToString(enum_type));}
     72                void  SetValue(double* doublearray,int M){ISSMERROR("Int param of enum %i (%s) cannot hold a double array",enum_type,EnumToString(enum_type));}
     73                void  SetValue(double* pdoublearray,int M,int N){ISSMERROR("Int param of enum %i (%s) cannot hold a double array",enum_type,EnumToString(enum_type));}
     74                void  SetValue(Vec vec){ISSMERROR("Int param of enum %i (%s) cannot hold a Vec",enum_type,EnumToString(enum_type));}
     75                void  SetValue(Mat mat){ISSMERROR("Int param of enum %i (%s) cannot hold a Mat",enum_type,EnumToString(enum_type));}
     76                void  SetValue(FILE* fid){ISSMERROR("Int param of enum %i (%s) cannot hold a FILE",enum_type,EnumToString(enum_type));}
     77                void  SetValue(double** array, int M, int* mdim_array, int* ndim_array){ISSMERROR("Int param of enum %i (%s) cannot hold an array of matrices",enum_type,EnumToString(enum_type));}
    7878
    7979                char* GetParameterName(void);
  • issm/trunk/src/c/objects/Params/PetscMatParam.cpp

    r4546 r5103  
    4949
    5050        printf("PetscMatParam:\n");
    51         printf("   enum: %i (%s)\n",this->enum_type,EnumAsString(this->enum_type));
     51        printf("   enum: %i (%s)\n",this->enum_type,EnumToString(this->enum_type));
    5252
    5353}
     
    5858        int i;
    5959        printf("PetscMatParam:\n");
    60         printf("   enum: %i (%s)\n",this->enum_type,EnumAsString(this->enum_type));
     60        printf("   enum: %i (%s)\n",this->enum_type,EnumToString(this->enum_type));
    6161        MatView(value,PETSC_VIEWER_STDOUT_WORLD);
    6262}
     
    200200/*FUNCTION PetscMatParam::GetParameterName{{{1*/
    201201char* PetscMatParam::GetParameterName(void){
    202         return  EnumAsString(this->enum_type);
     202        return  EnumToString(this->enum_type);
    203203}
    204204/*}}}*/
  • issm/trunk/src/c/objects/Params/PetscMatParam.h

    r4873 r5103  
    5454                /*Param vritual function definitions: {{{1*/
    5555                int   EnumType(){return enum_type;}
    56                 void  GetParameterValue(bool* pbool){ISSMERROR("PetscMat param of enum %i (%s) cannot return a bool",enum_type,EnumAsString(enum_type));}
    57                 void  GetParameterValue(int* pinteger){ISSMERROR("PetscMat param of enum %i (%s) cannot return an integer",enum_type,EnumAsString(enum_type));}
    58                 void  GetParameterValue(double* pdouble){ISSMERROR("PetscMat param of enum %i (%s) cannot return a double",enum_type,EnumAsString(enum_type));}
    59                 void  GetParameterValue(char** pstring){ISSMERROR("PetscMat param of enum %i (%s) cannot return a string",enum_type,EnumAsString(enum_type));}
    60                 void  GetParameterValue(char*** pstringarray,int* pM){ISSMERROR("PetscMat param of enum %i (%s) cannot return a string arrayl",enum_type,EnumAsString(enum_type));}
    61                 void  GetParameterValue(double** pdoublearray,int* pM){ISSMERROR("PetscMat param of enum %i (%s) cannot return a double array",enum_type,EnumAsString(enum_type));}
    62                 void  GetParameterValue(double** pdoublearray,int* pM, int* pN){ISSMERROR("PetscMat param of enum %i (%s) cannot return a double array",enum_type,EnumAsString(enum_type));}
    63                 void  GetParameterValue(double*** parray, int* pM,int** pmdims, int** pndims){ISSMERROR("PetscMat param of enum %i (%s) cannot return a matrix array",enum_type,EnumAsString(enum_type));}
    64                 void  GetParameterValue(Vec* pvec){ISSMERROR("PetscMat param of enum %i (%s) cannot return a vec",enum_type,EnumAsString(enum_type));}
     56                void  GetParameterValue(bool* pbool){ISSMERROR("PetscMat param of enum %i (%s) cannot return a bool",enum_type,EnumToString(enum_type));}
     57                void  GetParameterValue(int* pinteger){ISSMERROR("PetscMat param of enum %i (%s) cannot return an integer",enum_type,EnumToString(enum_type));}
     58                void  GetParameterValue(double* pdouble){ISSMERROR("PetscMat param of enum %i (%s) cannot return a double",enum_type,EnumToString(enum_type));}
     59                void  GetParameterValue(char** pstring){ISSMERROR("PetscMat param of enum %i (%s) cannot return a string",enum_type,EnumToString(enum_type));}
     60                void  GetParameterValue(char*** pstringarray,int* pM){ISSMERROR("PetscMat param of enum %i (%s) cannot return a string arrayl",enum_type,EnumToString(enum_type));}
     61                void  GetParameterValue(double** pdoublearray,int* pM){ISSMERROR("PetscMat param of enum %i (%s) cannot return a double array",enum_type,EnumToString(enum_type));}
     62                void  GetParameterValue(double** pdoublearray,int* pM, int* pN){ISSMERROR("PetscMat param of enum %i (%s) cannot return a double array",enum_type,EnumToString(enum_type));}
     63                void  GetParameterValue(double*** parray, int* pM,int** pmdims, int** pndims){ISSMERROR("PetscMat param of enum %i (%s) cannot return a matrix array",enum_type,EnumToString(enum_type));}
     64                void  GetParameterValue(Vec* pvec){ISSMERROR("PetscMat param of enum %i (%s) cannot return a vec",enum_type,EnumToString(enum_type));}
    6565                void  GetParameterValue(Mat* poutput);
    66                 void  GetParameterValue(FILE** pfid){ISSMERROR("PetscMat param of enum %i (%s) cannot return a FILE",enum_type,EnumAsString(enum_type));}
     66                void  GetParameterValue(FILE** pfid){ISSMERROR("PetscMat param of enum %i (%s) cannot return a FILE",enum_type,EnumToString(enum_type));}
    6767
    68                 void  SetValue(bool boolean){ISSMERROR("PetscMat param of enum %i (%s) cannot hold a boolean",enum_type,EnumAsString(enum_type));}
    69                 void  SetValue(int integer){ISSMERROR("PetscMat param of enum %i (%s) cannot hold an integer",enum_type,EnumAsString(enum_type));}
    70                 void  SetValue(double scalar){ISSMERROR("PetscMat param of enum %i (%s) cannot hold a scalar",enum_type,EnumAsString(enum_type));}
    71                 void  SetValue(char* string){ISSMERROR("PetscMat param of enum %i (%s) cannot hold a string",enum_type,EnumAsString(enum_type));}
    72                 void  SetValue(char** stringarray,int M){ISSMERROR("PetscMat param of enum %i (%s) cannot hold a string array",enum_type,EnumAsString(enum_type));}
    73                 void  SetValue(double* doublearray,int M){ISSMERROR("PetscMat param of enum %i (%s) cannot hold a double array",enum_type,EnumAsString(enum_type));}
    74                 void  SetValue(double* pdoublearray,int M,int N){ISSMERROR("PetscMat param of enum %i (%s) cannot hold a double array",enum_type,EnumAsString(enum_type));}
    75                 void  SetValue(Vec vec){ISSMERROR("PetscMat param of enum %i (%s) cannot hold a Vec",enum_type,EnumAsString(enum_type));}
     68                void  SetValue(bool boolean){ISSMERROR("PetscMat param of enum %i (%s) cannot hold a boolean",enum_type,EnumToString(enum_type));}
     69                void  SetValue(int integer){ISSMERROR("PetscMat param of enum %i (%s) cannot hold an integer",enum_type,EnumToString(enum_type));}
     70                void  SetValue(double scalar){ISSMERROR("PetscMat param of enum %i (%s) cannot hold a scalar",enum_type,EnumToString(enum_type));}
     71                void  SetValue(char* string){ISSMERROR("PetscMat param of enum %i (%s) cannot hold a string",enum_type,EnumToString(enum_type));}
     72                void  SetValue(char** stringarray,int M){ISSMERROR("PetscMat param of enum %i (%s) cannot hold a string array",enum_type,EnumToString(enum_type));}
     73                void  SetValue(double* doublearray,int M){ISSMERROR("PetscMat param of enum %i (%s) cannot hold a double array",enum_type,EnumToString(enum_type));}
     74                void  SetValue(double* pdoublearray,int M,int N){ISSMERROR("PetscMat param of enum %i (%s) cannot hold a double array",enum_type,EnumToString(enum_type));}
     75                void  SetValue(Vec vec){ISSMERROR("PetscMat param of enum %i (%s) cannot hold a Vec",enum_type,EnumToString(enum_type));}
    7676                void  SetValue(Mat mat);
    77                 void  SetValue(FILE* fid){ISSMERROR("PetscMat param of enum %i (%s) cannot hold a FILE",enum_type,EnumAsString(enum_type));}
    78                 void  SetValue(double** array, int M, int* mdim_array, int* ndim_array){ISSMERROR("PetscMat param of enum %i (%s) cannot hold an array of matrices",enum_type,EnumAsString(enum_type));}
     77                void  SetValue(FILE* fid){ISSMERROR("PetscMat param of enum %i (%s) cannot hold a FILE",enum_type,EnumToString(enum_type));}
     78                void  SetValue(double** array, int M, int* mdim_array, int* ndim_array){ISSMERROR("PetscMat param of enum %i (%s) cannot hold an array of matrices",enum_type,EnumToString(enum_type));}
    7979
    8080                char* GetParameterName(void);
  • issm/trunk/src/c/objects/Params/PetscVecParam.cpp

    r4546 r5103  
    5050
    5151        printf("PetscVecParam:\n");
    52         printf("   enum: %i (%s)\n",this->enum_type,EnumAsString(this->enum_type));
     52        printf("   enum: %i (%s)\n",this->enum_type,EnumToString(this->enum_type));
    5353
    5454}
     
    5959        int i;
    6060        printf("PetscVecParam:\n");
    61         printf("   enum: %i (%s)\n",this->enum_type,EnumAsString(this->enum_type));
     61        printf("   enum: %i (%s)\n",this->enum_type,EnumToString(this->enum_type));
    6262        VecView(value,PETSC_VIEWER_STDOUT_WORLD);
    6363}
     
    193193/*FUNCTION PetscVecParam::GetParameterName{{{1*/
    194194char* PetscVecParam::GetParameterName(void){
    195         return  EnumAsString(this->enum_type);
     195        return  EnumToString(this->enum_type);
    196196}
    197197/*}}}*/
  • issm/trunk/src/c/objects/Params/PetscVecParam.h

    r4873 r5103  
    5454                /*Param vritual function definitions: {{{1*/
    5555                int   EnumType(){return enum_type;}
    56                 void  GetParameterValue(bool* pbool){ISSMERROR("PetscVec param of enum %i (%s) cannot return a bool",enum_type,EnumAsString(enum_type));}
    57                 void  GetParameterValue(int* pinteger){ISSMERROR("PetscVec param of enum %i (%s) cannot return an integer",enum_type,EnumAsString(enum_type));}
    58                 void  GetParameterValue(double* pdouble){ISSMERROR("PetscVec param of enum %i (%s) cannot return a double",enum_type,EnumAsString(enum_type));}
    59                 void  GetParameterValue(char** pstring){ISSMERROR("PetscVec param of enum %i (%s) cannot return a string",enum_type,EnumAsString(enum_type));}
    60                 void  GetParameterValue(char*** pstringarray,int* pM){ISSMERROR("PetscVec param of enum %i (%s) cannot return a string arrayl",enum_type,EnumAsString(enum_type));}
    61                 void  GetParameterValue(double** pdoublearray,int* pM){ISSMERROR("PetscVec param of enum %i (%s) cannot return a double array",enum_type,EnumAsString(enum_type));}
    62                 void  GetParameterValue(double** pdoublearray,int* pM, int* pN){ISSMERROR("PetscVec param of enum %i (%s) cannot return a double array",enum_type,EnumAsString(enum_type));}
    63                 void  GetParameterValue(double*** parray, int* pM,int** pmdims, int** pndims){ISSMERROR("PetscVec param of enum %i (%s) cannot return a matrix array",enum_type,EnumAsString(enum_type));}
    64                 void  GetParameterValue(Mat* pmat){ISSMERROR("PetscVec param of enum %i (%s) cannot return a Mat",enum_type,EnumAsString(enum_type));}
     56                void  GetParameterValue(bool* pbool){ISSMERROR("PetscVec param of enum %i (%s) cannot return a bool",enum_type,EnumToString(enum_type));}
     57                void  GetParameterValue(int* pinteger){ISSMERROR("PetscVec param of enum %i (%s) cannot return an integer",enum_type,EnumToString(enum_type));}
     58                void  GetParameterValue(double* pdouble){ISSMERROR("PetscVec param of enum %i (%s) cannot return a double",enum_type,EnumToString(enum_type));}
     59                void  GetParameterValue(char** pstring){ISSMERROR("PetscVec param of enum %i (%s) cannot return a string",enum_type,EnumToString(enum_type));}
     60                void  GetParameterValue(char*** pstringarray,int* pM){ISSMERROR("PetscVec param of enum %i (%s) cannot return a string arrayl",enum_type,EnumToString(enum_type));}
     61                void  GetParameterValue(double** pdoublearray,int* pM){ISSMERROR("PetscVec param of enum %i (%s) cannot return a double array",enum_type,EnumToString(enum_type));}
     62                void  GetParameterValue(double** pdoublearray,int* pM, int* pN){ISSMERROR("PetscVec param of enum %i (%s) cannot return a double array",enum_type,EnumToString(enum_type));}
     63                void  GetParameterValue(double*** parray, int* pM,int** pmdims, int** pndims){ISSMERROR("PetscVec param of enum %i (%s) cannot return a matrix array",enum_type,EnumToString(enum_type));}
     64                void  GetParameterValue(Mat* pmat){ISSMERROR("PetscVec param of enum %i (%s) cannot return a Mat",enum_type,EnumToString(enum_type));}
    6565                void  GetParameterValue(Vec* poutput);
    66                 void  GetParameterValue(FILE** pfid){ISSMERROR("PetscVec of enum %i (%s) cannot return a FILE",enum_type,EnumAsString(enum_type));}
     66                void  GetParameterValue(FILE** pfid){ISSMERROR("PetscVec of enum %i (%s) cannot return a FILE",enum_type,EnumToString(enum_type));}
    6767
    68                 void  SetValue(bool boolean){ISSMERROR("PetscVec of enum %i (%s) cannot hold a boolean",enum_type,EnumAsString(enum_type));}
    69                 void  SetValue(int integer){ISSMERROR("PetscVec of enum %i (%s) cannot hold an integer",enum_type,EnumAsString(enum_type));}
    70                 void  SetValue(double scalar){ISSMERROR("PetscVec of enum %i (%s) cannot hold a scalar",enum_type,EnumAsString(enum_type));}
    71                 void  SetValue(char* string){ISSMERROR("PetscVec of enum %i (%s) cannot hold a string",enum_type,EnumAsString(enum_type));}
    72                 void  SetValue(char** stringarray,int M){ISSMERROR("PetscVec of enum %i (%s) cannot hold a string array",enum_type,EnumAsString(enum_type));}
    73                 void  SetValue(double* doublearray,int M){ISSMERROR("PetscVec of enum %i (%s) cannot hold a double array",enum_type,EnumAsString(enum_type));}
    74                 void  SetValue(double* pdoublearray,int M,int N){ISSMERROR("PetscVec of enum %i (%s) cannot hold a double array",enum_type,EnumAsString(enum_type));}
     68                void  SetValue(bool boolean){ISSMERROR("PetscVec of enum %i (%s) cannot hold a boolean",enum_type,EnumToString(enum_type));}
     69                void  SetValue(int integer){ISSMERROR("PetscVec of enum %i (%s) cannot hold an integer",enum_type,EnumToString(enum_type));}
     70                void  SetValue(double scalar){ISSMERROR("PetscVec of enum %i (%s) cannot hold a scalar",enum_type,EnumToString(enum_type));}
     71                void  SetValue(char* string){ISSMERROR("PetscVec of enum %i (%s) cannot hold a string",enum_type,EnumToString(enum_type));}
     72                void  SetValue(char** stringarray,int M){ISSMERROR("PetscVec of enum %i (%s) cannot hold a string array",enum_type,EnumToString(enum_type));}
     73                void  SetValue(double* doublearray,int M){ISSMERROR("PetscVec of enum %i (%s) cannot hold a double array",enum_type,EnumToString(enum_type));}
     74                void  SetValue(double* pdoublearray,int M,int N){ISSMERROR("PetscVec of enum %i (%s) cannot hold a double array",enum_type,EnumToString(enum_type));}
    7575                void  SetValue(Vec vec);
    76                 void  SetValue(Mat mat){ISSMERROR("PetscVec of enum %i (%s) cannot hold a Mat",enum_type,EnumAsString(enum_type));}
    77                 void  SetValue(FILE* fid){ISSMERROR("PetscVec of enum %i (%s) cannot hold a FILE",enum_type,EnumAsString(enum_type));}
    78                 void  SetValue(double** array, int M, int* mdim_array, int* ndim_array){ISSMERROR("PetscVec param of enum %i (%s) cannot hold an array of matrices",enum_type,EnumAsString(enum_type));}
     76                void  SetValue(Mat mat){ISSMERROR("PetscVec of enum %i (%s) cannot hold a Mat",enum_type,EnumToString(enum_type));}
     77                void  SetValue(FILE* fid){ISSMERROR("PetscVec of enum %i (%s) cannot hold a FILE",enum_type,EnumToString(enum_type));}
     78                void  SetValue(double** array, int M, int* mdim_array, int* ndim_array){ISSMERROR("PetscVec param of enum %i (%s) cannot hold an array of matrices",enum_type,EnumToString(enum_type));}
    7979
    8080                char* GetParameterName(void);
  • issm/trunk/src/c/objects/Params/StringArrayParam.cpp

    r5016 r5103  
    7373
    7474        printf("StringArrayParam:\n");
    75         printf("   enum: %i (%s)\n",this->enum_type,EnumAsString(this->enum_type));
     75        printf("   enum: %i (%s)\n",this->enum_type,EnumToString(this->enum_type));
    7676        for(i=0;i<this->numstrings;i++){
    7777                string=this->value[i];
     
    222222/*FUNCTION StringArrayParam::GetParameterName{{{1*/
    223223char* StringArrayParam::GetParameterName(void){
    224         return  EnumAsString(this->enum_type);
     224        return  EnumToString(this->enum_type);
    225225}
    226226/*}}}*/
  • issm/trunk/src/c/objects/Params/StringArrayParam.h

    r4873 r5103  
    5656                /*Param vritual function definitions: {{{1*/
    5757                int   EnumType(){return enum_type;}
    58                 void  GetParameterValue(bool* pbool){ISSMERROR("StringArray param of enum %i (%s) cannot return a bool",enum_type,EnumAsString(enum_type));}
    59                 void  GetParameterValue(int* pinteger){ISSMERROR("StringArray param of enum %i (%s) cannot return an integer",enum_type,EnumAsString(enum_type));}
    60                 void  GetParameterValue(double* pdouble){ISSMERROR("StringArray param of enum %i (%s) cannot return a double",enum_type,EnumAsString(enum_type));}
    61                 void  GetParameterValue(char** pstring){ISSMERROR("StringArray param of enum %i (%s) cannot return a string",enum_type,EnumAsString(enum_type));}
     58                void  GetParameterValue(bool* pbool){ISSMERROR("StringArray param of enum %i (%s) cannot return a bool",enum_type,EnumToString(enum_type));}
     59                void  GetParameterValue(int* pinteger){ISSMERROR("StringArray param of enum %i (%s) cannot return an integer",enum_type,EnumToString(enum_type));}
     60                void  GetParameterValue(double* pdouble){ISSMERROR("StringArray param of enum %i (%s) cannot return a double",enum_type,EnumToString(enum_type));}
     61                void  GetParameterValue(char** pstring){ISSMERROR("StringArray param of enum %i (%s) cannot return a string",enum_type,EnumToString(enum_type));}
    6262                void  GetParameterValue(char*** pstringarray,int* pM);
    63                 void  GetParameterValue(double** pdoublearray,int* pM){ISSMERROR("StringArray param of enum %i (%s) cannot return a double array",enum_type,EnumAsString(enum_type));}
    64                 void  GetParameterValue(double** pdoublearray,int* pM, int* pN){ISSMERROR("StringArray param of enum %i (%s) cannot return a double array",enum_type,EnumAsString(enum_type));}
    65                 void  GetParameterValue(double*** parray, int* pM,int** pmdims, int** pndims){ISSMERROR("Vec param of enum %i (%s) cannot return a matrix array",enum_type,EnumAsString(enum_type));}
    66                 void  GetParameterValue(Vec* pvec){ISSMERROR("StringArray param of enum %i (%s) cannot return a Vec",enum_type,EnumAsString(enum_type));}
    67                 void  GetParameterValue(Mat* pmat){ISSMERROR("StringArray param of enum %i (%s) cannot return a Mat",enum_type,EnumAsString(enum_type));}
    68                 void  GetParameterValue(FILE** pfid){ISSMERROR("StringArray param of enum %i (%s) cannot return a FILE",enum_type,EnumAsString(enum_type));}
     63                void  GetParameterValue(double** pdoublearray,int* pM){ISSMERROR("StringArray param of enum %i (%s) cannot return a double array",enum_type,EnumToString(enum_type));}
     64                void  GetParameterValue(double** pdoublearray,int* pM, int* pN){ISSMERROR("StringArray param of enum %i (%s) cannot return a double array",enum_type,EnumToString(enum_type));}
     65                void  GetParameterValue(double*** parray, int* pM,int** pmdims, int** pndims){ISSMERROR("Vec param of enum %i (%s) cannot return a matrix array",enum_type,EnumToString(enum_type));}
     66                void  GetParameterValue(Vec* pvec){ISSMERROR("StringArray param of enum %i (%s) cannot return a Vec",enum_type,EnumToString(enum_type));}
     67                void  GetParameterValue(Mat* pmat){ISSMERROR("StringArray param of enum %i (%s) cannot return a Mat",enum_type,EnumToString(enum_type));}
     68                void  GetParameterValue(FILE** pfid){ISSMERROR("StringArray param of enum %i (%s) cannot return a FILE",enum_type,EnumToString(enum_type));}
    6969
    70                 void  SetValue(bool boolean){ISSMERROR("StringArray param of enum %i (%s) cannot hold a boolean",enum_type,EnumAsString(enum_type));}
    71                 void  SetValue(int integer){ISSMERROR("StringArray param of enum %i (%s) cannot hold an integer",enum_type,EnumAsString(enum_type));}
    72                 void  SetValue(double scalar){ISSMERROR("StringArray param of enum %i (%s) cannot hold a scalar",enum_type,EnumAsString(enum_type));}
    73                 void  SetValue(char* string){ISSMERROR("StringArray param of enum %i (%s) cannot hold a string",enum_type,EnumAsString(enum_type));}
     70                void  SetValue(bool boolean){ISSMERROR("StringArray param of enum %i (%s) cannot hold a boolean",enum_type,EnumToString(enum_type));}
     71                void  SetValue(int integer){ISSMERROR("StringArray param of enum %i (%s) cannot hold an integer",enum_type,EnumToString(enum_type));}
     72                void  SetValue(double scalar){ISSMERROR("StringArray param of enum %i (%s) cannot hold a scalar",enum_type,EnumToString(enum_type));}
     73                void  SetValue(char* string){ISSMERROR("StringArray param of enum %i (%s) cannot hold a string",enum_type,EnumToString(enum_type));}
    7474                void  SetValue(char** stringarray,int M);
    75                 void  SetValue(double* doublearray,int M){ISSMERROR("StringArray param of enum %i (%s) cannot hold a double array",enum_type,EnumAsString(enum_type));}
    76                 void  SetValue(double* pdoublearray,int M,int N){ISSMERROR("StringArray param of enum %i (%s) cannot hold a double array",enum_type,EnumAsString(enum_type));}
    77                 void  SetValue(Vec vec){ISSMERROR("StringArray param of enum %i (%s) cannot hold a Vec",enum_type,EnumAsString(enum_type));}
    78                 void  SetValue(Mat mat){ISSMERROR("StringArray param of enum %i (%s) cannot hold a Mat",enum_type,EnumAsString(enum_type));}
    79                 void  SetValue(FILE* fid){ISSMERROR("StringArray param of enum %i (%s) cannot hold a FILE",enum_type,EnumAsString(enum_type));}
    80                 void  SetValue(double** array, int M, int* mdim_array, int* ndim_array){ISSMERROR("StringArray param of enum %i (%s) cannot hold an array of matrices",enum_type,EnumAsString(enum_type));}
     75                void  SetValue(double* doublearray,int M){ISSMERROR("StringArray param of enum %i (%s) cannot hold a double array",enum_type,EnumToString(enum_type));}
     76                void  SetValue(double* pdoublearray,int M,int N){ISSMERROR("StringArray param of enum %i (%s) cannot hold a double array",enum_type,EnumToString(enum_type));}
     77                void  SetValue(Vec vec){ISSMERROR("StringArray param of enum %i (%s) cannot hold a Vec",enum_type,EnumToString(enum_type));}
     78                void  SetValue(Mat mat){ISSMERROR("StringArray param of enum %i (%s) cannot hold a Mat",enum_type,EnumToString(enum_type));}
     79                void  SetValue(FILE* fid){ISSMERROR("StringArray param of enum %i (%s) cannot hold a FILE",enum_type,EnumToString(enum_type));}
     80                void  SetValue(double** array, int M, int* mdim_array, int* ndim_array){ISSMERROR("StringArray param of enum %i (%s) cannot hold an array of matrices",enum_type,EnumToString(enum_type));}
    8181
    8282                char* GetParameterName(void);
  • issm/trunk/src/c/objects/Params/StringParam.cpp

    r5016 r5103  
    5050void StringParam::DeepEcho(void){
    5151        printf("StringParam:\n");
    52         printf("   enum:  %i (%s)\n",this->enum_type,EnumAsString(this->enum_type));
     52        printf("   enum:  %i (%s)\n",this->enum_type,EnumToString(this->enum_type));
    5353        printf("   value: %s\n",this->value);
    5454}
     
    158158/*FUNCTION StringParam::GetParameterName{{{1*/
    159159char* StringParam::GetParameterName(void){
    160         return  EnumAsString(this->enum_type);
     160        return  EnumToString(this->enum_type);
    161161}
    162162/*}}}*/
  • issm/trunk/src/c/objects/Params/StringParam.h

    r4873 r5103  
    5454                /*Param vritual function definitions: {{{1*/
    5555                int   EnumType(){return enum_type;}
    56                 void  GetParameterValue(bool* pbool){ISSMERROR("String param of enum %i (%s) cannot return a bool",enum_type,EnumAsString(enum_type));}
    57                 void  GetParameterValue(int* pinteger){ISSMERROR("String param of enum %i (%s) cannot return an integer",enum_type,EnumAsString(enum_type));}
    58                 void  GetParameterValue(double* pdouble){ISSMERROR("String param of enum %i (%s) cannot return a double",enum_type,EnumAsString(enum_type));}
     56                void  GetParameterValue(bool* pbool){ISSMERROR("String param of enum %i (%s) cannot return a bool",enum_type,EnumToString(enum_type));}
     57                void  GetParameterValue(int* pinteger){ISSMERROR("String param of enum %i (%s) cannot return an integer",enum_type,EnumToString(enum_type));}
     58                void  GetParameterValue(double* pdouble){ISSMERROR("String param of enum %i (%s) cannot return a double",enum_type,EnumToString(enum_type));}
    5959                void  GetParameterValue(char** pstring);
    60                 void  GetParameterValue(char*** pstringarray,int* pM){ISSMERROR("String param of enum %i (%s) cannot return a string arrayl",enum_type,EnumAsString(enum_type));}
    61                 void  GetParameterValue(double** pdoublearray,int* pM){ISSMERROR("String param of enum %i (%s) cannot return a double array",enum_type,EnumAsString(enum_type));}
    62                 void  GetParameterValue(double** pdoublearray,int* pM, int* pN){ISSMERROR("String param of enum %i (%s) cannot return a double array",enum_type,EnumAsString(enum_type));}
    63                 void  GetParameterValue(double*** parray, int* pM,int** pmdims, int** pndims){ISSMERROR("String param of enum %i (%s) cannot return a matrix array",enum_type,EnumAsString(enum_type));}
    64                 void  GetParameterValue(Vec* pvec){ISSMERROR("String param of enum %i (%s) cannot return a Vec",enum_type,EnumAsString(enum_type));}
    65                 void  GetParameterValue(Mat* pmat){ISSMERROR("String param of enum %i (%s) cannot return a Mat",enum_type,EnumAsString(enum_type));}
    66                 void  GetParameterValue(FILE** pfid){ISSMERROR("Bool param of enum %i (%s) cannot return a FILE",enum_type,EnumAsString(enum_type));}
     60                void  GetParameterValue(char*** pstringarray,int* pM){ISSMERROR("String param of enum %i (%s) cannot return a string arrayl",enum_type,EnumToString(enum_type));}
     61                void  GetParameterValue(double** pdoublearray,int* pM){ISSMERROR("String param of enum %i (%s) cannot return a double array",enum_type,EnumToString(enum_type));}
     62                void  GetParameterValue(double** pdoublearray,int* pM, int* pN){ISSMERROR("String param of enum %i (%s) cannot return a double array",enum_type,EnumToString(enum_type));}
     63                void  GetParameterValue(double*** parray, int* pM,int** pmdims, int** pndims){ISSMERROR("String param of enum %i (%s) cannot return a matrix array",enum_type,EnumToString(enum_type));}
     64                void  GetParameterValue(Vec* pvec){ISSMERROR("String param of enum %i (%s) cannot return a Vec",enum_type,EnumToString(enum_type));}
     65                void  GetParameterValue(Mat* pmat){ISSMERROR("String param of enum %i (%s) cannot return a Mat",enum_type,EnumToString(enum_type));}
     66                void  GetParameterValue(FILE** pfid){ISSMERROR("Bool param of enum %i (%s) cannot return a FILE",enum_type,EnumToString(enum_type));}
    6767
    68                 void  SetValue(bool boolean){ISSMERROR("String param of enum %i (%s) cannot hold a boolean",enum_type,EnumAsString(enum_type));}
    69                 void  SetValue(int integer){ISSMERROR("String param of enum %i (%s) cannot hold an integer",enum_type,EnumAsString(enum_type));}
    70                 void  SetValue(double scalar){ISSMERROR("String param of enum %i (%s) cannot hold a scalar",enum_type,EnumAsString(enum_type));}
     68                void  SetValue(bool boolean){ISSMERROR("String param of enum %i (%s) cannot hold a boolean",enum_type,EnumToString(enum_type));}
     69                void  SetValue(int integer){ISSMERROR("String param of enum %i (%s) cannot hold an integer",enum_type,EnumToString(enum_type));}
     70                void  SetValue(double scalar){ISSMERROR("String param of enum %i (%s) cannot hold a scalar",enum_type,EnumToString(enum_type));}
    7171                void  SetValue(char* string);
    72                 void  SetValue(char** stringarray,int M){ISSMERROR("String param of enum %i (%s) cannot hold a string array",enum_type,EnumAsString(enum_type));}
    73                 void  SetValue(double* doublearray,int M){ISSMERROR("String param of enum %i (%s) cannot hold a double array",enum_type,EnumAsString(enum_type));}
    74                 void  SetValue(double* pdoublearray,int M,int N){ISSMERROR("String param of enum %i (%s) cannot hold a double array",enum_type,EnumAsString(enum_type));}
    75                 void  SetValue(Vec vec){ISSMERROR("String param of enum %i (%s) cannot hold a Vec",enum_type,EnumAsString(enum_type));}
    76                 void  SetValue(Mat mat){ISSMERROR("String param of enum %i (%s) cannot hold a Mat",enum_type,EnumAsString(enum_type));}
    77                 void  SetValue(FILE* fid){ISSMERROR("String param of enum %i (%s) cannot hold a FILE",enum_type,EnumAsString(enum_type));}
    78                 void  SetValue(double** array, int M, int* mdim_array, int* ndim_array){ISSMERROR("String param of enum %i (%s) cannot hold an array of matrices",enum_type,EnumAsString(enum_type));}
     72                void  SetValue(char** stringarray,int M){ISSMERROR("String param of enum %i (%s) cannot hold a string array",enum_type,EnumToString(enum_type));}
     73                void  SetValue(double* doublearray,int M){ISSMERROR("String param of enum %i (%s) cannot hold a double array",enum_type,EnumToString(enum_type));}
     74                void  SetValue(double* pdoublearray,int M,int N){ISSMERROR("String param of enum %i (%s) cannot hold a double array",enum_type,EnumToString(enum_type));}
     75                void  SetValue(Vec vec){ISSMERROR("String param of enum %i (%s) cannot hold a Vec",enum_type,EnumToString(enum_type));}
     76                void  SetValue(Mat mat){ISSMERROR("String param of enum %i (%s) cannot hold a Mat",enum_type,EnumToString(enum_type));}
     77                void  SetValue(FILE* fid){ISSMERROR("String param of enum %i (%s) cannot hold a FILE",enum_type,EnumToString(enum_type));}
     78                void  SetValue(double** array, int M, int* mdim_array, int* ndim_array){ISSMERROR("String param of enum %i (%s) cannot hold an array of matrices",enum_type,EnumToString(enum_type));}
    7979
    8080                char* GetParameterName(void);
  • issm/trunk/src/c/shared/Dofs/DistributeNumDofs.cpp

    r4765 r5103  
    4343                numdofs=1;
    4444        }
    45         else ISSMERROR("analysis type: %i (%s) not implemented yet",analysis_type,EnumAsString(analysis_type));
     45        else ISSMERROR("analysis type: %i (%s) not implemented yet",analysis_type,EnumToString(analysis_type));
    4646
    4747        /*Assign output pointers:*/
  • issm/trunk/src/c/shared/Numerics/IsInputConverged.cpp

    r4880 r5103  
    5353                else eps=0;
    5454        }
    55         else ISSMERROR("%s%s%s"," convergence criterion ",EnumAsString(criterion_enum)," not supported yet!");
     55        else ISSMERROR("%s%s%s"," convergence criterion ",EnumToString(criterion_enum)," not supported yet!");
    5656
    5757        /*Assign output pointers:*/
  • issm/trunk/src/c/solutions/SolutionConfiguration.cpp

    r4765 r5103  
    126126
    127127                default:
    128                         ISSMERROR("%s%s%s"," solution type: ",EnumAsString(solutiontype)," not supported yet!");
     128                        ISSMERROR("%s%s%s"," solution type: ",EnumToString(solutiontype)," not supported yet!");
    129129                        break;
    130130        }
  • issm/trunk/src/c/solutions/control_core.cpp

    r5011 r5103  
    106106        InputToResultx(femmodel->elements,femmodel->nodes,femmodel->vertices,femmodel->loads,femmodel->materials,femmodel->parameters,GradientEnum);
    107107        femmodel->results->AddObject(new DoubleVecExternalResult(femmodel->results->Size()+1,JEnum,J,nsteps,1,0));
    108         femmodel->results->AddObject(new StringExternalResult(femmodel->results->Size()+1,ControlTypeEnum,EnumAsString(control_type),1,0));
     108        femmodel->results->AddObject(new StringExternalResult(femmodel->results->Size()+1,ControlTypeEnum,EnumToString(control_type),1,0));
    109109
    110110        cleanup_and_return:
  • issm/trunk/src/c/solutions/controlrestart.cpp

    r4873 r5103  
    1919        InputToResultx(femmodel->elements,femmodel->nodes,femmodel->vertices,femmodel->loads,femmodel->materials,femmodel->parameters,control_type); //the parameter itself!
    2020        femmodel->results->AddObject(new DoubleVecExternalResult(femmodel->results->Size()+1,JEnum,J,nsteps,1,0));
    21         femmodel->results->AddObject(new StringExternalResult(femmodel->results->Size()+1,ControlTypeEnum,EnumAsString(control_type),1,0));
     21        femmodel->results->AddObject(new StringExternalResult(femmodel->results->Size()+1,ControlTypeEnum,EnumToString(control_type),1,0));
    2222
    2323        /*write to disk: */
  • issm/trunk/src/c/solutions/issm.cpp

    r5023 r5103  
    5050
    5151        _printf_("recover solution and file names:\n");
    52         solution_type=StringAsEnum(argv[1]);
     52        solution_type=StringToEnum(argv[1]);
    5353        inputfilename=argv[3];
    5454        outputfilename=argv[4];
  • issm/trunk/src/m/classes/public/loadresultsfromdisk.m

    r4202 r5103  
    2525        md.analysis_type=structure(1).SolutionType;
    2626        if isscalar(md.sub_analysis_type),
    27                 md.sub_analysis_type=EnumAsString(md.sub_analysis_type);
     27                md.sub_analysis_type=EnumToString(md.sub_analysis_type);
    2828        end
    2929
     
    3838else
    3939
    40         md.analysis_type    =EnumAsString(md.analysis_type);
    41         md.sub_analysis_type=EnumAsString(md.sub_analysis_type);
     40        md.analysis_type    =EnumToString(md.analysis_type);
     41        md.sub_analysis_type=EnumToString(md.sub_analysis_type);
    4242        md=postqmu(md);
    4343        cd ..
  • issm/trunk/src/m/classes/public/process_solve_options.m

    r5088 r5103  
    2727                SteadystateSolutionEnum,ParametersSolutionEnum,Transient2DSolutionEnum,Transient3DSolutionEnum...
    2828                BalancedthicknessSolutionEnum,BalancedvelocitiesSolutionEnum,BedSlopeSolutionEnum,SurfaceSlopeSolutionEnum]),
    29         error(['process_solve_options error message: analysis_type ' EnumAsString(analysis_type) ' not supported yet!']);
     29        error(['process_solve_options error message: analysis_type ' EnumToString(analysis_type) ' not supported yet!']);
    3030end
    3131if ~ismember(sub_analysis_type,[SteadyAnalysisEnum,NoneAnalysisEnum,HorizAnalysisEnum,GradientAnalysisEnum,InverseAnalysisEnum,VertAnalysisEnum,TransientAnalysisEnum]),
  • issm/trunk/src/m/classes/public/queue/ClusterScript.m

    r4829 r5103  
    2020        fprintf(fid,'ulimit -s unlimited\n');
    2121        fprintf(fid,'ulimit -c 0\n');
    22         fprintf(fid,'/opt/mpich/gm/intel10.1/bin/mpirun -np %i %s/issm.exe %s %s %s.bin %s.outbin %s.lock',np,codepath,EnumAsString(analysis_type),executionpath,name,name,name);
     22        fprintf(fid,'/opt/mpich/gm/intel10.1/bin/mpirun -np %i %s/issm.exe %s %s %s.bin %s.outbin %s.lock',np,codepath,EnumToString(analysis_type),executionpath,name,name,name);
    2323
    2424        % }}}
     
    2828        fprintf(fid,'rm -rf %s/%s.lock\n',executionpath,name);
    2929        if mem_debug==0,
    30                 fprintf(fid,'mpirun -np %i %s/issm.exe %s %s %s.bin %s.outbin %s.lock  2> %s.errlog >%s.outlog & ',np,codepath,EnumAsString(analysis_type),executionpath,name,name,name,name,name);
     30                fprintf(fid,'mpirun -np %i %s/issm.exe %s %s %s.bin %s.outbin %s.lock  2> %s.errlog >%s.outlog & ',np,codepath,EnumToString(analysis_type),executionpath,name,name,name,name,name);
    3131        else
    32                 %fprintf(fid,'LD_PRELOAD=%s mpirun -np %i %s --leak-check=full --gen-suppressions=all --suppressions=%s %s/issm.exe %s %s %s.bin %s.outbin %s.lock  2> %s.errlog >%s.outlog & ',[ISSM_DIR '/externalpackages/valgrind/install/lib/libmpidebug.so'],np,[ISSM_DIR '/externalpackages/valgrind/install/bin/valgrind'],[ISSM_DIR '/externalpackages/valgrind/issm.supp'], codepath,EnumAsString(analysis_type),executionpath,name,name,name,name,name);
    33                 fprintf(fid,'LD_PRELOAD=%s mpirun -np %i %s --leak-check=full --suppressions=%s %s/issm.exe %s %s %s.bin %s.outbin %s.lock  2> %s.errlog >%s.outlog & ',[ISSM_DIR '/externalpackages/valgrind/install/lib/libmpidebug.so'],np,[ISSM_DIR '/externalpackages/valgrind/install/bin/valgrind'],[ISSM_DIR '/externalpackages/valgrind/issm.supp'], codepath,EnumAsString(analysis_type),executionpath,name,name,name,name,name);
     32                %fprintf(fid,'LD_PRELOAD=%s mpirun -np %i %s --leak-check=full --gen-suppressions=all --suppressions=%s %s/issm.exe %s %s %s.bin %s.outbin %s.lock  2> %s.errlog >%s.outlog & ',[ISSM_DIR '/externalpackages/valgrind/install/lib/libmpidebug.so'],np,[ISSM_DIR '/externalpackages/valgrind/install/bin/valgrind'],[ISSM_DIR '/externalpackages/valgrind/issm.supp'], codepath,EnumToString(analysis_type),executionpath,name,name,name,name,name);
     33                fprintf(fid,'LD_PRELOAD=%s mpirun -np %i %s --leak-check=full --suppressions=%s %s/issm.exe %s %s %s.bin %s.outbin %s.lock  2> %s.errlog >%s.outlog & ',[ISSM_DIR '/externalpackages/valgrind/install/lib/libmpidebug.so'],np,[ISSM_DIR '/externalpackages/valgrind/install/bin/valgrind'],[ISSM_DIR '/externalpackages/valgrind/issm.supp'], codepath,EnumToString(analysis_type),executionpath,name,name,name,name,name);
    3434        end
    3535
     
    4949        fprintf(fid,'cd $PBS_O_WORKDIR\n');
    5050        fprintf(fid,'export OMP_NUM_THREADS=1\n');
    51         fprintf(fid,'dplace -s1 -c0-%i mpirun -np %i %s/issm.exe %s %s %s.bin %s.outbin %s.lock',np-1,np,codepath,EnumAsString(analysis_type),executionpath,name,name,name);
     51        fprintf(fid,'dplace -s1 -c0-%i mpirun -np %i %s/issm.exe %s %s %s.bin %s.outbin %s.lock',np-1,np,codepath,EnumToString(analysis_type),executionpath,name,name,name);
    5252
    5353        % }}}
     
    7373        fprintf(fid,'cd $PBS_O_WORKDIR\n\n');
    7474
    75         fprintf(fid,'mpiexec -verbose -np %i %s/%s.exe $PBS_O_WORKDIR %s.bin %s.outbin %s.lock',np,codepath,EnumAsString(analysis_type),name,name,name);
     75        fprintf(fid,'mpiexec -verbose -np %i %s/%s.exe $PBS_O_WORKDIR %s.bin %s.outbin %s.lock',np,codepath,EnumToString(analysis_type),name,name,name);
    7676
    7777        % }}}
  • issm/trunk/src/m/classes/public/queue/old/BuildQueueingScriptGeneric.m

    r3923 r5103  
    1919
    2020if md.mem_debug==0,
    21 fprintf(fid,'mpirun -np %i %s/%s.exe %s %s.bin %s.outbin %s.lock  2> %s.errlog >%s.outlog & ',md.np,codepath,EnumAsString(md.analysis_type),executionpath,md.name,md.name,md.name,md.name,md.name);
     21fprintf(fid,'mpirun -np %i %s/%s.exe %s %s.bin %s.outbin %s.lock  2> %s.errlog >%s.outlog & ',md.np,codepath,EnumToString(md.analysis_type),executionpath,md.name,md.name,md.name,md.name,md.name);
    2222else
    23 fprintf(fid,'LD_PRELOAD=%s mpirun -np %i %s --leak-check=full %s/%s.exe %s %s.bin %s.outbin %s.lock  2> %s.errlog >%s.outlog & ',[ISSM_DIR '/externalpackages/valgrind/install/lib/libmpidebug.so'],md.np,[ISSM_DIR '/externalpackages/valgrind/install/bin/valgrind'],codepath,EnumAsString(md.analysis_type),executionpath,md.name,md.name,md.name,md.name,md.name);
     23fprintf(fid,'LD_PRELOAD=%s mpirun -np %i %s --leak-check=full %s/%s.exe %s %s.bin %s.outbin %s.lock  2> %s.errlog >%s.outlog & ',[ISSM_DIR '/externalpackages/valgrind/install/lib/libmpidebug.so'],md.np,[ISSM_DIR '/externalpackages/valgrind/install/bin/valgrind'],codepath,EnumToString(md.analysis_type),executionpath,md.name,md.name,md.name,md.name,md.name);
    2424end
    2525
  • issm/trunk/src/m/classes/public/queue/old/BuildQueueingScriptcosmos.m

    r3923 r5103  
    1717fprintf(fid,'ulimit -s unlimited\n');
    1818fprintf(fid,'ulimit -c 0\n');
    19 fprintf(fid,'/opt/mpich/gm/intel10.1/bin/mpirun -np %i %s/%s.exe %s %s.bin %s.outbin %s.lock',md.np,codepath,EnumAsString(md.analysis_type),executionpath,md.name,md.name,md.name);
     19fprintf(fid,'/opt/mpich/gm/intel10.1/bin/mpirun -np %i %s/%s.exe %s %s.bin %s.outbin %s.lock',md.np,codepath,EnumToString(md.analysis_type),executionpath,md.name,md.name,md.name);
    2020
    2121
  • issm/trunk/src/m/classes/public/queue/old/BuildQueueingScriptgemini.m

    r3923 r5103  
    1818fprintf(fid,'cd $PBS_O_WORKDIR\n');
    1919fprintf(fid,'export OMP_NUM_THREADS=1\n');
    20 fprintf(fid,'dplace -s1 -c0-%i mpirun -np %i %s/%s.exe %s %s.bin %s.outbin %s.lock',md.np-1,md.np,codepath,EnumAsString(md.analysis_type),executionpath,md.name,md.name,md.name);
     20fprintf(fid,'dplace -s1 -c0-%i mpirun -np %i %s/%s.exe %s %s.bin %s.outbin %s.lock',md.np-1,md.np,codepath,EnumToString(md.analysis_type),executionpath,md.name,md.name,md.name);
    2121
    2222fclose(fid);
  • issm/trunk/src/m/classes/public/queue/old/BuildQueueingScriptgreenplanet.m

    r3923 r5103  
    1717
    1818fprintf(fid,'cd $PBS_O_WORKDIR\n');
    19 fprintf(fid,'mpirun -machinefile $PBS_NODEFILE -np %i %s/%s.exe %s %s.bin %s.outbin %s.lock > %s.outlog',md.np,codepath,EnumAsString(md.analysis_type),executionpath,md.name,md.name,md.name,md.name);
     19fprintf(fid,'mpirun -machinefile $PBS_NODEFILE -np %i %s/%s.exe %s %s.bin %s.outbin %s.lock > %s.outlog',md.np,codepath,EnumToString(md.analysis_type),executionpath,md.name,md.name,md.name,md.name);
    2020
    2121fclose(fid);
  • issm/trunk/src/m/classes/public/queue/old/BuildQueueingScriptpfe.m

    r3923 r5103  
    4545fprintf(fid,'cd $PBS_O_WORKDIR\n\n');
    4646
    47 fprintf(fid,'mpiexec -verbose -np %i %s/%s.exe $PBS_O_WORKDIR %s.bin %s.outbin %s.lock',md.np,codepath,EnumAsString(md.analysis_type),md.name,md.name,md.name);
     47fprintf(fid,'mpiexec -verbose -np %i %s/%s.exe $PBS_O_WORKDIR %s.bin %s.outbin %s.lock',md.np,codepath,EnumToString(md.analysis_type),md.name,md.name,md.name);
    4848
    4949fclose(fid);
  • issm/trunk/src/m/classes/public/solve.m

    r5048 r5103  
    6969
    7070%convert analysis type to string finally
    71 md.analysis_type=EnumAsString(options.analysis_type);
    72 md.sub_analysis_type=EnumAsString(options.sub_analysis_type);
     71md.analysis_type=EnumToString(options.analysis_type);
     72md.sub_analysis_type=EnumToString(options.sub_analysis_type);
  • issm/trunk/src/m/solutions/MatlabProcessPatch.m

    r4873 r5103  
    3838
    3939                        %get name
    40                         fieldname=EnumAsString(fields(i));
     40                        fieldname=EnumToString(fields(i));
    4141
    4242                        %get line positions
  • issm/trunk/src/m/solutions/NewFemModel.m

    r5096 r5103  
    2828
    2929                analysis_type=femmodel.analysis_type_list(i);
    30                 displaystring(md.verbose,'%s%s','   dealing with analysis type: ',EnumAsString(analysis_type));
     30                displaystring(md.verbose,'%s%s','   dealing with analysis type: ',EnumToString(analysis_type));
    3131
    3232                femmodel=SetCurrentConfiguration(femmodel,analysis_type);
  • issm/trunk/src/m/solutions/SolutionConfiguration.m

    r4824 r5103  
    5858
    5959        otherwise
    60                 error('%s%s%s',' solution type: ',EnumAsString(solutiontype),' not supported yet!');
     60                error('%s%s%s',' solution type: ',EnumToString(solutiontype),' not supported yet!');
    6161
    6262end
  • issm/trunk/src/m/solutions/issm.m

    r4439 r5103  
    3434               
    3535                displaystring(verbose,'%s',['write results'])
    36                 md.results.(EnumAsString(solution_type))=OutputResults(femmodel.elements, femmodel.nodes , femmodel.vertices , femmodel.loads , femmodel.materials, femmodel.parameters, femmodel.results);
     36                md.results.(EnumToString(solution_type))=OutputResults(femmodel.elements, femmodel.nodes , femmodel.vertices , femmodel.loads , femmodel.materials, femmodel.parameters, femmodel.results);
    3737        else
    3838                %launch dakota driver for diagnostic core solution
  • issm/trunk/src/mex/InputUpdateFromVector/InputUpdateFromVector.cpp

    r4573 r5103  
    3838        /*Check that type is one of Constant, Vertex or Element: */
    3939        if ((TypeEnum!=ConstantEnum) && (TypeEnum!=VertexEnum) && (TypeEnum!=ElementEnum)){
    40                 ISSMERROR("%s%s%s\n","Type of input can only be a constant, a vertex or an element vector.  Right now, you input a ",EnumAsString(TypeEnum)," type data for input update");
     40                ISSMERROR("%s%s%s\n","Type of input can only be a constant, a vertex or an element vector.  Right now, you input a ",EnumToString(TypeEnum)," type data for input update");
    4141        }
    4242
Note: See TracChangeset for help on using the changeset viewer.