Ignore:
Timestamp:
10/08/10 16:49:12 (14 years ago)
Author:
Mathieu Morlighem
Message:

Prepared ISSM for multivariable CM, Added modules/ModelProcessorx/Control/UpdateElementsAndMaterialsControl.cpp

File:
1 edited

Legend:

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

    r4873 r6213  
    175175}
    176176/*}}}*/
     177/*FUNCTION Parameters::FindParam(int** pintarray,int* pM,int enum_type){{{1*/
     178int   Parameters::FindParam(int** pintarray,int* pM, int enum_type){
     179
     180        /*Go through a dataset, and find a Param* object
     181         *which parameter name is "name" : */
     182
     183        vector<Object*>::iterator object;
     184        Param* param=NULL;
     185
     186        int found=0;
     187
     188        for ( object=objects.begin() ; object < objects.end(); object++ ){
     189
     190                /*Ok, this object is a parameter, recover it and ask which name it has: */
     191                param=(Param*)(*object);
     192
     193                if(param->EnumType()==enum_type){
     194                        /*Ok, this is the one! Recover the value of this parameter: */
     195                        param->GetParameterValue(pintarray,pM);
     196                        found=1;
     197                        break;
     198                }
     199        }
     200        return found;
     201
     202}
     203/*}}}*/
    177204/*FUNCTION Parameters::FindParam(double** pdoublearray,int* pM,int enum_type){{{1*/
    178205int   Parameters::FindParam(double** pdoublearray,int* pM, int enum_type){
Note: See TracChangeset for help on using the changeset viewer.